![]() |
anyone know an update for this for VB3?
|
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. |
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?) |
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. |
this works without any dramas for VB3.
Christian |
Quote:
Meh, whatever, it works. :) |
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? |
not working for v3 for me...
can ne1 help me with it... |
ne1 got this working on vb3??????
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|