vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Who's Online display external locations (https://vborg.vbsupport.ru/showthread.php?t=60834)

Walab 01-27-2004 07:59 PM

Who's Online display external locations
 
I have photopost pro installed and running the integration hack. 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. 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 ###

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

58sniper 07-15-2004 09:34 PM

Actually, Add Who's Online Locations From Admin CP 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/for...22#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.


All times are GMT. The time now is 03:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01040 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete