Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Forum+ecDownloads Stats on Signature Image Details »»
Forum+ecDownloads Stats on Signature Image
Version: 1.00, by Mr Chad Mr Chad is offline
Developer Last Online: Apr 2009 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.4 Rating:
Released: 01-13-2007 Last Update: 01-13-2007 Installs: 31
Uses Plugins
Additional Files  
No support by the author.

If you like it click


Installation Time: <2 mins
Files: 3
Products: 1
VB Version: This actually works on 3.6.0 - 3.6.4


Description:

This Hack will but your vb Forum stats (i.e. No. of Members, Threads and Posts) on your Signature Image. It uses the layout from sig.jpg, calls the stats from your Databank and creates a new images called signature.jpg

This hack uses the PHP-GD Function, so be shure you have this enabled on your server. If you don?t be shure about this, ask your host or look in your PHP-Info.

Installation Instructions:
  1. Open signature.php in a text editor and set the variables at top according to your requirements (These are settings for stats text placement and with and height of signature image)
  2. Upload signature.php to your /includes/cron/ dir
  3. Open sig.jpg in your favourite Graphics Programm and make a real cool Signature image
  4. Save it with the same name and upload it and a blank one named signature.jpg to your forum directory (CHMOD 777 on both)
  5. Install the plugin and wait 10 mins (or run the scheduled task "Update Sig Stats")
Examples:







FAQ: N/A

If you like it click



This hack was based on tkeil69575's hack.

To add extra stats look in the signature.php for more info.

Show Your Support

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

Comments
  #32  
Old 02-02-2007, 02:59 PM
zompus zompus is offline
 
Join Date: Aug 2006
Location: Essex
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update Sig Stats

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/username/public_html/includes/cron/signature.php on line 49
Reply With Quote
  #33  
Old 02-02-2007, 03:18 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zompus View Post
Update Sig Stats

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/username/public_html/includes/cron/signature.php on line 49
you dont have GD ?
Reply With Quote
  #34  
Old 02-12-2007, 06:10 PM
Tom_S Tom_S is offline
 
Join Date: Jan 2007
Location: VA Beach
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get it to display anything but Members, Threads, & Posts even though I uncommented the online user(s) out.
Reply With Quote
  #35  
Old 02-12-2007, 07:14 PM
Tom_S Tom_S is offline
 
Join Date: Jan 2007
Location: VA Beach
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RetroDreams View Post
I ended up figuring it out.

See you posted up my sig... Thanks for the great hack!
You wouln't mind sharing what you did would ya?
Reply With Quote
  #36  
Old 02-12-2007, 08:36 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well you need to add the Vars in the text:

PHP Code:
$text "Members: $usercount\nThreads: $threadcount\nPosts: $postcount\n"
thats the standard line. add the ones you want in there.
Reply With Quote
  #37  
Old 02-12-2007, 08:56 PM
Tom_S Tom_S is offline
 
Join Date: Jan 2007
Location: VA Beach
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it..thanks
Reply With Quote
  #38  
Old 02-16-2007, 02:51 PM
Termi Termi is offline
 
Join Date: Nov 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey

can you help me pls

i've got a mistake on lin 15

called

$postcount = $vbulletin->db->query_first("SELECT COUNT(*) AS posts FROM " . TABLE_PREFIX . "post");

the mistake is

Fatal error: Call to a member function on a non-object in /home/www/doc/6547/corsa24.de/www/includes/cron/signature.php on line 15

in admincp on cron job "starts"

Update Sig Stats

Warnung: imagecreatefromjpeg(/home/www/doc/6547/corsa24.de/www/home/www/doc/6547/corsa24.de/www/sig.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /includes/cron/signature.php (Zeile 49)

Warnung: imagecopy(): supplied argument is not a valid Image resource in /includes/cron/signature.php (Zeile 55)

Warnung: imagejpeg() [function.imagejpeg]: Unable to open '/home/www/doc/6547/corsa24.de/www/home/www/doc/6547/corsa24.de/www/signature.jpg' for writing in /includes/cron/signature.php (Zeile 77)

Erledigt

what have i made wrong ?

thanks for helping

sorry for bad english

greets Termi
Reply With Quote
  #39  
Old 02-17-2007, 05:17 AM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Termi View Post
hey

can you help me pls

i've got a mistake on lin 15

called

$postcount = $vbulletin->db->query_first("SELECT COUNT(*) AS posts FROM " . TABLE_PREFIX . "post");

the mistake is

Fatal error: Call to a member function on a non-object in /home/www/doc/6547/corsa24.de/www/includes/cron/signature.php on line 15

in admincp on cron job "starts"

Update Sig Stats


Warnung: imagecreatefromjpeg(/home/www/doc/6547/corsa24.de/www/home/www/doc/6547/corsa24.de/www/sig.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /includes/cron/signature.php (Zeile 49)

Warnung: imagecopy(): supplied argument is not a valid Image resource in /includes/cron/signature.php (Zeile 55)

Warnung: imagejpeg() [function.imagejpeg]: Unable to open '/home/www/doc/6547/corsa24.de/www/home/www/doc/6547/corsa24.de/www/signature.jpg' for writing in /includes/cron/signature.php (Zeile 77)

Erledigt

what have i made wrong ?

thanks for helping

sorry for bad english

greets Termi
you need to CHMOD the images 777
Reply With Quote
  #40  
Old 02-17-2007, 05:51 AM
Termi Termi is offline
 
Join Date: Nov 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hy,

thanks for helping

but the images have 777

that is signature.php

$width = 620;//Width of banner image
$height = 90;//Height of banner image
$left = 153; //Left text-margin
$top = 8; //text-margin from top
$linespacing = 15; //Line-spacing of text
$blanksig = DIR . "/home/www/doc/6547/corsa24.de/www/sig.jpg"; //full path to empty signature image (input image)
$finishedsig = DIR . "/home/www/doc/6547/corsa24.de/www/signature.jpg"; //full path to signare image with forum data (output image)
$imcompression = 95; //Compression of output image
$debug = 0; //debug mode

that s right ?

greets Termi
Reply With Quote
  #41  
Old 02-17-2007, 03:58 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

are you running it through the cron? or trying to directly run it?
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 05:23 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.05112 seconds
  • Memory Usage 2,306KB
  • Queries Executed 27 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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_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