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

Reply
 
Thread Tools
Forum stats on signature image Details »»
Forum stats on signature image
Version: 1.00, by tkeil69575 tkeil69575 is offline
Developer Last Online: Sep 2007 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-25-2003 Last Update: Never Installs: 64
 
No support by the author.

[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

Show Your Support

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

Comments
  #222  
Old 04-08-2004, 06:38 AM
DannyBoy8406's Avatar
DannyBoy8406 DannyBoy8406 is offline
 
Join Date: Apr 2003
Location: VA
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone know an update for this for VB3?
Reply With Quote
  #223  
Old 04-10-2004, 08:33 PM
StepFenz StepFenz is offline
 
Join Date: Mar 2003
Location: Amsterdam, NL
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hope not everybody is sick and tired of answering the question. But I've thoroughly searched the thread and I couldn't find the answer.

Q: I have GD2 installed (i.e. phpinfo says: GD Version bundled (2.0 compatible)) and I've chmodded my targetdir to 777. But the picture file doesn't show up. I can run the signature.php file and then I see what I would like to see. But I want the image-file.

Can anybody help me? I know there were people in this thread with similar problems and I can see by their signature they've solved that :laugh:

Tnx in advance

Idea: You can easiliy put the picture file on your Windows desktop and have it refreshed as much as you like.
Reply With Quote
  #224  
Old 04-11-2004, 01:50 PM
StepFenz StepFenz is offline
 
Join Date: Mar 2003
Location: Amsterdam, NL
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok,

I've commented all kinds of lines out to try to focus on the wrong line. I cannot find it.
Problem: I can't generate a picturefile, not a jpg not a png.

But: I can run de php.file, and I can see the png-file, exactly the way I like it. There are no error messages.

System: I have GD2 and php 4.3.0 installed. And chmodded the picturedir to 777. I have Photopost working with GD as well.

These are my last 4 lines:
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

Firstly: I want to know how to fix this, but secondly: why is the png file swapped into a jpeg? Can I skip that?)
Reply With Quote
  #225  
Old 04-13-2004, 04:50 PM
StepFenz StepFenz is offline
 
Join Date: Mar 2003
Location: Amsterdam, NL
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Solved it! Don't ask me how, but it works. In order to improve the interaction on this thread ;-) : I also added the total number of pictures of my photopost-section. Here it is (note that my photopost prefix is pp, if yours is different change that in the query below, eg. you have xx as photopost prefix, change ppphotos into xxphotos):

find:
mysql_free_result($threada);

after that add:

//get total photos
$queryd="SELECT COUNT(*) AS ppphotos FROM ppphotos";
$ppphotosa = mysql_query_eval($queryd,$link);
$ppphotosb = mysql_fetch_array($ppphotosa);
$totalphotos=number_format($ppphotosb['ppphotos']);
mysql_free_result($ppphotosa);

And replace:
$text = "Members: $numbermembers\nThreads: $totalthreads\nPosts: $totalposts\n";

Into:
$text = "Members: $numbermembers\nThreads: $totalthreads\nPosts: $totalposts\nPhoto's: $totalphotos\n";

I like this, because I now have immediately information on my frontpage about the status of all content, including photos.
Reply With Quote
  #226  
Old 04-26-2004, 12:51 PM
PranK PranK is offline
 
Join Date: Apr 2003
Location: Sydney, Aus
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this works without any dramas for VB3.

Christian
Reply With Quote
  #227  
Old 04-29-2004, 02:32 PM
dstruct2k's Avatar
dstruct2k dstruct2k is offline
 
Join Date: Dec 2002
Location: Winnipeg
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PranK
this works without any dramas for VB3.

Christian
Mine had to be altered, although it might be because my new host only has GD 1.

Meh, whatever, it works.
Reply With Quote
  #228  
Old 05-01-2004, 10:59 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I quite liked this hack over on Invision boards, and was all excited to see it here...unfortunately, when I call signature.php, all I get are lots of

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in

errors.

Any ideas?
Reply With Quote
  #229  
Old 05-02-2004, 04:43 AM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working for v3 for me...

can ne1 help me with it...
Reply With Quote
  #230  
Old 05-04-2004, 03:49 PM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ne1 got this working on vb3??????
Reply With Quote
  #231  
Old 05-24-2004, 12:48 PM
DWard's Avatar
DWard DWard is offline
 
Join Date: Mar 2004
Location: Peterborough, UK
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yer I developed the script for vb3, search for Signature Stats and you should find it
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 01:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04742 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_quote
  • (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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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