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)

Oblivion Knight 06-01-2004 07:33 AM

Quote:

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

Yep, running it through signature.php works fine - but the amount of guests viewing my forum then sky rockets through the roof, all viewing signature.php :ermm:

DWard 06-02-2004 06:56 AM

Quote:

Originally Posted by Oblivion Knight
Yep, running it through signature.php works fine - but the amount of guests viewing my forum then sky rockets through the roof, all viewing signature.php :ermm:

Yer u need a crontab set up.

Oblivion Knight 06-02-2004 10:59 AM

Quote:

Originally Posted by DWard
Yer u need a crontab set up.

I don't have access to crontab or any kind of cron service on the server other than vB's cron, so I really could do with it being set up on that somehow.

As I said, I'll try and look in to it.. :cross-eyed:

scottct1 06-02-2004 03:29 PM

Works Great!

Thank you!!

MrWolfman 06-02-2004 10:02 PM

yes great work thankyou

could anyone help me add something to this
i also at the end want it to show the total number of vote in a specific poll
could anyone help me do this plase

Mr. HillBilly 06-10-2004 09:07 PM

This script messes up the color in my image..

example attached

DWard 06-11-2004 05:10 AM

I may know why, but I'll look into it and get back to you.

bigreefer 06-11-2004 10:41 AM

A Server update with the new GDlib and now it runs :)

ThX !!!

http://www.celebritymarkt.de/signature.php [img]

DWard 06-12-2004 05:55 AM

Quote:

Originally Posted by Mr. HillBilly
This script messes up the color in my image..

example attached

What version of GD do you have? I think GD 2 is required for the best results.

Mr. HillBilly 06-12-2004 06:59 PM

Quote:

Originally Posted by DWard
What version of GD do you have? I think GD 2 is required for the best results.


I'm running GD2

DWard 06-18-2004 08:06 PM

Mmm still a bit confused by your situation, its one I've never seen before. By the way everybody who likes this hack might like the look of a new related hack that I will be releasing on Monday. The details are below:

Follow this link:
https://vborg.vbsupport.ru/showthread.php?t=66285

Natch 06-19-2004 12:14 AM

I think this guy might have the version that does imagecreate() not imagecreatetruecolor()

DWard 06-19-2004 05:41 AM

That's the only thing I can suggest, I thought of it, but it should have no effect.

DWard 06-19-2004 06:31 AM

Released for Sandy. Extra statistcs in signature, IP address, Browser, and OS.

Natch 06-19-2004 02:03 PM

Caveat: That's not gonna give accurate info if you run it via a crontab tho' - the IP will be the address of the server running the cron job, etc...

DWard 06-19-2004 03:41 PM

Quote:

Originally Posted by DWard
Released for Sandy. Extra statistcs in signature, IP address, Browser, and OS.

He's not running via crontab.

bhutz 06-22-2004 07:29 AM

*Bhutz click install

Yeh

I had to point to my verdana.ttf like

Code:

/home/bhutz/public_html/forum/verdana.ttf
Because I was having problems with the script not being able to find the font and sayin that headers had already been sent...grrr

All good now though :devious:

DWard 06-23-2004 04:31 AM

Good Good

Big Kahuna 06-23-2004 06:38 PM

OK what am I doing wrong?

I get :


https://vborg.vbsupport.ru/

when the graphic looks like this:

https://vborg.vbsupport.ru/

Big Kahuna 06-23-2004 06:40 PM

and why when I right-click yours for the properties I see the file name as http://www.collegepranks.co.uk/forum.../signature.jpg

but when I right-click mine I get

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

Big Kahuna 06-23-2004 07:10 PM

I gave up on the yellow and did a different graphic.

Big Kahuna 06-23-2004 07:28 PM

This is crazy how I can only make it work with some graphics and not with others.

I also tried this as a sig on a phpBB board and it work display there -- will this only work on vBulleting forums?

PET 06-24-2004 04:09 AM

http://hattrick.computergames.ro/forum/signature.php

However, it looks teribile. Where are the colors ? :(

DWard 06-24-2004 04:22 AM

if you look back there is a thing about creating a jpeg and a trurtype function, which was taken off in the new version because that was causing a few troubles.

Big Kahuna 06-24-2004 03:17 PM

Quote:

Originally Posted by DWard
if you look back there is a thing about creating a jpeg and a trurtype function, which was taken off in the new version because that was causing a few troubles.

1. I can only make this work with certain colors -- 90% of the graphics I've made convert down to a 16-color "Safe Mode" look. Below is how I have the font code section of the version I loaded from the first post yesterday.

PHP Code:

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

//imagettftext($img, $fontsize, 0, $left, (($i * $zeilenabstand) - $zeilenabstand + $top), $text_color, "verdana.ttf", $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
?> 

</FONT>

My understanding was that I commented to where it takes the default -- but I suck as a programmer and that may be where I'm screwing up. The Line 2 & 22 or 1 & 12 confuse me as to exactly which lines are which. Is that 1, 2, 12, & 22 from the ########### down?


2. I see your sig is a JPG -- are you having a CRON job generate a new image every so often -- and it so, please roll me a bone and tell me how to do that. I visit a lot of phpBB and YaBB boards that I have no control over -- and they do not allow for php images.

This is a very cool hack and if I had more control over which graphics will work and the ability to generate frequent images (I know it isn't real time -- but every 10 minutes would be close enough for Government work) for my members -- it would be too Kool.

Thanx
BK

Big Kahuna 06-24-2004 03:23 PM

BTW -- Happy Birthday Dan. You're just a young shaver at 17. ;)

TJFweb 06-25-2004 01:56 AM

Hi,

I'm using imagecreate() because imagecreatetruecolor() gives me a red x.

However the color comes up looking terrible! It's not even grayscale, it's just some washed out blue all over.

I've attached a pic. I know the stats text is out of alignment but I'm not going to bother aligning it until I know I can get it working in full color :P

TJFweb 06-25-2004 01:58 AM

Does the input jpeg have to be compressed with a specific value or with indexed color or something?

Natch 06-25-2004 02:08 AM

No - it means that you have an old version of GD - it also means that your server can only produce low-quality images (hence the lack of truecolor support)

TJFweb 06-25-2004 02:24 AM

What a p.o.s. server. Good thing I'm switching servers next month.

TJFweb 06-25-2004 02:29 AM

Oh what do you know, I tried the imagecreatetruecolor(etc...) and it worked.

DWard 06-25-2004 10:27 AM

Yer the truecolor and other mode work at different times. O wel. I got signed off from college today for 3 months, so a portion of that time will be spent on this mod for a bit. I'm working on a flash stats thing now, it's getting there.

Big Kahuna 06-25-2004 03:42 PM

Quote:

Originally Posted by Natch
No - it means that you have an old version of GD - it also means that your server can only produce low-quality images (hence the lack of truecolor support)

I'm having the same problem -- but I have been assured that I have the most current version of GD.

The author of this hack said it had something to to with the defualt vs downloaded font -- but I didn't understand exactly what he was saying. I included the portion of the font code a couple of posts ago so he (or anyone else) could roll me a bone.

marcel-ea 06-25-2004 10:55 PM

I have a other problem i use a jpg and he generate all right only the jpg lose the colors look if they have only 16 colors..

Please help

cLord 06-26-2004 04:34 AM

*INSTALLS*

Is it normal that one guest is added (without IP) to the online userlist when I call this script using cron?

VERY nice script!
cLord ;)

DWard 06-26-2004 06:03 AM

Quote:

Originally Posted by cLord
*INSTALLS*

Is it normal that one guest is added (without IP) to the online userlist when I call this script using cron?

VERY nice script!
cLord ;)

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.

bhutz 06-26-2004 06:11 PM

Hey peeps I am having problems after successfully installing.

I tried to chnage the signature.jpg and sig.jpg for my own but the old one keep appearing, no idea why :(

So I tried to create signature2.php, signature2.jpg and sig2.jpg but now I get this error

PHP Code:

WarningimagecreatefromjpegUnable to open '/home/bhutz/public_html/signature/sig2.jpg' for reading in /home/bhutz/public_html/forum/signature2.php on line 208 WarningSupplied argument is not a valid Image resource in /home/bhutz/public_html/forum/signature2.php on line 225 WarningCannot add header information headers already sent by (output started at /home/bhutz/public_html/forum/signature2.php:208in /home/bhutz/public_html/forum/signature2.php on line 242 

Any ideas anyone? :ermm:

bhutz 06-26-2004 06:34 PM

Quote:

Originally Posted by bhutz
Any ideas anyone? :ermm:

Ignore me, I think I should have set my image to indexed colour :tired:

In Adobe Photshop....

Image >> Mode > Indexed Colour

Now for me to position the text...should be fun :nervous:

RapCheck 06-26-2004 07:59 PM

sweet, I always wanted one of these :D

got it working just have to fine tune an image and the text

RapCheck 06-26-2004 08:59 PM

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.


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.01575 seconds
  • Memory Usage 1,832KB
  • 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_code_printable
  • (2)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)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