PDA

View Full Version : Who's Online display external locations


Walab
01-27-2004, 07:59 PM
I have photopost pro installed (http://www.photopost.com/indexpro.html) and running the integration hack (https://vborg.vbsupport.ru/showthread.php?goto=newpost&t=58881). The paths are different (ex: /home/vbulletin/ and /home/photopost/), and in the Who's Online feature there is an ugly "Unknown Location: /gallery/filename.php?cat=cat&s=session" when a member is browsing photopost. I've installed Chen's Add Who's Online locations from Admin CP hack (https://vborg.vbsupport.ru/showthread.php?t=32849). I've also tried inputing different locations as tests to see if the online location displays, but I've had no luck. I'm in need of guidance or a similar hack to include "external" locations.

msimplay
04-19-2004, 12:10 AM
i would also like this hack to whoever can do this intergration

boiboi
05-10-2004, 12:54 AM
any luck on this?

glowinggal
07-09-2004, 04:21 AM
Ditto - we are hoping for this as well as we have lots of users visit the forum and would love to combine the "who's online count"

Sylvus
07-15-2004, 10:56 AM
Open up ONLINE.PHP

### FIND ###


case 'calendar':
$userinfo[where] = "Viewing <a href='calendar.php?s=$session[sessionhash]'>Calendar</a>";
break;


### Under it, ADD ###


case 'photopost':
$userinfo[where] = "Viewing PhotoPost";
break;


### FIND ###


case 'sendtofriend.php':
$userinfo[activity] = 'sendto';
break;


### Under it, ADD ###


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:


<?

/////////////// 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...

58sniper
07-15-2004, 09:34 PM
Actually, Add Who's Online Locations From Admin CP (https://vborg.vbsupport.ru/showthread.php?t=66569) is easier than always editing online.php

Sylvus
07-16-2004, 01:11 PM
vB2 does not support Who's Online Locations from the Admin CP and if you read the first post, the hack he installed that can do this from the Admin CP, is not doing it properly, thus the very reason for having to make manual changes to the online.php.

Syl...

wild texas
01-08-2005, 05:39 PM
Here's the method I successfully used to remove the "Unknown Location" listings on my vBulletin 3.0.5 "Who's Online" for Photopost Pro (v4.86) pages:

http://www.photopost.com/members/forum/showthread.php?p=1087422#post1087422

The other methods posted in this thread proved fruitless, perhaps because I run Photopost Pro with it's "Friendly URL" feature enabled, which involves moving data that's typically passed in a URL query string into a format such as /photos/showgallery.php/cat/501 (rather than photos/showgallery.php?cat=501)

Hope this helps. The code changes are limited to vB3's functions_online.php file in the /includes/ folder. I preferred that over having to install an vB3 admin control panel hack, since this is pretty much a one-time fix for me.