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)
-   -   "Users browsing this thread" (https://vborg.vbsupport.ru/showthread.php?t=36841)

Admin 03-31-2002 10:00 PM

"Users browsing this thread"
 
Here's what I did when I first written the hack for vB.org.
Since nakkid's query was wrong, I got permission from him to post my version. :)

Anyway, this is using vbHacker so you'll need that. See my signature for a link about that.

This hack adds a list of users currently browsing the thread you see. It requires another field in the user table and no new queries except for showthread.php. It's based of the "Users browsing forum" feature so it was easy. :)

Cheers.

Recluse 04-01-2002 03:26 PM

went off without a single hitch :) thank you sir

Kyomu 04-01-2002 03:36 PM

Many thanks.

inetd 04-01-2002 03:41 PM

Hi!
Good! Big thx!

Smellycat 04-01-2002 04:04 PM

Perfectly installed, without a hitch

Cheers!

Recluse 04-01-2002 04:06 PM

correction when i edit a post i get Warning: Failed opening '/home/cra****/public_html/forums/editpost.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0

ladyfyre 04-01-2002 04:07 PM

does anyone have the one nakkid wrote still??

I had already installed it, and can't find it on my computer, and need it again to un-install.....looks like they deleted it from here already :(

Lesane 04-01-2002 04:08 PM

Could u also post a normal txt file with the instructions? That would be cool, thanks. :)

Smellycat 04-01-2002 04:14 PM

Quote:

Originally posted by Recluse
correction when i edit a post i get Warning: Failed opening '/home/cra****/public_html/forums/editpost.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
I just tried to edit a post on mine and never got a error.

Pheeeww!!!

Admin 04-01-2002 04:19 PM

ladyfyre: remove the part from "// Get users browsing this thread" until:
Code:

    eval("\$loggedusers .= \"".gettemplate('showthread_loggedinusers')."\";");
  }
}

Recluse: make sure editpost.php is uploaded. The system can't find.

Recluse 04-02-2002 03:18 AM

Quote:

Originally posted by FireFly


Recluse: make sure editpost.php is uploaded. The system can't find.

i get it when veiwing attachments also, i let vb hacker edit them, so i never even downloaded them ( well i did backs up first ) im going to try again here in a few and see what happens

FWC 04-02-2002 04:34 AM

Quote:

Originally posted by Lesane
Could u also post a normal txt file with the instructions? That would be cool, thanks. :)
You can tell vBHacker to make you a text file. I'm going to check it out with this one. :)

TECK 04-02-2002 04:38 AM

i was so close to the answer.. ;)
all i missed was to run the query. the code is identical. :) well almost. i didnt see the inforum because i dont have my mysqlmanager installed on my pc. is a done thing now... :p

TECK 04-02-2002 04:41 AM

the text file... ;)

Admin 04-02-2002 04:57 AM

Quote:

Originally posted by nakkid
i was so close to the answer.. ;)
all i missed was to run the query. the code is identical. :) well almost. i didnt see the inforum because i dont have my mysqlmanager installed on my pc. is a done thing now... :p

Yeah, and editing 10 more files to update the inthread field and create it. ;)

TECK 04-02-2002 05:04 AM

Quote:

Originally posted by FireFly
Yeah, and editing 10 more files to update the inthread field and create it. ;)
true. i was referring to the actual hard code.

Recluse 04-02-2002 05:18 AM

Quote:

Originally posted by FireFly


Recluse: make sure editpost.php is uploaded. The system can't find.

ok i used vb hacker again, just dident let it run the query or re-edit the templates and it wokrd fine :) thanks for the hack dude

Erwin 04-02-2002 06:27 AM

Thanks nakkid for the text file - I'm an old-fashion guy! :D

Jawelin 04-02-2002 07:31 AM

to Lesane & Erwin

I'm an old-fashion lover too... ;)
See this Firefly post about the exporter.

Didn't tried yet, but I absolutely hope it works.... ;)

Lesane 04-02-2002 08:02 AM

Quote:

Originally posted by nakkid
the text file... ;)
Thanks :up:


(Where is the up Firefly? ;) )

cditty 04-03-2002 12:45 AM

How would I make this visible to admins and mods only?

Chris

TWTCommish 04-03-2002 01:12 PM

Quote:

Originally posted by cditty
How would I make this visible to admins and mods only?
I think you'll want to replace this...

PHP Code:

    if ($browsers) {
        eval(
"\$onlineusers = \"".gettemplate('showthread_browsing')."\";");
    } 

...with this...

PHP Code:

    if ($browsers && ($bbuserinfo[usergroupid] == || $bbuserinfo[usergroupid] == || $bbuserinfo[usergroupid] == 7)) {
        eval(
"\$onlineusers = \"".gettemplate('showthread_browsing')."\";");
    } 

...I think that should make it visible to Mods, Super Mods, and Admins. Haven't tested it, though. :)

Admin 04-03-2002 03:32 PM

Or use ... and ismoderator(). :)

TWTCommish 04-03-2002 03:36 PM

Shhhhh! Do you want EVERYONE to know that I don't know jack squat about vb? :D

Admin 04-03-2002 03:39 PM

Heh, I was using what you posted as well until very recently, when I discovered ismoderator(). :)

Gutspiller 04-05-2002 09:10 PM

Can somebody tell me if this hack would work with 2.0.3? And where is the "Who's Browsing This Forum" hack? I want that one too, is that included in 2.2.4/5 :ermm:

I have been looking for a hack that does this ever since I installed my board, but yet again I am stuck with my version and am not willing to upgrade. Somebody please tell me this hack will work or might work with 2.0.3???

Thanks for any help you guys can provide.

Lyric Olympics 04-06-2002 01:06 AM

i have 2.2.5
and this line isn't in newreply.php

PHP Code:

updateuserforum($threadinfo['forumid']); 


FWC 04-06-2002 06:45 AM

Quote:

Originally posted by Lyric Olympics
i have 2.2.5
and this line isn't in newreply.php

PHP Code:

updateuserforum($threadinfo['forumid']); 


It's line 72 of an unhacked 2.2.5 newreply.php.

Admin 04-06-2002 07:35 AM

That line is changed if you installed my Users Browsing Thred hack, Olympics.

Lyric Olympics 04-06-2002 02:53 PM

that's odd
i have no hacks and i've uploaded the files
but my newreply is different
i downloaded a fresh copy and reuploaded again
and now i can find that line
odd
thanx anyways

Gutspiller 04-09-2002 06:18 AM

Firefly does this hack work with 2.0.3? It kinda sounds like it uses a addon from 2.2.4/5 did I read it wrong or is 2.2.4 + a must?

While I'm here, how do I set VBHacker to make backups? It doesn't say in the VBhacker thread how or what to do. If it does it automatically what are the names of the backup files and what if a file of that name already exists?

TECK 04-09-2002 06:39 AM

firefly, i noticed something:
if i view the list of users in showthread.php, there are some users that are not listed in forumdisplay.php (users that actually browsed that specific thread i viewed). to be more clear, if i view this thread, and you are here also, if i go back to the detailed category, you are not listed there. any idea why?

this is happening only when i get out of the showthread.php.

just curious if you could see why it's happening this.
thanks.

Admin 04-09-2002 11:25 AM

Guts: you must have at least 2.2.0 as it uses the Users browsing this forum engine.

-=dm=- 04-09-2002 02:09 PM

hmm what does this hack do?

TWTCommish 04-09-2002 02:11 PM

Quote:

Originally posted by -=dm=-
hmm what does this hack do?
Um, Chen described what it does in the first post, and a demo is seen right above the "Next Thread" and "Previous Thread" links on this very page. :)

-=dm=- 04-09-2002 02:24 PM

Thanx
but I can see, on my forum "Users browsing this thread" without I added this hack. how come?

Gutspiller 04-09-2002 07:59 PM

Quote:

Originally posted by FireFly
Guts: you must have at least 2.2.0 as it uses the Users browsing this forum engine.
Thanks. :(

I wonder if it would be possible to have to boards same server, but one be for news and one be for chatting. :devious:

Mental Stamina 04-09-2002 09:02 PM

Quote:

Originally posted by Gutspiller
I wonder if it would be possible to have to boards same server, but one be for news and one be for chatting. :devious:
as long have you have 2 databases you can have 2 boards

Crazy Mofo 04-13-2002 02:32 AM

How can one align it on the right like vBulletin.org has here above NEXT THREAD

Crazy Mofo 04-14-2002 05:40 PM

:(


All times are GMT. The time now is 04:44 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.01376 seconds
  • Memory Usage 1,816KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (12)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