Open up ONLINE.PHP
### FIND ###
Code:
case 'calendar':
$userinfo[where] = "Viewing <a href='calendar.php?s=$session[sessionhash]'>Calendar</a>";
break;
### Under it, ADD ###
Code:
case 'photopost':
$userinfo[where] = "Viewing PhotoPost";
break;
### FIND ###
Code:
case 'sendtofriend.php':
$userinfo[activity] = 'sendto';
break;
### Under it, ADD ###
Code:
case 'filename.php':
$userinfo[activity] = 'photopost';
break;
Take note of the case 'filename.php' If this is NOT the actuall name of the .php file the user will be viewing, it will not work. (I don't know if PhotoPost has a filename.php file, or you used it as an example and when you're in PhotoPost, filename.php is replaced with the real FILENAME of what they're viewing.)
Also, you cannot have multiple names for multiple files. So if PhotoPost already has and uses an index.php, vBulletin will always default to the index.php of your forum home, so even if you're viewing PhotoPost's index.php, it will always say you're at the forum.
You cannot use directory structures in the above code and most of all, you must include global.php in PhotoPost somewhere, either using an include or making modifications to the PhotoPost php files, such as adding:
Code:
<?
/////////////// CONFIG ///////////////
//
$path = "/virtual_path_to_forum/admin"; // set the path to your admin directory.
//
///////////// END CONFIG /////////////
require('./global.php');
require("$path/config.php");
Without being connected to the global.php file while you're outside of the VB directory structure, VB will never know where you are but you probably already know this if you're getting an Unknown Location: in your Who's Online.
Syl...