Quote:
Originally Posted by CreedFeed
I have another question about adding to this hack... when you view your forum's Who's Online page it shows any user who's browsing the gallery as "Viewing Index" and the link below goes to the forum index. How would you edit it to say "Viewing Gallery" and the link below links to your gallery?
|
Read the instruction file and follow the steps carefully.
There's a part in step 4 to do it:
======================
<edit file>
includes/functions_online.php
</edit file>
======================
<search for>
PHP Code:
switch($userinfo['activity'])
{
</search for>
<add after>
PHP Code:
// Album user online Mod
case 'album':
$userinfo['action'] = 'Browsing album';
$userinfo['where'] = "<a href=\"$userinfo[location]\">$userinfo[location]</a>";
break;
// End
</add after>
======================
<search for>
PHP Code:
else
{
$userinfo['activity'] = 'modcp';
}
return $userinfo;
}
</search for>
<add after>
PHP Code:
// Album user location
else if (strpos($token, "/album/") !== false)
{
{
$userinfo['activity'] = 'album';
}
return $userinfo;
}
</add after>
======================
make sure that you have that part correct
and remember to correct the token too
else if (strpos($token, "/album/") !== false)
Quote:
mtha, say I'm running more than one 4images on my site..
I'm using one for a .. let's say "classified" script, and the other as an "album" script.
In the "functions_online.php" how would I make it so one says, "Browsing Album" and the other say, "Browsing Classifieds"??
|
same as above, you have another token for /classified/ add add the same code (replace the name) in the places
by the way, the $token will read the value from $userinfo['location'];
if you dont have the location field for album different from forum's, you may get in trouble with this