Version: , by reefland
Developer Last Online: Jan 2012
Version: Unknown
Rating:
Released: 06-01-2003
Last Update: Never
Installs: 0
No support by the author.
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:
PHP Code:
case 'featured603.php':
$userinfo[activity] = 'currentfeature';
break;
And:
PHP Code:
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:
PHP Code:
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:
PHP Code:
case '/index.php':
$userinfo[activity] = 'homepage';
break;
Thanks for any help folks; greatly appreciated!
Scott Z.
Reefland.com
Hotroddersgarage.com
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Sorry for the delayed reply here, been real busy with VB3. Although none of it is supported here, I thought that I would mention that my site integration has went very well with VB3, in fact, it was much easier.
After rebuilding the site using the VB3 code, I still cannot get the homepage to log in WOL correctly, even trying the suggeted code:
PHP Code:
case '../index.php':
$userinfo[activity] = 'homepage';
break;
I also tried to hardcode the entire URL in but it displays "Viewing Index" (the forums homepage) no matter what. I guess I'll have to live with that.
As far as releasing a hack, I am no where near good enough for that. Basically what I did was utilized most of the code from the index.php file included with VB3 and built all of my pages using the template system. Obviously it was very nice to use the variables included with the forum home page. Since global.php was included, the session is stored (I guess) and able to track visitors across most of the site. Obviously other 3rd party software utilized doesn't show up but what I have is great I think.
Feel free to check it out if you like, it may be one of the first complete sites ingrated with VB3 although not likely. http://www.hotroddersgarage.com
If there is anything I can help you out with specifically, I'd be happy to do so or detail how I integrated my site. I still have another one to do.
If anyone has any other ideas on logging the homepage on WOL, I'd be interested in trying them.