The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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? Code:
<?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') . '";');
?>
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|