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)

Natch 06-27-2004 06:01 AM

Quote:

Originally Posted by DWard
Yes, to get accurate post data, I needed to add the vbulletin global.php file, which when run is detected in the online users bit.

I will be adding a small mod for my next version to say 'Signature Stats' in the online users bit.

I have done this - you just add "lwp-request" and "Signature Stats Updater" to the Spider List under "Who's Online" vBulletin Options in your AdminCP

DWard 06-27-2004 06:53 AM

Quote:

Originally Posted by RapCheck
Can someone explain the whole cron thing... I've searched through this thread, and can't really figure it out. I don't have cpanel or anything like that... Don't like all the 'fake' guests on the who's online.

I would say you can do it in vB, but I tried that and it doesnt seem to work. I think there are some cron scripts that you can use, you need to ask somebody who knows a tad more about crontabs.

Big Kahuna 06-27-2004 06:51 PM

Quote:

Originally Posted by Big Kahuna
OK what am I doing wrong?

I get :


http://www.moparstyle.com/forums/uglysignature.php

when the graphic looks like this:

http://www.moparstyle.com/forums/images/sig.jpg

I'd sure still like to find out how to resolve this problem!

Big Kahuna 06-27-2004 07:05 PM

The reason the bad graphic in the above post now looks good is that I found the answer on the F5hosting forum.

For those others of you who have been waiting days for the detailed answer on how to make the washed out graphics work -- the answe is (drum roll)

The image you are using has more than 256 colours so the method in the hack will never work. The function they should have used to create the initial image is imagecreatetruecolor and not imagecreate, so if you replace the line

Code:

$img = imagecreate($width,$height);
with

Code:

$img = imagecreatetruecolor($width,$height);
it should work.

Big Kahuna 06-28-2004 05:19 AM

https://vborg.vbsupport.ru/

make sure the signature.jpg is CMOD to read and write by all, and you can just run the signature.php in your board's CRON once an hour -- and then just use the jpg instead of the php inside ing code.

DWard 06-28-2004 06:49 AM

Quote:

Originally Posted by Big Kahuna
The reason the bad graphic in the above post now looks good is that I found the answer on the F5hosting forum.

For those others of you who have been waiting days for the detailed answer on how to make the washed out graphics work -- the answe is (drum roll)

The image you are using has more than 256 colours so the method in the hack will never work. The function they should have used to create the initial image is imagecreatetruecolor and not imagecreate, so if you replace the line

Code:

$img = imagecreate($width,$height);
with

Code:

$img = imagecreatetruecolor($width,$height);
it should work.

I will ake this optionalin te net version I am considering making a small admin control panel for signature stats, but I will think about it.

RapCheck 06-28-2004 07:51 PM

Quote:

Originally Posted by Big Kahuna
https://vborg.vbsupport.ru/

make sure the signature.jpg is CMOD to read and write by all, and you can just run the signature.php in your board's CRON once an hour -- and then just use the jpg instead of the php inside ing code.

aha, works for me

DWard 06-28-2004 08:36 PM

Yer for some it works fine first time, for others it doesn't. It's not as if the instructions are hard at the least.

It is definately related to the GD version users are working with.

RapCheck 06-28-2004 09:11 PM

I'm finding that using the vb cron, the post count stats dont update and go blank, but if I click on run manually, it updates fine

Big Kahuna 06-29-2004 12:40 AM

Quote:

Originally Posted by RapCheck
I'm finding that using the vb cron, the post count stats dont update and go blank, but if I click on run manually, it updates fine

I'm having the same problem. What's up with that.

On the GD version -- the first thing I looked into was the version of GD on my server. It was the most recent (as I posted many posts ignored ago). It took me almost five days of being ignored here before I posted the problem at another forum, and to have someone else look at it and give me the proper replacement code for it to work.

I like the hack and don't want to sound ungrateful -- but I made many posts in this thread giving the exact details of the problem and what I did, and they were all ignored. I make one post at F5Hosting -- baddabing-baddaboom, the answer.

I'm hoping we can get the answer to the missing thread and post counts when the signature.php is run as an automatic CRON -- but reappear when you manually run the CRON. However, I'll ask over there if no one here answers.

DWard 06-29-2004 03:40 PM

Quote:

Originally Posted by Big Kahuna
I'm having the same problem. What's up with that.

On the GD version -- the first thing I looked into was the version of GD on my server. It was the most recent (as I posted many posts ignored ago). It took me almost five days of being ignored here before I posted the problem at another forum, and to have someone else look at it and give me the proper replacement code for it to work.

I like the hack and don't want to sound ungrateful -- but I made many posts in this thread giving the exact details of the problem and what I did, and they were all ignored. I make one post at F5Hosting -- baddabing-baddaboom, the answer.

I'm hoping we can get the answer to the missing thread and post counts when the signature.php is run as an automatic CRON -- but reappear when you manually run the CRON. However, I'll ask over there if no one here answers.

I'm not sure to be honest why vB crons dont work. I have plesk control panel for my domain and its ace when running crons. Have no trouble what so ever.

Big Kahuna 06-29-2004 04:05 PM

Good idea -- I'll try to run the CRONs from my site's CP

kodeking 07-01-2004 03:30 AM

I got mine working after much tweaking!

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

EvilCrow 07-01-2004 03:11 PM

Quote:

Originally Posted by Big Kahuna
The reason the bad graphic in the above post now looks good is that I found the answer on the F5hosting forum.

For those others of you who have been waiting days for the detailed answer on how to make the washed out graphics work -- the answe is (drum roll)

The image you are using has more than 256 colours so the method in the hack will never work. The function they should have used to create the initial image is imagecreatetruecolor and not imagecreate, so if you replace the line

Code:

$img = imagecreate($width,$height);
with

Code:

$img = imagecreatetruecolor($width,$height);
it should work.


Thanks a million... That fixed it.. now on to the text placement...

marcel-ea 07-01-2004 03:50 PM

for me fix also my problem THX very much!
i think is a good idea to fix the download

DWard 07-01-2004 05:42 PM

Quote:

Originally Posted by marcel-ea
for me fix also my problem THX very much!
i think is a good idea to fix the download

I will be for version 3 dont wory :)

Big Kahuna 07-01-2004 09:58 PM

Update -- I run the below CRON in my Cpanel and it works flawlessly. Don't know why it won't with vbulletin's CRON

Code:

/usr/bin/php /home/moparsty/public_html/forums/signature.php >/dev/null 2>&1
https://vborg.vbsupport.ru/

NyCwill 07-02-2004 02:05 AM

im getting this error

Fatal error: Call to undefined function: imagettftext() in /home/a1forums/public_html/forums/signature.php on line 238

DWard 07-02-2004 09:20 AM

Quote:

Originally Posted by Big Kahuna
Update -- I run the below CRON in my Cpanel and it works flawlessly. Don't know why it won't with vbulletin's CRON

Code:

/usr/bin/php /home/moparsty/public_html/forums/signature.php >/dev/null 2>&1
http://www.moparstyle.net/forums/images/hrsignature.jpg

Not sure why vB doesnt work either, o wel, thank you cpanel, or plesk as i use!

DWard 07-02-2004 09:21 AM

Quote:

Originally Posted by NyCwill
im getting this error

Fatal error: Call to undefined function: imagettftext() in /home/a1forums/public_html/forums/signature.php on line 238

OK, that is because the imagettftext() function is either disabled or not supported on your server. You need to consult them about it, otherwise just use the standard text option.

NyCwill 07-02-2004 12:22 PM

how do I use the standard text option.

NyCwill 07-02-2004 12:32 PM

nvm I got it hehe :)

cLord 07-03-2004 05:28 AM

About Cron...
Can someone please explain what this means:
Code:

>/dev/null 2>&1
Thanks in advance,
cLord ;)

DWard 07-04-2004 03:11 PM

Dont quite know what it actually means, but I use it to turn off the email notification I used to get after each cron was carried out.

Natch 07-04-2004 03:13 PM

the first part causes the text output - aka errors and so on - to be redirected to /dev/null - a blackhole where data goes to die ...

Jack28 07-15-2004 11:22 PM

Ah, i got it working!
http://imgz.ath.cx/forum/signature.php

Natch 07-15-2004 11:30 PM

There's a place for testing - a Testing forum ?

royals 07-22-2004 12:53 AM

Yikes!

This is what I have in my signature.php
PHP Code:

//full path to empty signature image (input image)
$vorlagedatei "root/httpdocs/forums/images/sig.jpg";

//full path to signare image with forum data (output image)
$ausgabedatei "root/httpdocs/forums/images/signature.jpg"


The error I'm getting:
PHP Code:

Warningimagecreatefromjpeg(root/httpdocs/forums/images/sig.jpg): failed to open streamNo such file or directory in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 208

Warning
imagecopy(): supplied argument is not a valid Image resource in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 225

Warning
Wrong parameter count for imagettftext() in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 238

Warning
Cannot modify header information headers already sent by (output started at /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php:208in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 242
?PNG IHDR?CN`?oPLTE???$????tRNS@??fIDATx?c`?`??Q0 F?(@?g??IEND?B`?
Warningimagejpeg(): Unable to open 'root/httpdocs/forums/images/signature.jpg' for writing in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 244 


Natch 07-22-2004 01:30 AM

Code:

root/httpdocs/forums/
Should be
Code:

/home/httpd/vhosts/therabblerousers.com/httpdocs/forums/
in all places in that file :)

royals 07-22-2004 01:47 AM

thanks! That got rid of the first error... I'm still getting this:

PHP Code:

WarningWrong parameter count for imagettftext() in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 238

Warning
Cannot modify header information headers already sent by (output started at /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php:238in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 242
?PNG IHDR?C ??? PLTE??????$??L?0tRNS@??f/IDATx??˱ 0??#?J????voܖ???,?{r?ɲ,˲,˲<5??Cm>YT?BIEND?B`?
Warningimagejpeg(): Unable to open '/home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.jpg' for writing in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 244 

sorry to be a pain

Natch 07-22-2004 02:24 AM

Can you paste out line 230-260 of your signature.php?

royals 07-22-2004 02:26 AM

here is 223-245. I think I know what it is (line1&2) just not sure what I need to change. but I'm probably wrong!

PHP Code:

// ######################### DO NOT EDIT BELOW ############################

imagecopy ($img$vorlage0000$width$height); // copy empty banner

imagecolortransparent($img$bg_color);  // set dummybg transparent

// the distance is in pixels and the font # is 1 through 5
$i 0;
while(
$i count($output)){

// ######################### CHANGE FONT BELOW ############################
// Uncomment LINE1+LINE12 and comment LINE2+LINE22 to use default font.
// Replace "verdana.ttf" with the URL to your .ttf font
//
//imagestring($img, $fontsize, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $output, $text_color);  // LINE1
imagettftext($img$fontsize,  $left, (($i $zeilenabstand) - $zeilenabstand $top), $text_color,  $output); // LINE2
$i++;
}

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 


Natch 07-22-2004 02:35 AM

Code:

imagettftext($img, $fontsize,  $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color,  $output); // LINE2
This line here is missing the vital bit of code ...
Code:

imagettftext($img, $fontsize,  $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color, "verdana.ttf", $output); // LINE2
You need to pick a TTF font file, upload it to the same folder as your signature.php file and specify the filename of that font here ... see?

royals 07-22-2004 02:48 AM

Ok.... I've uploaded verdana.ttf and the changes to php.

PHP Code:

WarningWrong parameter count for imagettftext() in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 238

Warning
Cannot modify header information headers already sent by (output started at /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php:238in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 242
?PNG IHDR?C ??? PLTE??????$??L?0tRNS@??f/IDATx??˱ 0??#?J????voܖ???,?{r?ɲ,˲,˲<5??Cm>YT?BIEND?B`?
Warningimagejpeg(): Unable to open '/home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.jpg' for writing in /home/httpd/vhosts/therabblerousers.com/httpdocs/forums/signature.php on line 244 

:( :(

Natch 07-22-2004 02:54 AM

Your file has gotten quite screwed, but that line should read
Code:

imagettftext($img, $fontsize, 0, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color, "verdana.ttf", $output[$i]); // LINE2
- you were also missing the parameter 0 between fontsize and left...

The last error is due to you having not yet CHMOD'ed your output directory to where you will save the image...

royals 07-22-2004 03:04 AM

Ok - that error is gone but I get this:

http://www.therabblerousers.com/forums/signature.php

links for images:

http://www.therabblerousers.com/foru.../signature.jpg
http://www.therabblerousers.com/forums/sig/sig.jpg

I dont know if I did the images correct



Editd - had wrong links

royals 07-22-2004 03:46 AM

ok - I figured out my original sig.jpg was wrong...... I think I'm getting it. thank you so much for your time helping me ;)

It's almost there - just not exactly sure now.

http://www.therabblerousers.com/forums/signature.php

Natch 07-22-2004 04:10 AM

There is no way that this code should require login access - you have made too many changes I think ...

Work from the default file and see how you go ...

royals 07-22-2004 01:27 PM

Ok, I will do that this weekend. It is a closed board so I think thats the problem. Thanks for your help.

DWard 07-22-2004 03:09 PM

Hey guys, WHAT HAS HAPPENED TO THE DESIGN?? I visited the site hoping to see the usual nice design, but I see this little innocent design!


All times are GMT. The time now is 07:33 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.01523 seconds
  • Memory Usage 1,886KB
  • 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
  • (14)bbcode_code_printable
  • (5)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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