PDA

View Full Version : forumdisplay variables?


RCWF-AoD
06-12-2009, 02:03 AM
Working on templates is always fun.. I ran into a fun one today... I'm working on adding a new quick jump in a template.. But here's my problem. I can't find what variables I can work with...

For example..

http://www.mywebsite.com/forumdisplay.php?f=42 will bring up my general and off topic forum..

http://www.mywebsite.com/forumdisplay.php?f=cp ... That will bring up the user's control panel..

Anyone know where I can find a list of usable variables with the forumdisplay.php file?

Thanks ahead of time,
AoD

Lynne
06-12-2009, 03:24 AM
Take a look at the top of the forumdisplay.php page:

// jump from forumjump
switch ($vbulletin->GPC['forumid'])
{
case 'search': $goto = 'search'; break;
case 'pm': $goto = 'private'; break;
case 'wol': $goto = 'online'; break;
case 'cp': $goto = 'usercp'; break;
case 'subs': $goto = 'subscription'; break;
case 'home':
case '-1': $goto = $vbulletin->options['forumhome']; break;
}

RCWF-AoD
06-13-2009, 04:51 AM
Sweet... Thanks a billion Lynne!!!!!!