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)

DannyBoy8406 04-08-2004 06:38 AM

anyone know an update for this for VB3?

StepFenz 04-10-2004 08:33 PM

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.

StepFenz 04-11-2004 01:50 PM

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

StepFenz 04-13-2004 04:50 PM

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.

PranK 04-26-2004 12:51 PM

this works without any dramas for VB3.

Christian

dstruct2k 04-29-2004 02:32 PM

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. :)

kall 05-01-2004 10:59 AM

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?

GoTTi 05-02-2004 04:43 AM

not working for v3 for me...

can ne1 help me with it...

GoTTi 05-04-2004 03:49 PM

ne1 got this working on vb3??????

DWard 05-24-2004 12:48 PM

Yer I developed the script for vb3, search for Signature Stats and you should find it :)


All times are GMT. The time now is 02:17 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.01360 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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