PDA

View Full Version : Miscellaneous Hacks - Forum+ecDownloads Stats on Signature Image


Mr Chad
01-13-2007, 10:00 PM
If you like it click
https://vborg.vbsupport.ru/external/2007/04/4.gif (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=136449)


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:

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)
Upload signature.php to your /includes/cron/ dir
Open sig.jpg in your favourite Graphics Programm and make a real cool Signature image
Save it with the same name and upload it and a blank one named signature.jpg to your forum directory (CHMOD 777 on both)
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=136449)


This hack was based on tkeil69575's hack (https://vborg.vbsupport.ru/showthread.php?t=50848&highlight=signature.php).

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
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
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
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
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
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

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:
imagestring($im, 2, $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:
$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:

$text_color = imagecolorallocate ($im, 69, 69, 69); //black text

Mr Chad
01-18-2007, 02:13 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
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
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
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
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
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:

$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
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?

Termi
02-17-2007, 04:01 PM
hi

i trying a directliy run klicking in admincp cron on start :)

mharmon
02-17-2007, 06:46 PM
I'm having a problem with the mod. Seems to run -- but the stats don't get written to the image. I have changed the permissions to 777 -- and it says it runs -- but the new signature.jpg image doesn't update.

Any suggestions?

Termi
02-22-2007, 04:43 PM
hi,

anybody can help me ??

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

Thanks greets Termi

winduff
03-03-2007, 01:26 PM
as little presentation what this looks like:

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

Maksa
04-05-2007, 04:49 PM
will it work with 3.6.5 ????

Mr Chad
04-05-2007, 09:33 PM
will it work with 3.6.5 ????
yes

Maksa
04-06-2007, 01:34 AM
k i'll try out then :) hope it will work

Maksa
04-06-2007, 01:54 AM
wow great plugin... i loved it :)

thanks for sharing

pspcrazy
04-06-2007, 05:34 AM
Thanks for the awesome mod :) I made a couple of awesome ones, but to avoid being copied, here is one of my least complex ones :)

https://vborg.vbsupport.ru/

(I ended up using this because its the least complex lol)

Maksa
04-06-2007, 01:56 PM
https://vborg.vbsupport.ru/external/2007/05/14.jpg

i wanted to use .gif is it possible??? how can i do that?

Maksa
04-06-2007, 01:57 PM
and how to show online users????

Mr Chad
04-06-2007, 09:11 PM
https://vborg.vbsupport.ru/external/2007/05/14.jpg

i wanted to use .gif is it possible??? how can i do that?
im not sure i have not idea :(

Mr Chad
04-06-2007, 09:12 PM
and how to show online users????
its in the php file. uncomment the correct code and add the online var to the text.