Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications

Reply
 
Thread Tools
[Release] Total Users On Today Details »»
[Release] Total Users On Today
Version: 1.00, by imported_Tungsten imported_Tungsten is offline
Developer Last Online: Jan 2005 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-14-2003 Last Update: Never Installs: 1
 
No support by the author.

AUTHOR:

Tungsten


DESCRIPTION:

This template modification allows you to display the total number of unique visitors to your site during the current day on your forum home page. It is identical to the statistic shown on the admin control panel's Quick Stats table.

This requires two template modifications: One to the phpincludes_start template and one to the forumhome template.

The modification adds one query to the generation of your forum home page. It has been tested and confirmed to work on vBulletin 3.0.0 Gamma running under PHP 4.3.2.


SUPPORT:

If you have a tweak or an optimization for this mod, please submit it to me privately via PM so that I may test it. If your idea works and is something that we could all benefit from, I will likely add it to the release and will give you credit for your idea.

All other support requests should be submitted in this thread so that others may benefit.


SCREENSHOT:

A screen shot would be pointless. This is a very simple addition to your Who's Online box on the forum home page.


UPDATE LOG:

I updated this modification to work with vB3 Gamma as of December 9th, 2003.

Show Your Support

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

Comments
  #2  
Old 07-15-2003, 05:23 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

interesting add on may use it someday
Reply With Quote
  #3  
Old 07-16-2003, 05:52 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice modification,

I see you are using the old strpos way to identify the page, now that vB 3's here we dont have to use strpos . Thanks to the dev's we have a much quicker way.

Try using this instead:

PHP Code:
 if (THIS_SCRIPT == 'index'

// your script here

Just thought id share, its a little bit speeder then the old way, not that you will notice it much .
Reply With Quote
  #4  
Old 07-16-2003, 06:16 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod, will have to try it out.
Reply With Quote
  #5  
Old 07-16-2003, 03:05 PM
imported_BarryA imported_BarryA is offline
 
Join Date: Sep 2002
Location: Houston, Texas
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great... If some of you guys want to see what its like look at this page. I added the word Registered in front as I believe we are only counting registered users here and not guests.

www.FordPower.net/forums
Reply With Quote
  #6  
Old 07-16-2003, 03:22 PM
imported_Tungsten's Avatar
imported_Tungsten imported_Tungsten is offline
 
Join Date: Jul 2002
Location: Tennesspeed.net
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BarryA
Works great... If some of you guys want to see what its like look at this page. I added the word Registered in front as I believe we are only counting registered users here and not guests.

www.FordPower.net/forums
Sweet! A fellow Ford enthusiast and performance board operator.

My toy: www.tennesspeed.net/members/tungsten/
Reply With Quote
  #7  
Old 07-16-2003, 06:16 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im going to check both your boards out, I get the mustang in april
Reply With Quote
  #8  
Old 07-16-2003, 08:20 PM
Zehlek's Avatar
Zehlek Zehlek is offline
 
Join Date: Sep 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for sharing
Reply With Quote
  #9  
Old 07-16-2003, 09:10 PM
Zehlek's Avatar
Zehlek Zehlek is offline
 
Join Date: Sep 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It shows the number of people online today. Is there anyway to show the names of the ones online including guests?
Reply With Quote
  #10  
Old 07-16-2003, 09:13 PM
imported_BarryA imported_BarryA is offline
 
Join Date: Sep 2002
Location: Houston, Texas
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zehlek
It shows the number of people online today. Is there anyway to show the names of the ones online including guests?
You could list the names of the Registered user pretty easily. Worst case you just just do a select on the user table for everyone with a last login time > yesterday.

As for guests, anything you do with guests is inaccurate and probably should not be included. If an AOL user logs on he may register as 10 guests with his IP jumping all over the place. Dont forget spiders either..
Reply With Quote
Reply

Thread Tools

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 02:06 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04519 seconds
  • Memory Usage 2,291KB
  • 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_php
  • (2)bbcode_quote
  • (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
  • (2)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
  • (10)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete