Log in

View Full Version : Adding custom pages to WOL


Sovereign
07-23-2005, 07:39 PM
I know there is a topic in the How-To, but can what is shown in this thread (https://vborg.vbsupport.ru/showthread.php?t=82882) be applied to more complex things? Like instead of "userpage.php" have "userpage.php?do=list" as a location?

Adrian Schneider
07-23-2005, 08:27 PM
I forget exactly but:

case 'somelocation':
if ($userinfo['values']['request']['do'] == 'eggnog')
{
$userinfo['action'] = "Drinking Eggnog";
}
elseif ($userinfo['values']['request']['do'] == 'vbulletin')
{
$userinfo['action'] = "Buying vBulletin";
}
else
{
$userinfo['action'] = "Somewhere else in this file";
}
break;

Sovereign
07-23-2005, 09:07 PM
Could I get a more detailed explanation? I'm a PHP/MySQL n00b. And can you use plugins please?

Sovereign
07-25-2005, 01:19 AM
And where would I put this, plugin-wise?