Coroner
10-16-2008, 10:00 PM
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 NOtestcategory 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:
$forum['statusicon'] = fetch_forum_lightbulb($forumid, $lastpostinfo, $forum);
and add below:
if ($forum['statusicon'] == 'link')
{
$f = intval(substr(strstr($forum['link'], '='), 1));
if ($f != 0 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
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 NOtestcategory 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:
$forum['statusicon'] = fetch_forum_lightbulb($forumid, $lastpostinfo, $forum);
and add below:
if ($forum['statusicon'] == 'link')
{
$f = intval(substr(strstr($forum['link'], '='), 1));
if ($f != 0 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