vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Forum stats on signature image (https://vborg.vbsupport.ru/showthread.php?t=50848)

tkeil69575 03-25-2003 10:00 PM

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

corsacrazy 03-26-2003 06:43 PM

im not too sure how to create this cron job mate?

tkeil69575 03-26-2003 06:46 PM

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

Fi_InCogNiTo 03-26-2003 06:47 PM

Sorry, I'm still a little new, but what is a cron job?

tkeil69575 03-26-2003 06:49 PM

Quote:

Today at 09:47 PM Fi_InCogNiTo said this in Post #4
Sorry, I'm still a little new, but what is a cron job?
A cron job is a script that runs at periodic intervals. In this case you would set it up to call up signature.php every 15 Minutes for example.

corsacrazy 03-26-2003 07:00 PM

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

tkeil69575 03-26-2003 07:05 PM

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

filburt1 03-26-2003 07:05 PM

Just for the record, I started the trend :p

tkeil69575 03-26-2003 07:08 PM

Quote:

Today at 10:05 PM filburt1 said this in Post #8
Just for the record, I started the trend :p
hihi filburt,
would you like credits? ;)
I'd be glad to give them to you.

tina

corsacrazy 03-26-2003 07:12 PM

($img, 255, 255, 255);//RGB values - Backgroundcolor of stats

how wood i make that #fffffff (white ) ?


All times are GMT. The time now is 10: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
  • Page Generation 0.01286 seconds
  • Memory Usage 1,732KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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