vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Add Who's Online locations from Admin CP (https://vborg.vbsupport.ru/showthread.php?t=32849)

Admin 11-30-2001 10:00 PM

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.

Admin 12-01-2001 07:56 AM

Top part is the Admin CP, bottom is Who's Online.

Crinos 12-01-2001 08:14 AM

Hmmm, trying it out, but I get a 404 when I submit a change ...

since the admin_online.php is in the admin folder, should this:
Code:

<form action="online.php"  name="name" method="post">
be like this:
Code:

<form action="../online.php"  name="name" method="post">
or something?

Admin 12-01-2001 08:22 AM

Sorry, that's my bad.
Download admin_online.php again and upload to your server.

I changed the file name in the last minute and forgot to update the <form> tags.

Crinos 12-01-2001 08:31 AM

Hmmm ... still says "online.php" in the form FF :(

Hooper 12-01-2001 11:52 AM

Thanks for seeing it Chen....
Going to install for testing....

Lesane 12-01-2001 12:18 PM

Sounds great, going 2 install it 2

Thanks Firefly

Hooper 12-01-2001 12:47 PM

Edit remove isn't working for me. Anyone tried to edit or remove?

Changed:

makelinkcode("edit"," online.php?s=$session[sessionhash]&action=edit&locnum=$locnum").
makelinkcode("remove",".online.php?s=$session[sessionhash]&action=remove&locnum=$locnum").

paths to reflect where the online.php exists

makelinkcode("edit","../online.php?s=$session[sessionhash]&action=edit&locnum=$locnum").
makelinkcode("remove","../online.php?s=$session[sessionhash]&action=remove&locnum=$locnum").

Problems still with edit remove as mentioned by Crinos.

Added a total of 3 links. Last was lastposts.php for the Filename and Viewing Last 10 Posts! for the Description.

......Will wait now.

Admin 12-01-2001 01:54 PM

Ok, download admin_online.php once again and upload to your server.
Sorry again for all of this.

You see, originally the filename was just online.php, but to keep you from confusing it with the regular online.php (in the forums folder), I renamed it.

Hooper 12-01-2001 03:48 PM

No apologies necessary. That's why we're in the beta room :D . Appreciate the work.

I am still getting 404's. The edit and remove still don't work. At least on this end.

Anyone else testing this please post what you get.


All times are GMT. The time now is 06:28 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.01454 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete