![]() |
Hmm ... maybe it doesn't look for the user, but for unique hosts or something?
|
Does this hack show only the regsitered members browsing or does it include guests as well?
If it includes guests I will click install. :) |
Only registered members, you have to wait till vB3 for guests ;)
|
yeah, GUEST ADDON will be very nice...
because i have more guests, than users online........ |
Is it possible that I could install this so only admins/mods can view the counts?
|
Hmm, maybe a good idea for a 'x members, y guests viewing forum' style on this hack would be to add a new column to the sessions table and modify admin/sessions.php... In fact, I think I'll mess around with it and try to get it set up like that.
But all in all, this is a pretty dope hack. Looking forward to getting it working later today. |
Clicks install and tries it.
Thanks for the great hack :) |
Quote:
PHP Code:
PHP Code:
|
This seems like a very easy install. How ever I can't find this
<td bgcolor="#006633"><smallfont color="#FFCC00"><b>Threads</b></smallfont></td> in the forumhome template. You said look there or where it might be find. Where else could it be. Please Help |
maybe it's a little late but can someone please post the whole code for the ($browsing the forum) - or something like that.
everything is screwed. I did it once but it screwed the forum so I don't want to try it again without having the right instructions. Thanks. |
works for 2.2.8, is there a way to make it show user id instread of number of users?
|
Anyone know how I could set this up, where it would show # of users in thread on forum display? that would be real cool IMO. :) Thanks,
Metro. |
A great hack, thanks! Got it working on v2.3 #3
Suggestion: There is so much good information in this thread, that it outdates the actual initial posting. Because of that, a newbie (such as myself) can pretty much get lost. (I did but managed to survive, lol) - Maybe someone can update it with what the actual best hack is (and complete (most efficent) hack). |
I hope Neo doesn't mind me adding a revised version of this hack here. All credit to him, FireFly, & Orlandu for the coding in the revised version. I just take credit for the template edits, because I didn't use the ones posted or in the original file. ^^; I'll add a demo of what it looks like in another post.
Here's the file, I installed it on the vB 2.3.0 Candidate 3 btw. :] |
And this is what it looks like.
|
I thought firefly said that you only have to edit index.php not both index.php and forumdisplay.php?
|
I had to edit both. I just put all the code from the original hack into the .txt file. I only did it to make things easier since codes were here and there. ^^;
|
SavgeDusk: A fine job, and I thank you for condensing it all into an easily installable format. I was running v2.3.3 under the original hack, but I since used your 'updated file' and made the changes to keep up to date with the latest. Many thanks for making a newbies life worth living!
|
SavgeDusk..
Fine job THANKS!!!! |
firefly,
any way to adjust the query so it includes all subforums under the parent forum? In other words if there is a forum on the homepage which containts 5 popular forums and the parent forum is a no posting forum then it shows 0 users browsing that forum leading to the appearance nobody is browsing the 5 forums inside of it when in reality it could be 100's of users. |
/me hits install
Flawless on 2.3.0 including sub-forums. (vBulletin.org style) |
This is a modified version of Neo and FireFly's "# of users on forumhome". This hack uses templates to control certain aspects of it. It likely resembles the version Jelsoft used with vBulletin 3 but seeing as how I haven't even downloaded it yet I decided to accomplish the same with vBulletin 2.
. If there is 1 user browsing, you can have it say "1 user" instead of "1 users" . If there are 0 users browsing, nothing will show up at all. Note: It does not currently work for sub-forums as far as I can tell, I am looking into that to see if I can figure out to do that. Example: http://www.ewplanet.org/e/index.php?s= NOTE: If you find this hack useful and plan on using it, click install. [v 1.1 fixes] + Added templates to $templatesused to save 1 query. ++ Thanks to Mist & Alien for the suggestion. + Added forumdisplay_nobrowsers template just incase people want to display something for 0 users browsing. ++ Thanks to MadCat75 for the suggestion. [v 1.2 fixes] + Changed $browsers variable to $numbrowsers variable in template forumdisplay_nobrowsers ++ Thanks to MadCat75 for the alert. [v 1.3 fixes] + Changed $numbrowsers variable back to $browsers in template forumdisplay_nobrowser. ++ Got confused with one users question and made the wrong choice. [v 1.4 fixes] + Assigned 0 to the variable $browsers if there were no users browsing. |
If you do not wish to follow one of the above links in order to view this hack in action, a screenshot has been provided.
|
Keep up with the good work man. :cool:
|
Nice work my friend :)
|
Barely work, thanks for the comments. I'm learning, slowly and this is just fun for me. I figure if I do something neat with my forums, that I should release it to this community because my community's features are great due to this place, without it it would be just forums... my small way of giving back.
|
I'm quite sure this has been done before (I know almost every hack in this damn db :p). I'll look for it to be sure.
|
Quote:
Good work |
I said it twice, said it once in the hack file, and gave a link to the original hack. I'm quite well aware of the fact that it's been done before. :)
|
How many additional queries does this add to the forumhome?
Also, anyone know if it would be helpful to add the template calls added from this hack into the templatesused line? Thanks. :) |
1query I believe and yes it will add two if you don't add the template to templates used ;)
- miSt |
But what about like here at vb.org? What if I want it to say ( 0 users browsing ) if there are no users browsing? :ermm:
|
Quote:
|
I will rework the hack so there is another template for no browsers browsing. So you can either leave it blank or fill it with content. But WEForums is right, you can do what he said and use the original hack by Neo & Firefly.
|
Alright, the attachment has been updated to do what MadCat75 wanted. You can either leave the nobrowsers template blank or put in code.
Good question MadCat75. ;) |
Excelent hack dude!
|
Quote:
Thank you! |
Oh one more thing.... I made the new changes but it says ( users browsing ) when theres nobody on but I want it to say ( 0 users browsing ) what changes to I need to make?
|
In template forumdisplay_nobrowsers change $browsers to $numbrowsers.
The file attachment has been updated to reflect this. |
Thanks :)
Edit: I did as you said now the whole thing is screwed up..... any help here? www.sims2forums.com everything got all screwed and so I just put it back to ( users browsing ) :cry: |
All times are GMT. The time now is 05:12 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|