reefland
06-01-2003, 09:41 PM
Hi All!
I have been integrating my site with our forums and have a questions regarding WOL. It is easy enough to add another page into the online.php file but how can I add multiple pages into one case? The purpose is for a featured member series on my site and instead of adding a new case for each featured member page (once per month) I would like to be able to add them into one case.
Here is the current code:
case 'featured603.php':
$userinfo[activity] = 'currentfeature';
break;
And:
case 'currentfeature':
$userinfo[where] = "Viewing HRG's <a href='URL.php?s=$session[sessionhash]'>Featured Member</a>";
break;
Can I add multiple files like this:
case 'featured603.php, feature703':
$userinfo[activity] = 'currentfeature';
break;
Or would I have to add ianother way? How would that be? I am just trying to prevent from having to add the two codes each time I add a new featured member.
My second question is about using the case for index.php. Obviously my sites homepage and forum both use index.php so how can I separate them in the online.php file so it shows accurately? Currently if someone is on the homepage it says on the forum main index in WOL. would I add it like this:
case '/index.php':
$userinfo[activity] = 'homepage';
break;
Thanks for any help folks; greatly appreciated!
Scott Z.
Reefland.com
Hotroddersgarage.com
I have been integrating my site with our forums and have a questions regarding WOL. It is easy enough to add another page into the online.php file but how can I add multiple pages into one case? The purpose is for a featured member series on my site and instead of adding a new case for each featured member page (once per month) I would like to be able to add them into one case.
Here is the current code:
case 'featured603.php':
$userinfo[activity] = 'currentfeature';
break;
And:
case 'currentfeature':
$userinfo[where] = "Viewing HRG's <a href='URL.php?s=$session[sessionhash]'>Featured Member</a>";
break;
Can I add multiple files like this:
case 'featured603.php, feature703':
$userinfo[activity] = 'currentfeature';
break;
Or would I have to add ianother way? How would that be? I am just trying to prevent from having to add the two codes each time I add a new featured member.
My second question is about using the case for index.php. Obviously my sites homepage and forum both use index.php so how can I separate them in the online.php file so it shows accurately? Currently if someone is on the homepage it says on the forum main index in WOL. would I add it like this:
case '/index.php':
$userinfo[activity] = 'homepage';
break;
Thanks for any help folks; greatly appreciated!
Scott Z.
Reefland.com
Hotroddersgarage.com