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:
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:
and add below:
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.
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
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:
$forum['statusicon'] = fetch_forum_lightbulb($forumid, $lastpostinfo, $forum);
and add below:
PHP:
if ($forum['statusicon'] == 'link')
{
cache_ordered_forums (0, 1);
$f = intval (str_replace ($vbulletin->options['bburl'] . '/forumdisplay.php?f=', '', $forum['link']));
if (!empty ($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.