![]() |
# of users in forum on forumhome
Ok here it is.. I have seen a few requests for it... so here it is.
Info: What it does is show the number users in a forums on your forum home / main page. Install Info: 2 File Adds 6 template edits Thats it. I will post images below if you need an idea of what it looks like :) Here is the new version of it. " Thanks Chen :bunny: " The first file will be posted below it you need to unistall or would like to use it O__O |
Image :cool:
|
Very cool. :)
|
Nice :)
|
Thanks for sharing neo! Nice hack!
|
Thanks neo - I modified it so that I can show how many users are using a particular forum in the header of every page - My java chat is actually a forum on my site, and this is what I've been looking for to show who's chatting. :)
|
This adds another query for each forum you have... ouch.
|
This is how I did it, only adds one query to the index page and the query is quite fast as well.
I added this somewhere: Code:
// Users browsing each forum Code:
global $forumbrowsers; |
Quote:
|
No, just index.php.
|
Alright, thanks. :)
|
Thanks Neo, for the idea, and thanks FireFly, for the less server-killing improvement. *hits install button*
|
Cool Firefly thanks for the insight :)
Old File : |
Nice addition, when I install it next month, then I will add it to the board description though :) Saves me another column in the design.
|
hey. groovy!
i put it in my forum description too, tho; right after the forum title. i dunno, i'll fiddle around with the location a bit in a while. nice work, neo/firefly! :) |
Uh i can't find this :(
PHP Code:
|
it might also be in forumhome_forumbit_level1_nopost
|
Quote:
Chen, I tried your code in my index.php and all I see is "0" for the $browser value in all my forums. I am fairly sure I've put the code in the right place. If you don't mind, I will PM you my index.php for your perusal, to see if everything is in the right place. |
Erwin which template did u put $browsers in?
|
verify you have added the code to forumdisplay.php
|
I moved the second bit of code around a bit, and it works now. Basically you cannot just put the makeforumbits code anywhere in that function. You need to place it exactly where neo said in his text file. Sorry to bother all of you. :)
Nice hack Firefly and Neo. |
well can u share it with me :D from da begining ;)
|
grrrrrrrrrrrreat hack!! thanks neo and firefly.
i made a little mod to it and place also a link to online users.. for now. i plan to extend the online users, per forum not global the way it is now, in VB. for now i use this link: Code:
<a href="online.php?s=$session[sessionhash]" title="$activeusers Viewers In $forum[title]">$activeusers Active Users</a> |
nice but still i aint got it working :( can some1 make a new installatino txt file the latest one?
|
the install readme file on the first post is reliable. follow the instructions posted there.
|
ah oki....
is that the one that vb.org is using here? |
Cool Nakkid :)
|
Quote:
the important thing is that the code above works great. :D let us know how your install went... if you need any help, post it here and we will give you a hand. |
Ok thx and sorry for being a newbie :cry: :ermm:
|
Quote:
dont worry and dont feel shy to ask... |
should there be a 0 showing up if no1 is browsing?
|
how would i do a LEFT JOIN to include also the guests?
|
Quote:
|
o dear i have a problem :/
|
what is the prob? let us know...
|
can i send some1 my index and forumdisplay too av a look at?
|
well nuttin shows up atall no numbers etc.. i actully got the bar too show though thx too you nakkid :D
|
heres the pic
|
let's recap toghther crazy.. do this:
in index.php find: Code:
// Start makeforumbit Code:
// users browsing each forum Code:
if ($forum['cancontainthreads']==1) { Code:
global $forumbrowsers; Code:
<td bgcolor="#F1F1F1"><normalfont>$forum[threadcount]</normalfont></td> Code:
<td bgcolor="#F1F1F1"><normalfont>$count</normalfont></td> |
neo (should i say firefly? ;))... please make me happy and add that LEFT JOIN.. actually can anyone tell me if it will bring the server to it's knees if i do this? add also the guests into it?
here what i did: Code:
$getforumbrowsers=$DB_site->query('SELECT COUNT(*) AS count,inforum |
All times are GMT. The time now is 04:47 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:
|