PDA

View Full Version : Minor problem when viewing Who's Online


Jester
12-24-2004, 05:21 PM
When I view Who's Online in shows the person who is looking at either the Links Directory or Gallery directory in an Unknown Location (see attached). I am sure there is a simple fix for this, anybody have any ideas?

Thanks!

ConqSoft
12-24-2004, 07:51 PM
For Gallery:

http://www.vbadvanced.com/forum/showthread.php?t=3724

Our Sponsors
 

Jester
12-25-2004, 06:26 AM
Thanks for passing that along!

interfx
01-02-2005, 07:54 PM
Anyone complete this for the LINKS product from VBA? or also the Review/Photopost hack...

Our Sponsors
 

StewardManscat
01-06-2005, 11:33 AM
I did some of photopost.
In include/functions_online.php...

Find:

switch($userinfo['activity'])
{


Add or modify existing cases:


case 'index':
if(strpos($userinfo['location'], "photos"))
{
$userinfo['action'] = "Opening the photo album";
$userinfo['where'] = "<a href=\"$vboptions[homeurl]/photos/index.php?$session[sessionurl]\">Photos</a>";
}
else
{
$userinfo['action'] = 'Scratching head at forums';//$vbphrase['viewing_index'];
$userinfo['where'] = "<a href=\"$vboptions[forumhome].php?$session[sessionurl]\">$vboptions[bbtitle]</a>";
}
break;

...


case 'showphoto.php':
$userinfo['action'] = 'Admiring a photo';
$userinfo['where'] = "<A HREF=\"$vboptions[homeurl]".$userinfo['location']."\">This one in particular</A>";
break;
case 'showgallery.php':
case 'showmembers.php':
$userinfo['action'] = 'Cruising galleries';
$userinfo['where'] = "<A HREF=\"$vboptions[homeurl]".$userinfo['location']."\">Wonder if this is getting</A>";
break;
case 'ecard.php':
$userinfo['action'] = 'Licking an e-card stamp. Maybe licking the e-card too.';
break;
case 'uploadphoto.php':
case 'bulkupload.php':
$userinfo['action'] = 'Uploading photos';
break;
case 'comments.php':
$userinfo['action'] = 'Promising undying love';
$userinfo['where'] = 'Commenting on a photo';
break;



Waiting for gallery RC3, this was a fast fix for me: I haven't done my homework on this file yet, there may be a cleaner way to go. But this worked. You'll want to change the descriptions. We're an adult site and I am merciless with the members. I just cleaned them up for the public here.