Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Live Statistics Image 1.0.0 Light Details »»
Live Statistics Image 1.0.0 Light
Version: 1.00, by Gio~Logist Gio~Logist is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.3 Rating:
Released: 10-01-2008 Last Update: 11-23-2008 Installs: 37
 
No support by the author.

Brought To You By
ModernvB - Vbulletin Solutions & Services
http://www.modernvb.com

Live Statistics Image Light 1.0.0
A great way to display your website's live stats! A 468x60 image is automatically generated with your site's name, url, and a few statistics.

Live Demo:



Instructions
  • Upload stats_image.php
  • Get ready to link it away
    (it can be used in pretty much any image tag where dynamic images are accepted)

Show Your Support

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

Comments
  #32  
Old 10-20-2008, 11:24 PM
soqzippo soqzippo is offline
 
Join Date: Sep 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nobody cares.. the mod rules
Reply With Quote
  #33  
Old 10-21-2008, 05:50 AM
dodjer42's Avatar
dodjer42 dodjer42 is offline
 
Join Date: Jul 2006
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by soqzippo View Post
nobody cares.. the mod rules
And you speak for all?

The implementation of a statistics signature for vbulletin is a great idea, though it has been done before, and done better:

http://www.vbseo.com/blogs/danny-bem...-generator-63/

Gio deserves rep for it but at the same time, those considering it should be aware of the risk of this code.

Read around; lots of admins shy away from installing mods that perform even a single database query on a busy board. Now this does 3 queries for every view of the signature. Say you post this signature on a busy forum with around 100 concurrent users. You are looking at 300 mysql queries to generate a single image. Big problem!
Reply With Quote
  #34  
Old 10-21-2008, 08:25 AM
carlos54321 carlos54321 is offline
 
Join Date: Jul 2008
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dodjer42 View Post
This script is dangerous. It contains several db queries. By posting it on a busy forum you are effectively creating your own distributed denial of service.

A far more safe way to do this, though not updated in real time, is to run a cron job which creates the signature image every hour or so.

In regards to changing font, its pretty straight forward:

PHP Code:
$font_size "10";
$font_file "bombard.ttf"
imagettftext($my_img$font_size305$text_colour$font_file$vbulletin->options[bbtitle]); 
Font must be a true type.
Thanks
liked this mod but as to the comment you made,your right this is not so good so until i can work out how to cron job it then ive uninstalled.
would be nice on some instructions on how to make a cron job which creates the signature image every hour or so. please
Reply With Quote
  #35  
Old 10-21-2008, 08:39 AM
dodjer42's Avatar
dodjer42 dodjer42 is offline
 
Join Date: Jul 2006
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check the link above Carlos. That one has a cron built in.

Maybe Gio will include one in an update too.
Reply With Quote
  #36  
Old 10-21-2008, 10:45 AM
carlos54321 carlos54321 is offline
 
Join Date: Jul 2008
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahh fantastic cheers fella
Reply With Quote
  #37  
Old 11-24-2008, 08:13 AM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated stats_image.php to use vbulletin's datastore and forumcache to pull stats, as oppose to running queries for each.
Reply With Quote
  #38  
Old 11-24-2008, 07:30 PM
onehost onehost is offline
 
Join Date: Jul 2006
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting, I like this, Marked Installed.

however, i really do not like the background/font colors, anyway to change this?
Reply With Quote
  #39  
Old 01-05-2009, 04:40 PM
TerryMason TerryMason is offline
 
Join Date: Oct 2005
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by onehost View Post
Interesting, I like this, Marked Installed.

however, i really do not like the background/font colors, anyway to change this?

Take a look at this image
http://www.pchangout.com/forum/sig5.php

I just used my own background with it:

PHP Code:
// Gather info
$total_posts number_format($total_posts);  
$total_threads number_format($total_threads);  
$total_members vb_number_format($vbulletin->userstats['numbermembers']); 

$my_img imagecreatefrompng("http://www.pchangout.com/images/sig/5.png");
$background imagecolorallocate$my_img255255255 );
$text_colour imagecolorallocate$my_img000000);
$line_colour imagecolorallocate$my_img203203203 ); 
Reply With Quote
  #40  
Old 01-05-2009, 07:32 PM
private_ale's Avatar
private_ale private_ale is offline
 
Join Date: Dec 2007
Location: New Jersey
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome idea and very customizable!
Installed

and because I'm in a good mood, Nominated for MOTM

Reply With Quote
  #41  
Old 01-08-2009, 02:32 AM
clubbah clubbah is offline
 
Join Date: Dec 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way where you can also include how many members are currently online? Is that possible?
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:44 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.05064 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (3)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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