JohnBee
09-19-2007, 07:50 PM
This is a simple .php file used as a module for vBadvanced. Currently it displays a forum by subscription(user subscribes and it display's the list). I would like it to show forums by forumID instead of by subscription.
Can anyone help out with the changes?
<?php
require_once('./includes/functions_user.php');
cache_ordered_forums(1, 0, $vbulletin->userinfo['userid']);
$show['forums'] = false;
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if ($forum['subscribeforumid'] != '')
{
$show['forums'] = true;
}
}
if ($show['forums'])
{
if ($vbulletin->options['showmoderatorcolumn'])
{
cache_moderators();
}
else
{
cache_moderators($vbulletin->userinfo['userid']);
}
fetch_last_post_array();
$forumbits = construct_forum_bit(-1, 0, 1);
eval('$forumbits .= "' . fetch_template('forumhome_markread_script') . '";');
if ($forumshown == 1)
{
$show['forums'] = true;
}
else
{
$show['forums'] = false;
}
}
eval('$home["$mods[modid]"][\'content\'] = "' . fetch_template('adv_portal_fav') . '";');
?>
PS. I asked the original coder for help and he recommended I asked for outside help.
Can anyone help out with the changes?
<?php
require_once('./includes/functions_user.php');
cache_ordered_forums(1, 0, $vbulletin->userinfo['userid']);
$show['forums'] = false;
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if ($forum['subscribeforumid'] != '')
{
$show['forums'] = true;
}
}
if ($show['forums'])
{
if ($vbulletin->options['showmoderatorcolumn'])
{
cache_moderators();
}
else
{
cache_moderators($vbulletin->userinfo['userid']);
}
fetch_last_post_array();
$forumbits = construct_forum_bit(-1, 0, 1);
eval('$forumbits .= "' . fetch_template('forumhome_markread_script') . '";');
if ($forumshown == 1)
{
$show['forums'] = true;
}
else
{
$show['forums'] = false;
}
}
eval('$home["$mods[modid]"][\'content\'] = "' . fetch_template('adv_portal_fav') . '";');
?>
PS. I asked the original coder for help and he recommended I asked for outside help.