If you'd like to add another script to be displayed properly just make sure that script requires global.php and then add another elsif to the online.php like this
PHP Code:
} elseif (strstr($location,"attachment.php")) {
$locationtitle="Viewing an Attachment";
$location="";
attachment.php is the script you are looking for. can be a partial match. you can even just look for an pices of the url like
"action=chat" or something.
$locationtitle is what it will say
$location is optional. if you don't put anything, it uses the url saved in the sessions table. in this example I blanked the url out so someone doesn't click right thru to the attachment.
-----------------
I've added some more stuff like options to show profile icons or avatars
$PMLine $AvLine $EmailLine $IcqLine $AimLine $HomepageLine $YahooLine
while making it break up long lists into multiple pages, I've decided to have it build an array and then read it so I can resort the list however you want. I'll sort it by time but you'll be able to change it to whatever. when I get that next step done, I'll upload it again.