Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

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
  #42  
Old 01-19-2009, 05:08 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simple & Nice, installed.
Reply With Quote
  #43  
Old 02-07-2009, 08:47 AM
Shamil. Shamil. is offline
 
Join Date: Sep 2008
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant...Would you be able to post some tutorials on how to modify this. For example on how to change the background to an image or gradient. And mabey create some modules to create signatures for specific users rather than the whole forum.
Reply With Quote
  #44  
Old 03-02-2009, 01:08 PM
GCSkye GCSkye is offline
 
Join Date: Apr 2008
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TerryMason View Post
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 ); 
I got the following:

PHP Code:
<?php
//###############################################
////////////////////// Satistics Image Light 1.0.0 Add-On /////////////////
//////-----------------------                by Gio~Logist                --------------------\\\\\\\\\\
/////------------------------   http://www.giologist.com/vb    ---------------------\\\\\\\\\\
///////////////////////////////////////////////////////////////////////
//###############################################

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''stats_image');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);

// get special data templates from the datastore
$specialtemplates = array(
    
'userstats'
);

// pre-cache templates used by all actions
$globaltemplates = array(
);

// pre-cache templates used by specific actions
$actiontemplates = array(
);

// ######################### REQUIRE BACK-END ############################
require_once('global.php');

Header ("Content-type: image/gif");

// Count Threads and Posts
$counter $db->query_first("SELECT COUNT(postid) AS posts, COUNT(threadid) AS threads FROM " TABLE_PREFIX "post");  
$count_threads $db->query_first("SELECT COUNT(*) AS threads FROM " TABLE_PREFIX "thread");  

// Gather info
$total_posts=number_format($counter['posts']);
$total_threads number_format($countthreads['threads']);
$total_members vb_number_format($vbulletin->userstats['numbermembers']); 

$my_img imagecreatefrompng("http://www.evercube.net/images/eclite.png"); 
$background imagecolorallocate$my_img255255255 ); 
$text_colour imagecolorallocate$my_img000000); 
$line_colour imagecolorallocate$my_img203203203 ); 

imagestring$my_img305$vbulletin->options[bbtitle], $text_colour );

imagestring$my_img2015$vbulletin->options[bburl], $text_colour );
imagesetthickness $my_img);
imageline$my_img03046830$line_colour );

imagestring$my_img2040"Threads: $total_threads Posts: $total_posts Members: $total_members"$text_colour );

header"Content-type: image/gif" );
imagegif$my_img );
imagecolordeallocate$line_color );
imagecolordeallocate$text_color );
imagecolordeallocate$background );
imagedestroy$my_img );
?>

The image location is right but when I view the php I get no image:
http://evercube.net/forum/stats_image.php

Any thoughts on why this isn't working?

=-=-=-= Edit

Seemed to fix itself. Thanks thou.
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 08:42 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.04227 seconds
  • Memory Usage 2,267KB
  • Queries Executed 20 (?)
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
  • (1)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
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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