[ABD] Frontpage and folders

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
Unimatrix_0
Registered User
Posts: 55
Joined: Sat Nov 03, 2007 11:28 am
Contact:

Re: [BETA] Frontpage and folders

Post by Unimatrix_0 »

Sorry if I ask questions that have been asked befor, but I have a few:
  • Is it posible to allow/disallow/select forums for "The 5 latest posts"?
  • Is it posible to allow/disallow/select forums for "The 5 latest topics"?
  • Might it possible to have the menu allways on the right site, even while browsing the forum?
best regards

Un1
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: [BETA] Frontpage and folders

Post by DoYouSpeakWak »

Unimatrix_0 wrote:Sorry if I ask questions that have been asked befor, but I have a few:
  • Is it posible to allow/disallow/select forums for "The 5 latest posts"?
  • Is it posible to allow/disallow/select forums for "The 5 latest topics"?
  • Might it possible to have the menu allways on the right site, even while browsing the forum?
best regards

Un1
The two first. Sure no problem. This is a must for any mod with features like this imo.

open index.php
Find

Code: Select all

$excluded_forums = array('13','16');
Replace with

Code: Select all

$excluded_forums = array('FORUM_ID','FORUM_ID2');
Please replace FORUM_ID and FORUM_ID2 with real forum ids. These forums will NOT be showed in either 5 latest topics or posts. There is no individual setting for each since i dont think most boards will need it.

Remember there is many index.php. The ones in question is the first on in the root, the second one you can edit is the one inside the history folder.

Stoker. Thanks, im working on the next version.
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
sleevedbiker
Registered User
Posts: 789
Joined: Mon Oct 12, 2009 4:33 pm

Re: [BETA] Frontpage and folders

Post by sleevedbiker »

How would i make it possible for members to add comments to one of the pages in frontpage?
You ride with an outlaw, You die with an outlaw
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: [BETA] Frontpage and folders

Post by DoYouSpeakWak »

sleevedbiker wrote:i created another page onto this BUT, i cant get tables to work in it... i am trying to get this to work on the new page.... any help with this?

Image
Without more info no. But why not use a existing page and add your stuff to that, Then all the basic functions of this mod will be there, plus the extra you add.
onehundredandtwo wrote:This is a great MOD, but users without Javascript cannot use it.

I haven't looked at the code, but if you have all of the folders expanded by default, and then use <body onload="yourfunctionhere()"> to collapse these when loaded with Javascript, then users without Javascript will be able to use the links.

Keep up the good work, DoYouSpeakWak. :)
If you wish to have it working for non javascript users (Btw as far as i know 99% of most user has it on)
Then you can use the old version. It has the same basic functions. Or you can search for the word "current" in main.html and add the current function to all the other tabs (java dropdown boxes) By doing so all the boxes will be open when you load the page.
jsmoke222000 wrote:Ok guys, I have been hard @ work trying to get the last 10 posts to display correctly just like they would look if they were on the displayed on the forum. I am a noob at php & I'm sure that I have multiple things wrong with my code. Can someone look this over & help me clean it up. Trust me when I tell you I have no clue how I made it this far without destroying my board. :lol:

index.php

Code: Select all

// Latest posts
   $forum_array = array_unique(array_keys($auth->acl_getf('!f_read', true)));

   // we have auths, change the sql query below
   $sql_and = '';
   if (sizeof($forum_array))
   {
      $sql_and = ' AND ' . $db->sql_in_set('p.forum_id', $forum_array, true);
   }
    $sql_ary = array(
        'SELECT'    => 'MAX(p.post_time) as post_time, f.forum_name, p.post_text, u.user_id, u.username, u.user_colour, t.topic_views, t.topic_replies, t.topic_title, t.forum_id, t.topic_last_post_id, t.topic_id ',
        'FROM'        => array(TOPICS_TABLE => 't', POSTS_TABLE => 'p'),
        'LEFT_JOIN'    => array(
            array(
                'FROM'    => array(USERS_TABLE => 'u'),
                'ON'    => 't.topic_last_poster_id = u.user_id',
                   ),
            array(
                 'FROM'   =>   array(FORUMS_TABLE   => 'f'),
                 'ON'   => 'f.forum_id = t.forum_id',
                  ),         
        ),
        'WHERE'        => 'p.post_id = t.topic_last_post_id
               AND p.post_approved = 1
               AND t.topic_moved_id = 0' . $sql_and,
        'GROUP_BY'    => 't.topic_id',
        'ORDER_BY'    => 'post_time DESC',
    );
   
    $result = $db->sql_query_limit($db->sql_build_query('SELECT', $sql_ary), 10);
    while( $row = $db->sql_fetchrow($result) )
    {   
        $view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id']);
        $view_forum_url = append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $row['forum_id']);
        $topic_title = censor_text($row['topic_title']);
       
        if (utf8_strlen($topic_title) >= 40)
        {
            $topic_title = (utf8_strlen($topic_title) > 40 + 3) ? utf8_substr($topic_title, 0, 40) . '...' : $topic_title;
        }
       
           $template->assign_block_vars('hot_topic_row',array(
               'U_TOPIC'            => $view_topic_url,
               'U_FORUM'            => $view_forum_url,
               'FORUM_NAME'            => $row['forum_name'],
               'TOPIC_VIEWS'        => $row['topic_views'],
               'TOPIC_REPLIES'        => $row['topic_replies'],
               'POST_TEXT'            => $user->lang['VIEW_LATEST_POST'],
               'POST_TIME'            => $user->format_date($row['post_time']),
               'USERNAME_FULL'        => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),
               'TOPIC_TITLE'         => $topic_title)
        );
    }
    $db->sql_freeresult($result); 	
main.html

Code: Select all

<!-- Start Latest posts -->

   <!-- IF not S_IS_BOT -->

<div class="forabg">

         <div class="inner"><span class="corners-top"><span></span></span>

         <ul class="topiclist">

            <li class="header">

               <dl class="icon">

			<dt>The ten most recent posts</dt>
			<dd class="posts">Replies</dd>
			<dd class="views">Views</dd>
			<dd class="author">Posted by:</dd>

               </dl>

            </li>

         </ul>

<!-- ENDIF -->

         <!-- BEGIN hot_topic_row -->

         <ul class="topiclist forums">

         <li class="row">

         <dl>            

            <dt><a class="topictitle" href="{hot_topic_row.U_TOPIC}" <!-- IF hot_topic_row.POST_TEXT -->title="{hot_topic_row.POST_TEXT}"<!-- ENDIF -->><b>{hot_topic_row.TOPIC_TITLE}</a>
		</dt>

<!-- IF not S_IS_BOT -->

            <dd class="topics">{hot_topic_row.TOPIC_REPLIES}</dd>
		<dd class="topics">{hot_topic_row.TOPIC_VIEWS}</dd>
		<dd class="topics">{hot_topic_row.USERNAME_FULL}</dd>

           <!-- ENDIF -->

         </dl>

         </li>

         </ul>

         <!-- END hot_topic_row -->

<!-- IF not S_IS_BOT -->

         <span class="corners-bottom"><span></span></span></div>

</div>

	
	</div><br />
<!-- ENDIF -->

   <!-- End Latest posts -->
You dont have to change the index.php, just replace the html that shows this with the html code posted by stoker. As long as you have a backup of the file nothing can go wrong.
sleevedbiker wrote:How would i make it possible for members to add comments to one of the pages in frontpage?
i have thought about this, i love the idea, but its very complicated and would make this mod more complex than intended. Instead you can install a mod on the pages you want that does this. Mods like this
http://www.phpbb3hacks.com/viewtopic.php?f=12&t=311
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
sleevedbiker
Registered User
Posts: 789
Joined: Mon Oct 12, 2009 4:33 pm

Re: [BETA] Frontpage and folders

Post by sleevedbiker »

thanks i just used my own code to make a java style comment box.
You ride with an outlaw, You die with an outlaw
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: [BETA] Frontpage and folders

Post by DoYouSpeakWak »

sleevedbiker wrote:thanks i just used my own code to make a java style comment box.
Sounds nice, Wanna share a link ?
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
aaalba
Registered User
Posts: 83
Joined: Tue Dec 30, 2008 5:38 pm

Re: [BETA] Frontpage and folders

Post by aaalba »

wow i have been searching this mod for a long time.
aaalba
Registered User
Posts: 83
Joined: Tue Dec 30, 2008 5:38 pm

Re: [BETA] Frontpage and folders

Post by aaalba »

well prosilver is conflicting, cant see all images, mabey because of mods.... revolution theme is horrible with this mod.
User avatar
Inner Circle
Registered User
Posts: 24
Joined: Fri Mar 19, 2010 10:19 pm
Location: Germany
Contact:

Re: [BETA] Frontpage and folders

Post by Inner Circle »

Hi there!

Is it possible that you can use the frontpage on

www.yourpage.com

and the forum on

www.yourpage.com/forum ?
A Place for Gamer:
www.gamerkollektiv.net/forum
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: [BETA] Frontpage and folders

Post by DoYouSpeakWak »

aaalba wrote:well prosilver is conflicting, cant see all images, mabey because of mods.... revolution theme is horrible with this mod.
This is a very simple mod, still in beta. So if you use a changed version of the styles in the mod there may stuff you need to tweak to get it to look good.
Inner Circle wrote:Hi there!

Is it possible that you can use the frontpage on

http://www.yourpage.com

and the forum on

http://www.yourpage.com/forum ?
Yes, its not only posible, its default in this mod.

A new version will be done in max a week since this mod is a part of a new site and have to be done by then.

New stuff will be
updated java to latest version (more smooth and fast)
Template and php bugs fixed (its been slimmed down a bit so less to load)
And a few other surprises maybe :o
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
User avatar
Inner Circle
Registered User
Posts: 24
Joined: Fri Mar 19, 2010 10:19 pm
Location: Germany
Contact:

Re: [BETA] Frontpage and folders

Post by Inner Circle »

DoYouSpeakWak wrote: Yes, its not only posible, its default in this mod.

A new version will be done in max a week since this mod is a part of a new site and have to be done by then.

New stuff will be
updated java to latest version (more smooth and fast)
Template and php bugs fixed (its been slimmed down a bit so less to load)
And a few other surprises maybe :o
Ah ok! I should read more carefully next time :oops:

I´m looking forward to the next update, i´ll going to try out the current version now :)
A Place for Gamer:
www.gamerkollektiv.net/forum
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: [BETA] Frontpage and folders

Post by DoYouSpeakWak »

Inner Circle wrote:
DoYouSpeakWak wrote: Yes, its not only posible, its default in this mod.

A new version will be done in max a week since this mod is a part of a new site and have to be done by then.

New stuff will be
updated java to latest version (more smooth and fast)
Template and php bugs fixed (its been slimmed down a bit so less to load)
And a few other surprises maybe :o
Ah ok! I should read more carefully next time :oops:

I´m looking forward to the next update, i´ll going to try out the current version now :)
It looks good on your page. Remember you can change all the colors of the menu system and the text in the file frontpage.css
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
User avatar
Inner Circle
Registered User
Posts: 24
Joined: Fri Mar 19, 2010 10:19 pm
Location: Germany
Contact:

Re: [BETA] Frontpage and folders

Post by Inner Circle »

DoYouSpeakWak wrote:
It looks good on your page. Remember you can change all the colors of the menu system and the text in the file frontpage.css
Thanks :)

This is what i´m doing atm: Editing the Templates/css 8-)


I have a suggetion for a Feature:

How about adding a feature, where you can post News on the Main Page (or whatever page one want to use )?
A Place for Gamer:
www.gamerkollektiv.net/forum
User avatar
Inner Circle
Registered User
Posts: 24
Joined: Fri Mar 19, 2010 10:19 pm
Location: Germany
Contact:

Re: [BETA] Frontpage and folders

Post by Inner Circle »

any news about the mod?
A Place for Gamer:
www.gamerkollektiv.net/forum
User avatar
Mick
Support Team Member
Support Team Member
Posts: 22964
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably.

Re: [BETA] Frontpage and folders

Post by Mick »

Inner Circle wrote:How about adding a feature, where you can post News on the Main Page (or whatever page one want to use )?
You can do that yourself already with any of the pages you create for Frontpage.
"The more connected we get the more alone we become" - Kyle Broflovski©
Locked

Return to “[3.0.x] Abandoned MODs”