Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2004, 07:59 PM
Walab Walab is offline
 
Join Date: Feb 2003
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 04-19-2004, 12:10 AM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i would also like this hack to whoever can do this intergration
Reply With Quote
  #3  
Old 05-10-2004, 12:54 AM
boiboi boiboi is offline
 
Join Date: Nov 2001
Location: san francisco, ca
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any luck on this?
Reply With Quote
  #4  
Old 07-09-2004, 04:21 AM
glowinggal glowinggal is offline
 
Join Date: Jan 2003
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
  #5  
Old 07-15-2004, 10:56 AM
Sylvus Sylvus is offline
 
Join Date: Apr 2003
Location: Toronto
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #6  
Old 07-15-2004, 09:34 PM
58sniper 58sniper is offline
 
Join Date: Sep 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, Add Who's Online Locations From Admin CP is easier than always editing online.php
Reply With Quote
  #7  
Old 07-16-2004, 01:11 PM
Sylvus Sylvus is offline
 
Join Date: Apr 2003
Location: Toronto
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #8  
Old 01-08-2005, 05:39 PM
wild texas wild texas is offline
 
Join Date: Mar 2002
Location: San Antonio, Texas
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:56 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.04688 seconds
  • Memory Usage 2,234KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete