vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Signature Stats v3.04 (https://vborg.vbsupport.ru/showthread.php?t=65361)

alfata 05-24-2004 08:07 PM

same prob here, if i use Line1 the picture apper without forum info, and if i use Line2 picture not apper....

any clue?!

ranger2kxlt 05-24-2004 08:07 PM

I cant tell if imagestring is allowed.

DWard 05-24-2004 08:10 PM

OK, because that is required if you cant use imagettftext. I will be back here 2moro. If you urgently need help, e-mail me (dan@collegepranks.co.uk).

alfata 05-24-2004 08:10 PM

about line1 it apper when i changed //text-margin from top &&& $top = from 70 to 10 it apper :D

but i want to use line2 for the truetype font!!

thanks

DWard 05-24-2004 08:14 PM

Yer sorry, the margins are set up as they are on my signature!!

You need to be able to use imagettftext function, which has the ability to use a font on your server, however I havnt heard of it too muc, saw it on php.net.

Try uploading the verdana font I attached on the last page in the same dir as the signature.php file and see if it works, if not you will need to consult your host.

ranger2kxlt 05-24-2004 08:14 PM

I will check here again tommorow as well...its not a big deal, nothing to really worry about, just looked like a kewl thing to have :-D Good work :-D

DWard 05-24-2004 08:15 PM

OK, well keep looking and try out the new versions to see how it goes, cheers for your custom tho!

alfata 05-24-2004 08:19 PM

DWard,

i have the same here PHP Version 4.3.4 but nothing apper if i use line2 ??!

alfata 05-25-2004 12:33 AM

yep thats it folks, everyone had the same prob he must check on his site if GD loaded or not by this code:
PHP Code:

<?php 
$loaded 
= ( bool ) false;
$lib 'GD';
$data get_loaded_extensions();
foreach ( 
$data as $val )
{
if ( 
stristr$val$lib ) ) {
$loaded true;
}
echo 
$val '<br /><br />';
}
if ( 
$loaded ) {
echo 
'<strong>' $lib ' is loaded';
} else {
echo 
'<strong>' $lib ' is not loaded loaded';
}
?>

other ways if GD loaded so the imagettftext is not allowed at your webhost, so talk to him :devious:


l8er :ninja:

DWard 05-25-2004 04:48 AM

I could understand that web hosts may disallow the imagettftext function as it may take up quite a bit of server resources if used alot.

I will look a bit later into what could be done. I'm sure there's a way round it.

Odoin 05-25-2004 09:59 PM

This might have been posted before but i did not look through all the posts....

If you do not care about the extra load on your server you can make a .htaccess file with this code:

IndexIgnore *

<Limit GET POST >
order allow,deny
allow from all
</Limit>

RewriteEngine on
RewriteRule signature.jpg /forum/signature.php [T=application/x-httpd-cgi]

Then you would link to signature.jpg from your root folder of your domain ane apache would run the PHP file to get the updated signature.

Cheers :)

DWard 05-26-2004 06:59 AM

Thats quite cool actually.

DWard 05-26-2004 04:01 PM

New version out (fixed online users code [was resetting 'most users ever online'])

blakkboy 05-26-2004 10:11 PM

Warning: imagecreatefromjpeg(/public_html/images/sig.jpg): failed to open stream: No such file or directory in /home/rkqxhnvj/public_html/forums/signature.php on line 208

Warning: imagecopy(): supplied argument is not a valid Image resource in /home/rkqxhnvj/public_html/forums/signature.php on line 225

Warning: imagettftext(): Could not find/open font in /home/rkqxhnvj/public_html/forums/signature.php on line 238

Warning: Cannot modify header information - headers already sent by (output started at /home/rkqxhnvj/public_html/forums/signature.php:208) in /home/rkqxhnvj/public_html/forums/signature.php on line 242
‰PNG IHDRÔw€#ÛPLTEÿÿÿ$¡›¼tRNS@æØfIDATxœí Á  ÷Om7 €'äSP£QIEND®B`‚
Warning: imagejpeg(): Unable to open '/public_html/images/signature.jpg' for writing in /home/rkqxhnvj/public_html/forums/signature.php on line 244

I get those errors....Can someone help????

DWard 05-27-2004 05:15 AM

Quote:

Originally Posted by blakkboy
Warning: imagecreatefromjpeg(/public_html/images/sig.jpg): failed to open stream: No such file or directory in /home/rkqxhnvj/public_html/forums/signature.php on line 208

Warning: imagecopy(): supplied argument is not a valid Image resource in /home/rkqxhnvj/public_html/forums/signature.php on line 225

Warning: imagettftext(): Could not find/open font in /home/rkqxhnvj/public_html/forums/signature.php on line 238

Warning: Cannot modify header information - headers already sent by (output started at /home/rkqxhnvj/public_html/forums/signature.php:208) in /home/rkqxhnvj/public_html/forums/signature.php on line 242
?PNG IHDR?w?#?PLTE???$????tRNS@??fIDATx??? ? ?Om7 ?'?SP?QIEND?B`?
Warning: imagejpeg(): Unable to open '/public_html/images/signature.jpg' for writing in /home/rkqxhnvj/public_html/forums/signature.php on line 244


I get those errors....Can someone help????

Have you uploaded both pictures and entered the server path correctly? And are both images CHMOD to 777?

Also, do you have GD installed? I think you may need GD2.

Natch 05-27-2004 02:10 PM

Just FYI :) You can solve your vertical issues by investigating the following code, then looking @ this sig :)

PHP Code:

$output[] = "Threads: $totalthreads";
$output[] = "  Posts: $totalposts"

and
PHP Code:

imagettftext($img$fontsize0$left, (($i $zeilenabstand) - $zeilenabstand $top), $text_color"verdana.ttf"$output[$i]); // LINE2 

https://vborg.vbsupport.ru/external/2004/05/1.jpg

aka: put your $output in an array - then each line by default is placed on the next line down (the second edit just causes the current line to be output, rather than the whole array) ... then just fiddle with your images size and alignment values ($left and $top) to get it how you want it!

:D great work again on the TTF font integrating!

DWard 05-27-2004 07:41 PM

Quote:

Originally Posted by Natch
Just FYI :) You can solve your vertical issues by investigating the following code, then looking @ this sig :)

PHP Code:

$output[] = "Threads: $totalthreads";
$output[] = "  Posts: $totalposts"

and
PHP Code:

imagettftext($img$fontsize0$left, (($i $zeilenabstand) - $zeilenabstand $top), $text_color"verdana.ttf"$output[$i]); // LINE2 

http://www.mobileforces.org/sig.jpg

aka: put your $output in an array - then each line by default is placed on the next line down (the second edit just causes the current line to be output, rather than the whole array) ... then just fiddle with your images size and alignment values ($left and $top) to get it how you want it!

:D great work again on the TTF font integrating!

Wicked, that will be in the next version, have you encountered any problems at all?

Just concerned about wether or not there had been a mistake in the code on my behalf or if it's just what people have installed on their server.

Natch 05-28-2004 11:33 AM

No mate - it's just that the code you have has a
PHP Code:

while($i<count($output)){ ... 

bit which indicated that it probably was originally coded to work with an array, where each array entry is one line in your multi-line output.

Anyd it should be relatively trivial to have a switch to go from left to right aligned - I did something similar for a automatic label-making website... {look at the
PHP Code:

(($i $zeilenabstand) - $zeilenabstand $top

bit (which calculates the top position of each line in the array for the text), and apply similar math to the $left value ...}

Acido 05-29-2004 03:05 AM

I dont understan why the quality of the image created in my server is so poor :(
Check the attachments please.

I use compress output with a value of 95, and i'm using GD 2+


Can you give some tip?

Natch 05-29-2004 03:41 AM

Yeah - there is a line that says imagecreate() - this should be imagecreatetruecolor() :)

Acido 05-29-2004 03:54 AM

Quote:

Originally Posted by Natch
Yeah - there is a line that says imagecreate() - this should be imagecreatetruecolor() :)

Fixed.

Thanx Natch :)

DWard 05-29-2004 06:05 AM

Quote:

Originally Posted by Acido
Fixed.

Thanx Natch :)

Yer that funcion was changed because of a few problems earlier. I will make it optional in the next version.

Intex 05-29-2004 07:18 AM

Works perfectly on 3.0.1.

[high]* Intex clicks INSTALL.[/high]

Aurous 05-30-2004 01:27 AM

When the hack is run by vB cron (scheduled tasks), Number of Threads and Number of Posts are always blank, but total members and total online users always show correctly. If I run the cron job manually in scheduled tasks, I get correct stats.

I am really confused! Is it something to do with the query that counts the number of threads/posts??

msimplay 05-30-2004 01:52 AM

use a regular cron job not vbcron

Aurous 05-30-2004 07:13 AM

Quote:

Originally Posted by msimplay
use a regular cron job not vbcron

I would like to keep all my vB related cron jobs at one place. There should be a way to fix this in vB.

Maybe the query needs to be changed a bit.

Any suggestion Dward?

DWard 05-30-2004 02:57 PM

No, I'm not sure how vB does crons, it never worked for me either. My host control panel is Plesk, which does a fine job with crontabs.

Natch 05-31-2004 07:35 AM

My host doesn't have GET or HTTPGET installed - is there any system in basic *nix that can allow this to run as CRON ?

msimplay 05-31-2004 08:08 AM

Quote:

Originally Posted by Natch
My host doesn't have GET or HTTPGET installed - is there any system in basic *nix that can allow this to run as CRON ?

nix systems usually have cron built in
might be able to be done if u have shh control of the machine
if not you could always get a third party cron system
remote hosted one i mean

Natch 05-31-2004 08:55 AM

What I'm saying is that I have cron (all nix have it) but the command GET nor HTTPGET are installed on this server ...

Oblivion Knight 05-31-2004 10:11 AM

This might be a little scrappy, and it outputs a load of crap - but it seems to work..

I set a vBCron to run ./signature.php every 25 minutes, and sure enough it works. I don't know if it would log it correctly, since I turned it off - and when you click "Run Now" it outputs a load of nonsense, but it does seem to update signature.jpg :)

msimplay 05-31-2004 10:30 AM

Quote:

Originally Posted by Natch
What I'm saying is that I have cron (all nix have it) but the command GET nor HTTPGET are installed on this server ...

i think you use the system path to the file

/home/username/public_html/forums/file.php

Oblivion Knight 05-31-2004 01:46 PM

Well I was wrong.. :(
My method doesn't work correctly - the Thread and Post numbers aren't displayed.

https://vborg.vbsupport.ru/

ernestdefoe 05-31-2004 09:08 PM

Okay I get this error. GD2+ installed, and have the 2 images CHMOD'ed to 777.

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/wmeadmin/public_html/vb/signature.php on line 208

Can someone please help me?

M.C. 05-31-2004 11:12 PM

probably it was somewhere around here in thread already, but... how make it work with ONLINE.PHP?! now i see only:

Guest Unknown Location /forum/signature.php xxx.xxx.xxx.155 lwp-request/2.06

ernestdefoe 06-01-2004 12:08 AM

I got it to work with some help from msimplay. Thanks for the help.

DWard 06-01-2004 05:56 AM

Quote:

Originally Posted by ernestdefoe
Okay I get this error. GD2+ installed, and have the 2 images CHMOD'ed to 777.

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/wmeadmin/public_html/vb/signature.php on line 208

Can someone please help me?

I think the imagecreatefromjpeg() function me either me not available or disallowed on your server.

DWard 06-01-2004 05:57 AM

Quote:

Originally Posted by M.C.
probably it was somewhere around here in thread already, but... how make it work with ONLINE.PHP?! now i see only:

Guest Unknown Location /forum/signature.php xxx.xxx.xxx.155 lwp-request/2.06

No worries, details for that will be posted in the next version, either this or next week :)

DWard 06-01-2004 06:00 AM

Not sure if it's the same on all servers, but this is how I do my cron:

Minute: 45,0,15,30
Hour: *
Day of the Month: *
Month: *
Day of the week: *
Command: GET http://www.collegepranks.co.uk/forums/signature.php >/dev/null 2>&1

Obviously the 'GET http://www.collegepranks.co.uk/forums/signature.php' part is to run it, but the '>/dev/null 2>&1' part stops me from getting a report every time the cron is executed.

DWard 06-01-2004 06:31 AM

Quote:

Originally Posted by Oblivion Knight
Well I was wrong.. :(
My method doesn't work correctly - the Thread and Post numbers aren't displayed.

http://www.gamerseuphoria.com/signature/signature.jpg

Your signature (http://www.gamerseuphoria.com/forum/signature.php) works fine for me.


All times are GMT. The time now is 02:29 AM.

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.01618 seconds
  • Memory Usage 1,847KB
  • 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
  • (7)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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