vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Mini Mods - Live Statistics Image 1.0.0 Light (https://vborg.vbsupport.ru/showthread.php?t=192512)

soqzippo 10-20-2008 11:24 PM

nobody cares.. the mod rules

dodjer42 10-21-2008 05:50 AM

Quote:

Originally Posted by soqzippo (Post 1649341)
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!

carlos54321 10-21-2008 08:25 AM

Quote:

Originally Posted by dodjer42 (Post 1648919)
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:)

dodjer42 10-21-2008 08:39 AM

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

Maybe Gio will include one in an update too.

carlos54321 10-21-2008 10:45 AM

:) ahh fantastic cheers fella

Gio~Logist 11-24-2008 08:13 AM

Updated stats_image.php to use vbulletin's datastore and forumcache to pull stats, as oppose to running queries for each.

onehost 11-24-2008 07:30 PM

Interesting, I like this, Marked Installed.

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

TerryMason 01-05-2009 04:40 PM

Quote:

Originally Posted by onehost (Post 1672180)
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 ); 


private_ale 01-05-2009 07:32 PM

Awesome idea and very customizable!
Installed :D

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

https://vborg.vbsupport.ru/

clubbah 01-08-2009 02:32 AM

Is there a way where you can also include how many members are currently online? Is that possible?


All times are GMT. The time now is 05:41 AM.

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.01278 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete