Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-30-2001 Last Update: Never Installs: 109
 
No support by the author.

This hack was requested on vBulletin.com.

It lets you add possible locations to Who's Online, directly from the Admin CP.
This is good if you are using external hacks, that use vBulletin's system. You probably know that users browsing these external files have Unknown Location (or Main Index for non-admin viewers) next to them.

With this hack, you can easily add a new custom location with ease!
It's also designed in a way that won't let you overwrite existing locations. ('dummy protection' as I like to call it )

The locations you add are not stored in their own table, because I really felt that would be waste of space and resource.
Instead, I store the locations in the template table, in one special template dedicated to this data.
It was a lot harder to do it this way, btw.

Please let me know if you find any bugs, or if this script doesn't work with files in child folders (this is my main concern).
This can be easily remove (just undo changes to online.php), so please don't fear to try it out!

A nice screen shot is in my next post.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #172  
Old 11-05-2002, 02:36 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean? Forget about the sessionhashes.

Put "shoutbox.php" in the field for the file name, and that's it. It will work.
Reply With Quote
  #173  
Old 11-14-2002, 04:23 PM
yetdog11 yetdog11 is offline
 
Join Date: Nov 2001
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin, will that also work for pages outside of the vB directory? For example, my forums are at www.antsmarching.org/forum/

However, lets say I want to add www.antsmarching.org/setlists/Viewshow.php to the mix, afer including global.php on viewshow (with the full path), what do I put in the location box in ACP to point to that file and have it work correctly?
Reply With Quote
  #174  
Old 11-15-2002, 09:19 AM
Jesus Chio Jesus Chio is offline
 
Join Date: Oct 2002
Location: Near Hell, TX
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed it and seems to work fine, I can add filenames and descriptions but the Whos online page still shows the unknown path like:

Unknown Location: /photopost/showphoto.php?photo=140&papas&sort=1

I added these filenames:

admin/

photopost/showphoto.php

photopost/showphoto.php?photo=142&size=big&papas&sort=1

and non of them seem to make it change.



My forums are at http://www.jeeperos.com/foros

and the photopost is at http://www.jeeperos.com/photopost

When I place the mouse over the path for the files like by example on photopost/showphoto.php

it shows on the explorer bar

http://www.jeeperos.com/foros/photopost/showphoto.php

how do I make it get rid of the "foros" prefix?


thanks in advance for your time
Reply With Quote
  #175  
Old 11-15-2002, 09:44 AM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack doesn't take into account directory names, it only takes filename.php, everything else is stripped off.
Reply With Quote
  #176  
Old 11-20-2002, 04:58 AM
BigCheeze BigCheeze is offline
 
Join Date: Oct 2002
Location: Lost in Colorado
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed it. It's easy, and works as advertised. Just wish I could make it so that it would read a little more details besides the filename.php.

With the modules.php in phpPortals it would be nice if it could read more of that line to tell what their doing... For example I have the weather hack installed, but if their checking the weather, or reading the FAQ, they still will only display one location.... O'well Not that big of a deal, but would be a nice upgrade.

Thanks guys!!!
Reply With Quote
  #177  
Old 11-20-2002, 05:03 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A tip - ignore the directories - this hack looks for the filename - any file name in any directory.

So just put:

file.html

or

file.php

Even though it's in a different directory. The Who's Online will still work. It's a great hack! Still using it!
Reply With Quote
  #178  
Old 11-21-2002, 06:47 AM
Cyberhouse Cyberhouse is offline
 
Join Date: Jun 2002
Location: Sweden
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack, Installed and works great

Great work
Reply With Quote
  #179  
Old 12-02-2002, 06:59 PM
eggz eggz is offline
 
Join Date: Aug 2002
Location: UK
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry - I may just be dumb asking this!! If this has already been answered then please forgive me... :squareeyed:

Basically I'm trying to install this hack on the forums. We are using 2.2.9. We also have PhotoPost and PHPMyChat installed in seperate directories, which we would like to include in the WOL.

My main questions are:

What's the easiest way to make it 'see' the gallery and chat in whos online? I've added the chat, gallery main index, show photo and show gallery urls in the WOL CP with descriptions but I have not yet managed to get the

require("../forums/global.php");

to work.

I inserted it at the top of the page, after the comment, looking at a page that already 'required' global.php to guess where to put it, and got a 'fatal error'. So.. trial and error being my plan, I moved the 'require' code down immediately below the include code and now when I go to the gallerys a blank page stares back at me. :cry: I can just presume that the require command stops the computer proccessing the code after it in some way? If this is the case... where the flippin' nora do I put it??? :ermm:

Oh and whilst I'm on the case can I just rename index.php and change the .htaccess in the photopost directory to galley.php to avoid the 'confusion' between the two index.phps or will this screw everything up... If you're following this then god bless you cos I'm now confusing myself.... :ermm:

Many thanks in advance.
Oliver
Reply With Quote
  #180  
Old 12-28-2002, 05:28 AM
996 996 is offline
 
Join Date: Nov 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

eggz I'm getting that same problem as you, so I moved the require code down to the bottom of the page. Getting a weird error now on the WOL page, it keeps on listing my server ip address....

I was trying to get http://www.dss50.tv/top/toplist.php to show up in the WOL

I've had no luck so far getting this page to register properly

anyone have any ideas?
Reply With Quote
  #181  
Old 12-31-2002, 06:54 PM
Axe's Avatar
Axe Axe is offline
 
Join Date: Dec 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by Erwin
Even though it's in a different directory. The Who's Online will still work. It's a great hack! Still using it!
Reply With Quote
Reply

Thread Tools

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 07:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04716 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete