vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Forum+ecDownloads Stats on Signature Image (https://vborg.vbsupport.ru/showthread.php?t=136449)

Mr Chad 01-13-2007 10:00 PM

Forum+ecDownloads Stats on Signature Image
 


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:
https://vborg.vbsupport.ru/external/2007/05/14.jpg

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/external/2007/05/14.jpg
FAQ: N/A

If you like it click
https://vborg.vbsupport.ru/external/2007/04/4.gif


This hack was based on tkeil69575's hack.

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

Mr Chad 01-14-2007 04:24 AM

reserved

tekram 01-14-2007 06:53 AM

Warnung: main(/www/htdocs/xxxxxx/./signature.php) [function.main]: failed to open stream: No such file or directory in /admincp/cronadmin.php (Zeile 108)

Warnung: main() [function.include]: Failed opening '/www/htdocs/xxxxxx/./signature.php' for inclusion (include_path='.:/usr/share/php:..') in /admincp/cronadmin.php (Zeile 108)

hmmmmm

Mr Chad 01-14-2007 07:00 AM

Quote:

Originally Posted by tekram (Post 1158654)
Warnung: main(/www/htdocs/xxxxxx/./signature.php) [function.main]: failed to open stream: No such file or directory in /admincp/cronadmin.php (Zeile 108)

Warnung: main() [function.include]: Failed opening '/www/htdocs/xxxxxx/./signature.php' for inclusion (include_path='.:/usr/share/php:..') in /admincp/cronadmin.php (Zeile 108)

hmmmmm

uninstall the product and download the new one and install that one... sorry I fixed this issue before but forgot to update the xml in the zip.

give me an update on your status.

tekram 01-14-2007 07:03 AM

Warnung: main(/www/htdocs/xxxxxx/./signature.php) [function.main]: failed to open stream: No such file or directory in /admincp/cronadmin.php (Zeile 108)

Warnung: main() [function.include]: Failed opening '/www/htdocs/xxxxxx/./signature.php' for inclusion (include_path='.:/usr/share/php:..') in /admincp/cronadmin.php (Zeile 108)

Same one

Mr Chad 01-14-2007 07:04 AM

make sure you UNINSTALL the product... then install with the new one.

asj 01-14-2007 07:04 AM

Fatal error: Call to a member function on a non-object in c:\appserv\www\forum\signature.php on line 15 ? :(

Mr Chad 01-14-2007 07:08 AM

Quote:

Originally Posted by asj (Post 1158666)
Fatal error: Call to a member function on a non-object in c:\appserv\www\forum\signature.php on line 15 ? :(

you cant run the signature.php directly you need to run it through the schuduled tasks...

and also you are not supposed to place it in the forum dir... it needs to be forum\includes\cron\signature.php

tekram 01-14-2007 07:23 AM

Ok it works. Have a big thx for helping Hand. Include the Live Online User please. Thats what the user want

Mr Chad 01-14-2007 07:26 AM

Quote:

Originally Posted by tekram (Post 1158673)
Ok it works. Have a big thx for helping Hand

:D thanks for being one of the first to install it. And I apologize for the issue.

tekram 01-14-2007 07:37 AM

read my post befor yours please :-)

Mr Chad 01-14-2007 07:39 AM

Quote:

Originally Posted by tekram (Post 1158679)
read my post befor yours please :-)

I'm not sure where in the database that count is stored.

asj 01-14-2007 07:52 AM

thank you
very good
;)

Mr Chad 01-14-2007 07:59 AM

updated the signature.php file it now contains the ability to display the current amount of users online. (thanks to tekram)

tekram 01-14-2007 08:11 AM

No Problem my frend :-)

Rich 01-14-2007 10:21 AM

Why does the title of this say "Forum + ecDowloads stats". Does it also display how many available downloads you have using another mod as well? (I am listed as not installed because I don't have this installed. I was checking it out and saw no mention anywhere of the ecDowloads part.)

TTG 01-14-2007 10:44 AM

Can we change the font color or make it bold .. works well.

Clicked install

Distance 01-14-2007 10:58 AM

Yeah i was wandering that.. i can hardly see it

Thx

*clicks installed*

Mr Chad 01-14-2007 05:03 PM

Quote:

Originally Posted by Rich (Post 1158761)
Why does the title of this say "Forum + ecDowloads stats". Does it also display how many available downloads you have using another mod as well? (I am listed as not installed because I don't have this installed. I was checking it out and saw no mention anywhere of the ecDowloads part.)

you dont need ecdownloads but in the signature.php you can uncomment a few php lines to display your ecdownloads stats.

Distance 01-14-2007 05:46 PM

Hey you never mentioned how to change text size/colour/boldness/font

:)

beduino 01-15-2007 01:19 PM

tks a lot
Quote:

you dont need ecdownloads but in the signature.php you can uncomment a few php lines to display your ecdownloads stats.
i will make it :)
all the best
beduino

RetroDreams 01-17-2007 02:07 AM

I want to use 4 variables but want to break them into two columns. If I do that as-is, the spacing is off. Is there any way to change it to do two columns?

See example: http://www.bigtentalk.com/forums/signature.jpg

Mr Chad 01-18-2007 02:12 AM

to change the font find:
PHP Code:

imagestring($im2$left, (($i $linespacing) - $linespacing $top), $output[$i], $text_color); 

also find the .GDF font you want and place in your cron directory then replace that line with:
PHP Code:

$font imageloadfont(DIR "/includes/cron/proggysquare.gdf");
imagestring($im$font$left, (($i $linespacing) - $linespacing $top), $output[$i], $text_color); 

also remember that proggysquare.gdf is the GDF font i tested it with you need to rename that text to what ever your font is named.

to change the text color you just change this:

PHP Code:

$text_color imagecolorallocate ($im696969); //black text 


Mr Chad 01-18-2007 02:13 AM

Quote:

Originally Posted by RetroDreams (Post 1161096)
I want to use 4 variables but want to break them into two columns. If I do that as-is, the spacing is off. Is there any way to change it to do two columns?

See example: http://www.bigtentalk.com/forums/signature.jpg

I am not sure, sorry i couldn't help you with that.

Mr Chad 01-23-2007 01:09 AM

anyone wana show off their sig stats images?

zompus 01-23-2007 09:54 PM

Looks pretty hard to do, i'll give it a whirl now though.

Mr Chad 01-23-2007 11:37 PM

Quote:

Originally Posted by zompus (Post 1166021)
Looks pretty hard to do, i'll give it a whirl now though.

it shouldn't be that hard... i made a product for you lol... and theres only like 5 steps.

RetroDreams 01-26-2007 12:44 AM

Quote:

Originally Posted by Mr Chad (Post 1161873)
I am not sure, sorry i couldn't help you with that.

I ended up figuring it out.

See you posted up my sig... Thanks for the great hack!

Mr Chad 01-26-2007 01:35 AM

thanks.

im planning on making my own but i have had no time.

Mr Chad 01-29-2007 05:05 AM

well lol i made mine:
https://vborg.vbsupport.ru/

zompus 02-02-2007 02:59 PM

Update Sig Stats

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/username/public_html/includes/cron/signature.php on line 49

Mr Chad 02-02-2007 03:18 PM

Quote:

Originally Posted by zompus (Post 1172988)
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 ?

Tom_S 02-12-2007 06:10 PM

I can't get it to display anything but Members, Threads, & Posts even though I uncommented the online user(s) out.

Tom_S 02-12-2007 07:14 PM

Quote:

Originally Posted by RetroDreams (Post 1167401)
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? ;)

Mr Chad 02-12-2007 08:36 PM

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.

Tom_S 02-12-2007 08:56 PM

Got it..thanks :)

Termi 02-16-2007 02:51 PM

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

Mr Chad 02-17-2007 05:17 AM

Quote:

Originally Posted by Termi (Post 1183946)
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

Termi 02-17-2007 05:51 AM

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

Mr Chad 02-17-2007 03:58 PM

are you running it through the cron? or trying to directly run it?


All times are GMT. The time now is 05:49 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.01906 seconds
  • Memory Usage 1,838KB
  • 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
  • (4)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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