Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Signature Stats v3.04 Details »»
Signature Stats v3.04
Version: 3.04, by DWard DWard is offline
Developer Last Online: Mar 2018 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 05-20-2004 Last Update: 01-27-2005 Installs: 113
 
No support by the author.

VERSION 3.04
[05/09/2004]

-----------------------------------------------

This Hack is released under an EverythingvB.com FullAttribution-LimitedDerivs-LimitedTranslation License
-----------------------------------------------

This hack allows you to display your forum statistics in an image,whichyou can use as your signature in most forums (like mine).

If you have any trouble, please post here or in my forum for a good response. Please Click INSTALL, otherwise if an important fix becomes available, you will not be notified.

Now with truetype font support and line breaks. Fixed online userscode(was resetting 'most users online'). New easy support for GD2 andbelow.

Attached pixel font for use in your signatures, must be in all capitals, at size 6 to work appropriately.

New! Attached signature colourgenerator application. Useful to work out the colour scheme of yoursignature. Displays the RGB code for picked colour, and also allows forHEX to RGB conversion.

Popular modifications:


If you are upgrading please carry out steps two to four of the instructions.

Show Your Support

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

Comments
  #182  
Old 07-02-2004, 12:22 PM
NyCwill NyCwill is offline
 
Join Date: Feb 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do I use the standard text option.
Reply With Quote
  #183  
Old 07-02-2004, 12:32 PM
NyCwill NyCwill is offline
 
Join Date: Feb 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nvm I got it hehe
Reply With Quote
  #184  
Old 07-03-2004, 05:28 AM
cLord cLord is offline
 
Join Date: Feb 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

About Cron...
Can someone please explain what this means:
Code:
>/dev/null 2>&1
Thanks in advance,
cLord
Reply With Quote
  #185  
Old 07-04-2004, 03:11 PM
DWard's Avatar
DWard DWard is offline
 
Join Date: Mar 2004
Location: Peterborough, UK
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dont quite know what it actually means, but I use it to turn off the email notification I used to get after each cron was carried out.
Reply With Quote
  #186  
Old 07-04-2004, 03:13 PM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the first part causes the text output - aka errors and so on - to be redirected to /dev/null - a blackhole where data goes to die ...
Reply With Quote
  #187  
Old 07-15-2004, 11:22 PM
Jack28 Jack28 is offline
 
Join Date: Jan 2002
Location: The Netherlands
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, i got it working!
Reply With Quote
  #188  
Old 07-15-2004, 11:30 PM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a place for testing - a Testing forum ?
Reply With Quote
  #189  
Old 07-22-2004, 12:53 AM
royals's Avatar
royals royals is offline
 
Join Date: Jul 2004
Location: kansas city
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yikes!

This is what I have in my signature.php
PHP Code:
//full path to empty signature image (input image)
$vorlagedatei "root/httpdocs/forums/images/sig.jpg";

//full path to signare image with forum data (output image)
$ausgabedatei "root/httpdocs/forums/images/signature.jpg"

The error I'm getting:
PHP Code:
Warningimagecreatefromjpeg(root/httpdocs/forums/images/sig.jpg): failed to open streamNo such file or directory in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 208

Warning
imagecopy(): supplied argument is not a valid Image resource in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 225

Warning
Wrong parameter count for imagettftext() in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 238

Warning
Cannot modify header information headers already sent by (output started at /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php:208in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 242
?PNG IHDR?CN`?oPLTE???$????tRNS@??fIDATx?c`?`??Q0 F?(@?g??IEND?B`?
Warningimagejpeg(): Unable to open 'root/httpdocs/forums/images/signature.jpg' for writing in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 244 
Reply With Quote
  #190  
Old 07-22-2004, 01:30 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
root/httpdocs/forums/
Should be
Code:
/home/httpd/vhosts/therabblerousers.com/httpdocs/forums/
in all places in that file
Reply With Quote
  #191  
Old 07-22-2004, 01:47 AM
royals's Avatar
royals royals is offline
 
Join Date: Jul 2004
Location: kansas city
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks! That got rid of the first error... I'm still getting this:

PHP Code:
WarningWrong parameter count for imagettftext() in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 238

Warning
Cannot modify header information headers already sent by (output started at /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php:238in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 242
?PNG IHDR?C ??? PLTE??????$??L?0tRNS@??f/IDATx??˱ 0??#?J????voܖ???,?{r?ɲ,˲,˲<5??Cm>YT?BIEND?B`?
Warningimagejpeg(): Unable to open '/home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.jpg' for writing in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 244 
sorry to be a pain
Reply With Quote
  #192  
Old 07-22-2004, 02:24 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you paste out line 230-260 of your signature.php?
Reply With Quote
  #193  
Old 07-22-2004, 02:26 AM
royals's Avatar
royals royals is offline
 
Join Date: Jul 2004
Location: kansas city
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is 223-245. I think I know what it is (line1&2) just not sure what I need to change. but I'm probably wrong!

PHP Code:
// ######################### DO NOT EDIT BELOW ############################

imagecopy ($img$vorlage0000$width$height); // copy empty banner

imagecolortransparent($img$bg_color);  // set dummybg transparent

// the distance is in pixels and the font # is 1 through 5
$i 0;
while(
$i count($output)){

// ######################### CHANGE FONT BELOW ############################
// Uncomment LINE1+LINE12 and comment LINE2+LINE22 to use default font.
// Replace "verdana.ttf" with the URL to your .ttf font
//
//imagestring($img, $fontsize, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $output, $text_color);  // LINE1
imagettftext($img$fontsize,  $left, (($i $zeilenabstand) - $zeilenabstand $top), $text_color,  $output); // LINE2
$i++;
}

header("Content-Type: image/png");
imagepng($img);
imagejpeg($img"$ausgabedatei",$komprimierung); //Write jpg to folder and set compression
imagedestroy($img); // get the image out of memory 
Reply With Quote
  #194  
Old 07-22-2004, 02:35 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
imagettftext($img, $fontsize,  $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color,  $output); // LINE2
This line here is missing the vital bit of code ...
Code:
imagettftext($img, $fontsize,  $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color, "verdana.ttf", $output); // LINE2
You need to pick a TTF font file, upload it to the same folder as your signature.php file and specify the filename of that font here ... see?
Reply With Quote
  #195  
Old 07-22-2004, 02:48 AM
royals's Avatar
royals royals is offline
 
Join Date: Jul 2004
Location: kansas city
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok.... I've uploaded verdana.ttf and the changes to php.

PHP Code:
WarningWrong parameter count for imagettftext() in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 238

Warning
Cannot modify header information headers already sent by (output started at /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php:238in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 242
?PNG IHDR?C ??? PLTE??????$??L?0tRNS@??f/IDATx??˱ 0??#?J????voܖ???,?{r?ɲ,˲,˲<5??Cm>YT?BIEND?B`?
Warningimagejpeg(): Unable to open '/home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.jpg' for writing in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 244 
Reply With Quote
  #196  
Old 07-22-2004, 02:54 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your file has gotten quite screwed, but that line should read
Code:
imagettftext($img, $fontsize, 0, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color, "verdana.ttf", $output[$i]); // LINE2
- you were also missing the parameter 0 between fontsize and left...

The last error is due to you having not yet CHMOD'ed your output directory to where you will save the image...
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:17 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.06730 seconds
  • Memory Usage 2,411KB
  • Queries Executed 30 (?)
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
  • (6)bbcode_code
  • (5)bbcode_php
  • (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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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