Back to vBulletin 3.7 Add-ons

Status of PHP 8.5 support: Possible. Open Contacts for details.

New Posts on Forum-Link
Mod Version: 1.00, by Coroner

This modification is in the archives.
vB Version: 3.7.3 Rating: (4 votes - 5.00 average) Installs: 8
Released: 17 Oct 2008 Last Update: Never Downloads: 0
Not Supported Code Changes Re-usable Code Is in Beta Stage  

What does it do ?
It will show a new statusicon for forums created as a link when new posts inside.

How does it works ? (let me give an explanation)
First, create a new forum called testcategory as a category and then some others as a normal forum inside.
In your forum search for the forumid for the new category testcategory maybe (forumdisplay.php?f=34).



Back in AdminCP edit testcategory again. You now have two options:
  • set "displayorder" to 0
  • set "forum is active" if NO
testcategory doesn't appears on forumdisplay, now.
Next is to create another forum called link to testcategory. As link you enter:
forumdisplay.php?f=34

What happend, when a user creates a thread in one of the forums inside testcategory ?
Nothing !!! vBulletin ignore forums they are inactive or displayorder is 0.

Instructions now (there are NO hooks):
open "includes/function_forumlist.php".

search for:
PHP Code:
$forum['statusicon'] = fetch_forum_lightbulb($forumid$lastpostinfo$forum); 
and add below:
PHP Code:
   if ($forum['statusicon'] == 'link')
   {
    
$f intval(substr(strstr($forum['link'], '='), 1));
    if (
$f != AND !empty($vbulletin->iforumcache["$f"]))
    {
     foreach(
$vbulletin->iforumcache["$f"] AS $link_forumid)
     {
      
$new_forum fetch_foruminfo($link_forumid);
      
$lastpinfo = array('lastpost' => $new_forum['lastpost']);
      
$linkicon fetch_forum_lightbulb($link_forumid$lastpinfo$new_forum);
      if (
$linkicon == 'new')
      {
       
$linkicon '_test';
       
$forum['statusicon'] .= $linkicon;
       break;
      }
     }
    }
   } 
See the code above. I use _test and not _new.
Next is to create a new statusicon for each style called:
forum_link_test.gif

Now, when users create a post the statusicon will shows you, that you will have new posts inside.

There is NO demo. Just test it and feel free to experience with it.

Regards
Coroner

P.S. deutschen Support gibt es auch bei your-vb

Download

No files for download.

Similar Mods

Handy link to search for "New Posts in Only This Forum" vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2025