![]() |
Forum stats on signature image
[high]Remember the forum rules here at vB.org and don't exceed the signature dimensions: https://vborg.vbsupport.ru/showthrea...threadid=50062 . Signatures in violation of the rules will be suspended. --filburt1[/high]
Hi all, What this hack does: Calls up your Forum statistics (like No. of Members, Threads and Posts) and creates a new image on your server using GD which you can use as a signature image, where ever you like - have a look at my signature and you'll see what I mean. This is only my 2nd hack - so be kind to me ;) In order to have the image created, say every 15 minutes you will need to set up a cronjob. Infos are provided in the instructions.txt, and alternatives for those who do not have access to crontab on their server. Support: Because I'm pretty busy, I will provide only limited support. Will look in here once a week or so. Credits: to kars10 for kicking me in the ass ;) and getting me to code this - thanks karsten greets tina Update 23.06.2003 - global.php no longer required, thus when signature image is being created it no longer shows up in "who is onlne" - quality of image output improved - debug modus with email notification integrated - tested with gd2 |
im not too sure how to create this cron job mate?
|
hi corsacrazy,
you will only need to set up a cronjob if you want the image created automatically every 15 minutes. Its not a must. Read the instructions corsacrazy. It does not tell how to do it exactly, because that goes beyond the scope I can offer, but it tells you alternatives if you do not have access to telnet or webmin or ssh to create you own cronjob. greets tina |
Sorry, I'm still a little new, but what is a cron job?
|
Quote:
|
cheers :D
works great i realied u can query n e thing u wont in there ! i put members online and newest member ! also for the total registered this doesnt count the mods or admins or n e other usergoup ONLY people in registered group "2" to fix that just copy the get total members query from your index.php |
Hi corsacrazy,
yes thanks for the info about the usergroup. I forgot to remove that. I've updated the hack just now, and yes your right of course, theoretically you can query anything you want :) tina |
Just for the record, I started the trend :p
|
Quote:
would you like credits? ;) I'd be glad to give them to you. tina |
($img, 255, 255, 255);//RGB values - Backgroundcolor of stats
how wood i make that #fffffff (white ) ? |
The white Backgroundcolor is set transparent on line 53
try replacing: PHP Code:
PHP Code:
|
just a note do not directly link you image to http://www.youdomain.com/signature.php but preferably to the image created by signature.php which is located at http://www.yourdomain.com/images/signatur/signatur.jpg otherwhise the load on your server might get a bit high if you have you signature image placed in many threads in some forum.
greets tina |
I just noticed something on my board. When I use this as my sig, it shows this on who's online 4 times right now(prolly refreshes)
See attached |
I see lots of cool signatures here!! :)
Great work Tina... ;) Regards Kars [high]* Kars10 kicks install![/high] |
Maybe linking it to the jpg the php makes will solve this? I think the 14 guests viewing the php is from here ;)
|
@ Fi_InCogNiTo, you must run the signature.php, otherwise your stats would not update... ;)
Kars |
No, it's updated. I mean if you link to the php file instead of your jpg file, everyone who views the sig(even outside the forum) will show on Who's Online at your own forum. Look at my site and check whos online ;)
Oh boy, if this falls into the wrong hands, someone could gather a lotta IPs with this lol |
well I am totally lost!!! THnx anyway
|
Yes this is extremely dangerous.
From just viewing this thread, Fi_InCogNiTo can now see my IP in his admin log, or online.php. This hack *might* not be such a good idea..... Dave. |
Quote:
|
Quote:
That was when I was linking to the php. I am now linking to the jpg and found a better use for it ;) Thanks for the idea. I can now use this for advertising =D Good hack. |
You must link to the JPG, not to the signature.php. ;)
Kars |
Great work. I may use this...
|
I may use it if I can set up cronjobs over at phpwebhosting.....
/me clicks the install button for future references |
Excellent hack. Clicked Install.
|
GRRRRRRRRRRRR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Btw, it's not smart to call global.php. You're going to have all kinds of illegitimate guests. And filburt1, I'm sorry. It appears I caused a domino effect, and now everyone will have one of these things. I didn't share though (except for with Overgrow, which I don't regret). I promise. |
Mine is in my sig. Before I cron it, I need to get this to work correctly.
See how my image is? I need to make it actually look right... http://www.vggmn.com/forums/signature/sig.jpeg Any ideas? |
try replacing this
PHP Code:
PHP Code:
|
Doesn't seem to work... :(
|
you need to replace this:
PHP Code:
PHP Code:
|
supar *installs*
|
Thanks, djr! I found that at the PHP Online manual, put it in, saw that it worked, and then saw your post. Damn, I should've waited, would've saved me some time. :)
Thanks. [high]* Link14716 clicks install.[/high] |
got a error when i run signature.php:
Warning: imagecreatefromjpeg: Unable to open './images/signatur/sig.jpg' for reading in /home/SITE/public_html/forums/signature.php on line 44 Warning: imagecopy(): supplied argument is not a valid Image resource in /home/SITE/public_html/forums/signature.php on line 51 on line 44 it is: $vorlage = imagecreatefromjpeg("./$vorlagedatei"); Is this calling for some GD use? |
Neat-o, the trendy dynamic signature hack is about to get a whole lot trendier. ;)
I like the concept of updating a signature with dynamic stats, though I'll probably modify it to go further such as iRC stuff, etc. [high]* Velocd clicks install[/high] |
@Da_Gotti: Didn't you recieve a similar problem with my vB Photo, then I had told you that it required the use of GD 2.0?
Yeah, this hack absolutely has to have GD2.0 installed, or else you're just gonna keep getting those errors. |
just update php to 4.3.0, that comes with gd 2.0
|
such a dope concept
much respect on conceiving and coding this -Stamina |
Great hack! I intend to implement tons of features alongside this hack. Thanks for sharing!
|
I really like this hack. Thanks very much!
Ricoche :bunny: |
Quote:
Whats the Problem with that?? This hack here is orginal coding by Tina and not by Filburt1. Filburts is other code. So cool down. Kars ;) |
All times are GMT. The time now is 04:52 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|