View Full Version : [Request] Add more guests to the forum
I have the 'Users Online' on my board, but I want to make it so that where it says says the number of guests, I want to add another 20 "Guests". Even though there is maybe 10, it will say 30.
Do you understand what I'm saying? If so, is it possible to do so? Like in the $usersonline template, maybe have it say +20 ? No idea how to do it.
JamesUS
04-14-2001, 05:24 AM
In index.php, change:
$numberguest=$loggedins['sessions'];
to
$numberguest=$loggedins['sessions'] + 20;
Untested but hopefully it will work :)
conan
04-15-2001, 07:46 AM
That should work, but I wouldn't recommend you doing that though.
Reason is that people will tell since there will always be 20 guests online :)
The way I would do is by multiplying the number of current guests, for example:
$numberguest=$loggedins['sessions'] * 3;
So then it will vary a lot more, and people won't be able to tell!
I'm still running 1.1.4 - is it the same code? Cause I cant seem to find it.
That code destroyed my index. Whats going on? I put it back to normal, without youre edit, and it's still messed.
I get this error:
Parse error: parse error in /home/truthugs/forum/index.php3 on line 1
http://www.truthugs.com/forum/index.php3
I found out. The code you guys told me was vBulletin 2.0.
I was running 1.1.4 still (Want to upgrade once the final is released), so here's what I had to edit:
$numberguest=0;
And I changed it to:
$numberguest=10;
Thanks guys.
Sarge
04-15-2001, 11:57 PM
Cool!
How can we expand the number of posts listed on the front page also?
Version 2.0
In index.php, find:
$countposts=$DB_site->query_first("SELECT COUNT(postid) AS posts FROM post");
$totalposts=$countposts[posts];
if ($totalposts=="") {
$totalposts=0;
}
And edit the "0" and put in any number than you want ADDED onto the post count.
Do the same for the Thread code which is directly under this code.
By the way, this is for vBulletin 1.x.x - I haven't got vBulletin 2.0 beta yet, but it's probably the same thing. Mayeb a couple different variables.
Sarge
04-16-2001, 03:30 PM
I changed it, and it didn't effect my postcount at all
Weird
tubedogg
04-17-2001, 02:12 AM
That would only work if you had 0 posts to begin with. (if totalposts=blank then make it = 0). Try this:
$countposts=$DB_site->query_first("SELECT COUNT(postid) AS posts FROM post");
$totalposts=$countposts[posts];
$totalposts=$totalposts+XX;
Change XX to however many you want to add to the total.
Originally posted by Fred
I have the 'Users Online' on my board, but I want to make it so that where it says says the number of guests, I want to add another 20 "Guests". Even though there is maybe 10, it will say 30.
Do you understand what I'm saying? If so, is it possible to do so? Like in the $usersonline template, maybe have it say +20 ? No idea how to do it.
Ummmm, Fred. I do believe that you been caught!! So Jay was right:(
Lesane
10-14-2001, 05:05 PM
Whats the purpose of this?
Why adding more guests to your forum and cheat your members or guests by showing them fake guests? I dont see the point in it.
[QUOTE]Originally posted by Lesane
Whats the purpose of this?
Why adding more guests to your forum and cheat your members or guests by showing them fake guests? I dont see the point in it.
Alwayz 4 reel
10-14-2001, 06:26 PM
Why was my post deleted?:D
JamesUS
10-14-2001, 07:17 PM
Because it was full of swearing and added no value to the thread.
Alwayz 4 reel
10-14-2001, 09:20 PM
Cool, makes sense.
Niggaz
10-17-2001, 01:31 AM
Originally posted by JamesUS
Because it was full of swearing and added no value to the thread.
and Y was mine? foolio
~K~N~
Felix Mitchell
10-17-2001, 03:19 PM
Originally posted by E.Z.
Ummmm, Fred. I do believe that you been caught!! So Jay was right:(
damn straight he was right
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.