vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Add Who's Online Locations From Admin CP (https://vborg.vbsupport.ru/showthread.php?t=66569)

Red Blaze 06-28-2004 12:51 PM

Works great, thanks. ^_^ *installs*

Intex 06-28-2004 06:10 PM

Nice work trigunflame - I remember Firefly (I think releasing this hack that I used on v2.x).

Thx.

PET 06-28-2004 07:47 PM

Works perfect ! THANX !!!

Jolten 07-03-2004 08:20 PM

Code:

// Instructions
        ----------------------------------------------------------------------
        Open your (index.php) file, which can be found in the admin directory.
        We will now edit the file and place [1] Edit.
        ----------------------------------------------------------------------

                // Edit 1
                ------------------------
                Find the following text:
                ------------------------

                construct_nav_option($vbphrase['vbulletin_options'], 'options.php?null=0', '<br />');

that string doesn't exist in my adminCP index.php file.. am I missing something?

And I can't seem to get this to function for areas outside the forum directory. I can get the titles and locations to work.. but the urls all result in internal 500 errors. It may be due to the dynamic links. it's good and it'll be useful, jut not the solve-all i was hoping for.

In addition the delete function doesnt' work. All it does is present a pop up window but won't actually delete the locations. So now I've got who's online displayign a buch of useless information adn links that will result in errors.. time to uninstall I guess.

boatdesign 07-08-2004 11:36 PM

I'm trying to show photopost locations in my who's online, but since that's installed in a separate directory (e.g. mydomain.com/photopost/index.php and mydomain.com/vbulletin/index.php) this isn't currently be possible, correct?

Erwin 07-09-2004 02:39 AM

Nice work. :)

TWTCommish 07-13-2004 02:56 PM

Quote:

Fatal error: Call to undefined function: build_datastore() in /home/virtual/site4/fst/var/www/html/community/admincp/custom_online.php on line 91
I'm stumped.

RichieBoy67 07-18-2004 01:22 PM

I beieve I have it installed and working but I want it to show when people are in my VBXIRC chat...

I add the chat/index.php and it shows nothing

Intex 07-18-2004 04:09 PM

I've installed this and although everything appears ok, when you come to add anything, you still get 'unknown location' for any of these added pages. Same problem as RichieBoy67 above, however mine was in the root of the fourms directory. Any ideas?

I'm using 3.0.1.

Bryan Ex 07-18-2004 06:14 PM

Is this supposed to work for directories outside the vB directory as well or only those within it?

jluerken 07-19-2004 07:20 PM

Quote:

Originally Posted by Trigunflame
General Info
This hack was requested to be available on Vbulletin 3. Being bored, I figured I would take the task in hand and complete it, to be better than it ever was before.

The original designer of the hack (on Vbulletin 2) is the well known Chen Avinadav, which being the great coder that he is, I dont particularly agree with his methods in this case, which he used a an excess query to select data from a template and loop through. This uses the built in datastore of vb3, therefore using No extra queries.

Therefore this hack is Completely original, in every way. I have used a different method, for accomplishing this, and the control panel I have created is intuitive and utlilizes a great many of vbulletins built in controls and phrases. Looking at the code itself on the admin panel alone you will see I didnt just throw this together and slap it on the site. Total creation time was around 4 hours, the code itself not being the main part, just mainly working out issues with the control panel etc..

Features
My version which is completely new, allows you to add the filename for the who's online along with the location name, and URL Title of the link.

The control panel which was the longest part, is pretty concise in how it works considering what I did to it. Provides a good bit of error checking to keep from accidentally doing stuff you didn't intend to do.

Also should note, the deletion part of the script uses JavaScript to confirm whether or not you wish to delete the selected Location.

I hope this gets a lot of installs, being as that my other 2 hacks/bug fixes were really just something I did in a few minutes and didn't put a great deal of effort into, judging by the fact I didnt have to "edit" any vbulletin files, to do what I wanted.

This is really my first release on this site, that I can say I believe is unique in its effort, and shows some insight on things for the newer coders out there. I have put a great deal of effort into the setup of everything as well as the readme file to be concise and as easy to read and understand as possible.

Hopefully hack of the month, lol.. j/k

Installation
I have provided an readme file inside of the zip, with information on how to install the hack, and what needs to be done to do so. Its a fairly easy installation, as you only have to add things.

Other Misc.
Files To Modify: 2
Total Modifications: 6
Installation Difficulty: Easy

Version Updates
Version 1.0 = First Release
Version 1.1 = Fixed Weird Query Error For Some People
Version 1.2 = Added ability to enable/disable links for locations

Click install if you like. Thanks. :)
https://vborg.vbsupport.ru/

Thanks for your hack, its working very well but I have one additional question.

I have integrated Photopost to my board and users browsing the gallery are showing up like this now in who's online for example:

Unknown Location
/photopost/showphoto.php?photo=88&sort=1&size=medium&cat=2

Could the hack be updated so that I can also add file or complete directorys to be shown as a link.

Example:

My Board is installed at ./forum
The gallery is installed at ./photopost

It would now be nice if any user browsing within /photopost which is logically ../photopost from the view of /forum can be shown as 'BROWSING THE GALLERY' without entering a special file.

Its easier cause everyone navigating through /photopost is in the gallery and it does not matter where in detail.

Regards
jluerken

Trigunflame 07-20-2004 03:11 AM

Ill try to make an update in a few days, ive been very busy on some game development on private projects as of late, and havnt had time to provide support some of the stuff Ive been working on here.

SVTBlackLight01 08-06-2004 12:25 AM

If you could add directories as well as specifics files that would be great. Most of the locations I need to add are outside the forum directory.

apokphp 08-13-2004 10:10 PM

I thought this was what I was needing...but it doesn't do quite what I thought. Like 1/2 the other posters here...I'm needing it to show locations for non-vb pages outside the /forums directory.

Things like /chess/index.php or /gallery/index.php or quizzes/index.php, which are all subdirectories of the root.

sully02 08-14-2004 04:41 AM

I must be doing something wrong. When I tested it and went to look at my online.php page, everything came up as 12-31-1969 and unknown location. Furthermore, my index.php on my AdminCP is no longer working, giving me the following error:

Code:

Parse error: parse error, unexpected '}' in /home/sportsd/public_html/forums/admincp/index.php on line 587

roundhost 08-19-2004 11:31 AM

Intalled flawlessly, thnks a bunch :)

rinkrat 08-21-2004 03:36 AM

Quote:

Originally Posted by RapCheck
Would this be able to differ things such as, index.php, index.php?page=contact, index.php?page=links all as different who's online locations?


So basically, using vbindex created pages, would I be able to add the extra pages to the who's online with this hack?


I need that for VBAdvanced too.

vonedaddy 08-26-2004 12:46 AM

I installed and it works great! But I have to agree with the rest of the folks. I need it to work outside the forums firectory also.

Caiman 08-26-2004 11:39 AM

Flawless install, works a treat, thanks!

*clicks install

Zelda-King 08-26-2004 11:54 AM

Quote:

Originally Posted by RichieBoy67
I beieve I have it installed and working but I want it to show when people are in my VBXIRC chat...

I add the chat/index.php and it shows nothing

That would be because the file is called 'index.php' which is already covered. I've not tested but perhaps the hack doesn't work with sub-directories so what you could do is put your chat/index.php in your root forum directory and rename the file, though perhaps that may complicate things inside the chat program itself.

roundhost 08-27-2004 08:44 PM

i donloaded this expecting problems...none so far, thums up

/me clicks install

y2krazy 08-29-2004 10:38 PM

/me clicks install!

Zelda-King 08-29-2004 11:14 PM

How about extending this so it covers member.php as well?

W4arab 09-01-2004 01:47 AM

thanx a lot

very nice and helpful :up:

thank's y2krazy

Oblivion Knight 09-17-2004 07:33 PM

Quote:

Originally Posted by Zelda-King
How about extending this so it covers member.php as well?

Yeah, I just noticed this.. Any locations added through this hack do not get pulled for member.php and is shown as an unknown location (see attachments).

58sniper 09-17-2004 08:03 PM

Quote:

Originally Posted by Oblivion Knight
Yeah, I just noticed this.. Any locations added through this hack do not get pulled for member.php and is shown as an unknown location (see attachments).


Wow - good point. I never noticed that before. And I've certainly got a couple of pages that users don't need to try and access.

Oblivion Knight 09-17-2004 09:56 PM

You can fix the member.php issue by doing the following..

Find:
Code:

        'rankphp'
Replace it with:
Code:

        'rankphp',
        'custom_online'

Find:
Code:

if (!($permissions['forumpermissions'] & CANVIEW) OR !($permissions['genericpermissions'] & CANVIEWMEMBERS))
{
        print_no_permission();
}

Add below:
Code:

// Custom Whos Online Hack
$custom_online = @unserialize($datastore['custom_online']);


TruckMuddr 09-25-2004 03:14 AM

**Installed

and awaiting for the photopost fix hopeing it will fix my other problem also. any link that have stuff after the .php won't work.

TruckMuddr 09-25-2004 08:32 AM

I got it to work, you just can't us a link if it has something behind it like "/gallery/showphoto.php?photo=151" you can do:

FileName: showphoto.php
Location: Viewing Gallery

and it'll work you just can't use a link.

teksigns 09-25-2004 01:11 PM

Quote:

Originally Posted by TruckMuddr
I got it to work, you just can't us a link if it has something behind it like "/gallery/showphoto.php?photo=151" you can do:

FileName: showphoto.php
Location: Viewing Gallery

and it'll work you just can't use a link.


use this and the link in the whos online will include everything after the .php
that way you can see the excact photo , etc that they are viewing .


https://vborg.vbsupport.ru/showpost....4&postcount=32


when adding a new one just dont include anything after the .php .
it will do this on its own .....

Bison 09-25-2004 10:17 PM

I installed this, but I guess this is only good to use when you add something (like a hack) that doesn't display the right location, if someone is active in that area ... right?

I was looking for a hack that hides the real location of admins (or anyone I choose) from the WOL display.

Wordplay 10-07-2004 09:49 AM

Questions:

-if i add http://www.xxx.com/4images/details.php? and specify the filename as gallery. would that put all the details.php? pages under gallery, such as details.php?image_id=224?.

-does this only work for php pages?

thanks alot for the hack!

FleaBag 10-10-2004 01:19 AM

Finally got this going [2nd attempt]... Works like a charm this time around! Thanks a lot. :)

SamirDarji 11-09-2004 08:21 PM

Has anyone tried this on 3.0.3 and what are the limitations of the hack? From reading the thread, I've gathered that it will still show "unknown" in member.php, and that it can't be used for php files outside of the root of the forums. Anything else?

bendigo-tech 11-10-2004 03:08 AM

Nice work. Thanks a lot. I will install shortly and report any errors (if any). :)

bondjetta 11-15-2004 10:54 PM

fantastic! :D I needed this :D Thank you!

Oblivion Knight 11-16-2004 07:07 AM

Quote:

Originally Posted by SamirDarji
Has anyone tried this on 3.0.3 and what are the limitations of the hack? From reading the thread, I've gathered that it will still show "unknown" in member.php, and that it can't be used for php files outside of the root of the forums. Anything else?

This will fix the "unknown" issue in member.php:
https://vborg.vbsupport.ru/showpost....6&postcount=67

SamirDarji 11-16-2004 03:49 PM

Thank you! I'll test it out on my test server.

T3MEDIA 12-22-2004 10:13 AM

Quote:

Originally Posted by SamirDarji
Has anyone tried this on 3.0.3 and what are the limitations of the hack? From reading the thread, I've gathered that it will still show "unknown" in member.php, and that it can't be used for php files outside of the root of the forums. Anything else?

Works. there is a mod above our posts, I think Oblivion did it for member php. and that as well... works. straight install worked very easy. you may see I think the fist line they ask you to look for has a extra word in it on my file. (was it online.php?) anyway if you do run into that just add the word that is missing. If you dont know what I am talking about ignore. IF you do dont worry the hack still works.
"Just add the word in the original line that is missing"

T3MEDIA 12-22-2004 10:15 AM

Is it safe to say all these Hacks and mods are like bug fixes.
Well I guess not if you didnt hack it in the first place.


All times are GMT. The time now is 04:16 PM.

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.01260 seconds
  • Memory Usage 1,831KB
  • 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
  • (6)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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