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
  #92  
Old 12-25-2001, 07:29 PM
TheCaver TheCaver is offline
 
Join Date: Oct 2001
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great (2.2.1) but please remember to include the session information when you post in final release, had to hunt for this...

Also for including global.php in directories above the forums level use:

chdir($DOCUMENT_ROOT . "/forums");
include("$DOCUMENT_ROOT/forums/global.php");
chdir($DOCUMENT_ROOT);

JC
Reply With Quote
  #93  
Old 12-25-2001, 09:09 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by KuraFire
I'll give that a shot then when I have some time for it. Thanks
Reply With Quote
  #94  
Old 12-29-2001, 07:59 PM
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Location: Amsterdam
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you include the thread the user is viewing? Currently I have:

file: palmthread.php
description: <a href="palmthread.php">Viewing PalmDOC-version of thread</a>

which shows up in Who's Online as not linking to the thread but to palmthread instead (ofcourse). How can I make it look like:

djr: Viewing PalmDOC-version of thread <thread here>

- djr
Reply With Quote
  #95  
Old 12-30-2001, 09:22 PM
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Location: Amsterdam
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone?

Furthermore: this very nick hack is ready for Full Release as far as I'm concerned :-)

Thanks Firefly!

- djr
Reply With Quote
  #96  
Old 12-31-2001, 07:48 PM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello DJR,

I saw your post the other day. I thought maybe Chen would answer. I'm not sure why you want the link that way. I have all of mine set up as you have mentioned

description: <a href="palmthread.php">Viewing PalmDOC-version of thread</a>

This works for me. It should be showing

"Viewing PalmDOC-version of thread" and that should be a link to the palmthread.php.

Is it working this way for you?
Reply With Quote
  #97  
Old 12-31-2001, 07:49 PM
DroppedAtBirth's Avatar
DroppedAtBirth DroppedAtBirth is offline
 
Join Date: Oct 2001
Location: Overland Park, KS
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First I am using vbp.

I can get all mine locations working except thing like

/modules.php?op=modload&name=Gallery&file=index&do= showpic&pid=9&orderby=dateD&s=68fe503349f703f78144 7

I have tried to put in /modules.php and it still comes up unknown but have more than one module so I was hoping to be able to user something like /modules.php?op=modload&name=Gallery but that doesn't work either.


Any ideas??
Reply With Quote
  #98  
Old 12-31-2001, 07:52 PM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah I see. vBPortal. I'm sorry I don't have any experience with the hack. There are a couple references to links within this thread. One was mine on page 5.

Viewing <a href="http://www.yoursite/yourforums/lastposts.php">Last 10 Posts</a>

If this doesn't work for you then I cannot help much with the implementation with vBPortal.

DJR,
If you are using vBPortal I cannot help much.

Sorry.
Maybe Chen would know how to help.
Rick
Reply With Quote
  #99  
Old 01-01-2002, 02:31 PM
djr's Avatar
djr djr is offline
 
Join Date: Nov 2001
Location: Amsterdam
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Rick,

Thanks for your answers. I'm not using vbp (although planning to do so as soon as the review section gets better).

I feel the threadinfo is a really essential part of the Who's Online section. In the normal Who's Online you have:

hooper: now reading [Who's Online locations from Admin CP]*

in Chen's hack you have:

hooper: [viewing PalmDOC version of thread]*

* = hyperlink

Whereas in example 1 you have a direct hyperlink to the thread as in example 2 you have only a link to the php-script, which is not the info you want in Who's Online.

Don't misunderstand me, I love the hack and I think it's a really cool addition to vb, but in my opinion the hack will even get better with threadinfo :-)
Reply With Quote
  #100  
Old 01-01-2002, 03:04 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

djr and DroppedAtBirth, you are both talking about something freddie had said in one of the early pages in this thread:
Quote:
While your at it firefly, save me the time and make it support different actions from the same file, i.e.

articles.php?do=add
articles.php?do=delete
Unfortunately this is not possible yet with this hack.

You must edit online.php directly and do it per page to achieve what you're looking for.
Reply With Quote
  #101  
Old 01-01-2002, 03:07 PM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



Back from the dead. Hi Chen.
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 09:17 PM.


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.05206 seconds
  • Memory Usage 2,303KB
  • 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)bbcode_quote
  • (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