Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Fred (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-14-2001 Last Update: Never Installs: 0
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-14-2001, 05:24 AM
JamesUS's Avatar
JamesUS JamesUS is offline
 
Join Date: Oct 2001
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In index.php, change:
PHP Code:
  $numberguest=$loggedins['sessions']; 
to
PHP Code:
  $numberguest=$loggedins['sessions'] + 20
Untested but hopefully it will work
Reply With Quote
  #3  
Old 04-15-2001, 07:46 AM
conan
Guest
 
Posts: n/a
Default

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:

PHP Code:
$numberguest=$loggedins['sessions'] * 3
So then it will vary a lot more, and people won't be able to tell!
Reply With Quote
  #4  
Old 04-15-2001, 09:32 PM
Fred
Guest
 
Posts: n/a
Default

I'm still running 1.1.4 - is it the same code? Cause I cant seem to find it.
Reply With Quote
  #5  
Old 04-15-2001, 09:42 PM
Fred
Guest
 
Posts: n/a
Default

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:
Code:
Parse error: parse error in /home/truthugs/forum/index.php3 on line 1
http://www.truthugs.com/forum/index.php3
Reply With Quote
  #6  
Old 04-15-2001, 10:36 PM
Fred
Guest
 
Posts: n/a
Default

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:

PHP Code:
    $numberguest=0
And I changed it to:

PHP Code:
    $numberguest=10

Thanks guys.
Reply With Quote
  #7  
Old 04-15-2001, 11:57 PM
Sarge
Guest
 
Posts: n/a
Default

Cool!
How can we expand the number of posts listed on the front page also?

Version 2.0
Reply With Quote
  #8  
Old 04-16-2001, 06:01 AM
Fred
Guest
 
Posts: n/a
Default

In index.php, find:

PHP Code:
  $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.
Reply With Quote
  #9  
Old 04-16-2001, 03:30 PM
Sarge
Guest
 
Posts: n/a
Default

I changed it, and it didn't effect my postcount at all

Weird
Reply With Quote
  #10  
Old 04-17-2001, 02:12 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would only work if you had 0 posts to begin with. (if totalposts=blank then make it = 0). Try this:
PHP Code:
$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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:53 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.04478 seconds
  • Memory Usage 2,281KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (7)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete