Sigx

We are the future in the past.
It is currently Mon Dec 09, 2019 11:24 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 39 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Quick Little Bit
PostPosted: Tue Jan 20, 2004 7:11 pm 
I played with the code you posted a little bit and found that my host dosn't support the imagecreatetruecolor(), and ended up having to use imagecreate(). But with ImageCreate(); PNG's look horrid, I used it with jpg's and the quality is still reduced a little but it look alot better. I also added some options for people to use my image themselfes...

Image

If you want to use it just put:

http://www.octitans.com/arg/?un=UserName


Top
  
 
 Post subject:
PostPosted: Tue Jan 20, 2004 10:42 pm 
Offline
Site Admin

Joined: Thu Jul 03, 2003 1:59 pm
Posts: 454
Location: Los Angeles
how are you keeping track of the hits?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 21, 2004 3:39 am 
your server is sending the data out... I was going to implement it and have my server keep track. But I looked at the raw server feed and saw your server was passing the data out.

I just added this line wit the others.
$counter = GetMid($alldata,"<counter="," \counter>"); // counter



I modified the DrawIT function a little:

drawIt($data, $counter, $Xoffset, $Yoffset, $backIMG);


Then within the drawit function i added

imagestring ($im, $font, 480, 114, "Hits:$counter", $fontColor2);


Top
  
 
 Post subject:
PostPosted: Wed Jan 21, 2004 11:27 am 
Offline
Site Admin

Joined: Thu Jul 03, 2003 1:59 pm
Posts: 454
Location: Los Angeles
cool. good thing you looked,
i added that counter thing after i released the monster sig.

good going!

it seems if the counter gets over 1,000 it will not have enough room to fit the text.


but the graphic sucks. lol


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 21, 2004 11:53 am 
Offline

Joined: Wed Jan 14, 2004 9:34 pm
Posts: 6
Thanx for the counter code, works perfectly 8)

Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 21, 2004 5:10 pm 
Offline
Site Admin

Joined: Thu Jul 03, 2003 1:59 pm
Posts: 454
Location: Los Angeles
great to hear.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2004 4:26 am 
Offline

Joined: Thu Jan 15, 2004 12:55 pm
Posts: 35
Location: Wonder Lake, Illinois
How you add that counter? It looks great.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2004 11:20 am 
Offline
Site Admin

Joined: Thu Jul 03, 2003 1:59 pm
Posts: 454
Location: Los Angeles
you have to capture the $counter variable and pass it in either through the drawIt function or make it glboal.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2004 8:01 pm 
Offline

Joined: Tue Jan 20, 2004 11:55 am
Posts: 4
Maybe I should think about adding that counter to mine. I already have 11394 hits for having SigX for like 5 days.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2004 9:16 pm 
Offline
Site Admin

Joined: Thu Jul 03, 2003 1:59 pm
Posts: 454
Location: Los Angeles
you must be a popular cat


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 23, 2004 10:51 am 
Offline

Joined: Wed Jan 21, 2004 3:43 am
Posts: 23
yea the graphic sucks... I am getting a friend to draw me up one when I can get ahold of him, I suck at image work.

I am also working on makeing a resizable one. But dont' have much time. So it may be a while... For those of you who want the code with the counter in it... You can have mine. I also modified it so it works with all versions of the GD library... because librarys < 2.0 don't support CreateImageTrueColor. but does have CreateImage


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 23, 2004 12:41 pm 
Offline
Site Admin

Joined: Thu Jul 03, 2003 1:59 pm
Posts: 454
Location: Los Angeles
sounds great.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 25, 2004 7:42 am 
Offline

Joined: Thu Jan 15, 2004 12:55 pm
Posts: 35
Location: Wonder Lake, Illinois
admin wrote:
you have to capture the $counter variable and pass it in either through the drawIt function or make it glboal.


What section is that at?

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 25, 2004 8:34 am 
Offline

Joined: Sun Jan 25, 2004 2:49 am
Posts: 3
IVIaniac wrote:
For those of you who want the code with the counter in it... You can have mine.



Where can I get the code??? A Hit counter would be really good

I tried doing this

Quote:
just added this line wit the others.
$counter = GetMid($alldata,"<counter="," \counter>"); // counter



I modified the DrawIT function a little:

drawIt($data, $counter, $Xoffset, $Yoffset, $backIMG);


Then within the drawit function i added

imagestring ($im, $font, 480, 114, "Hits:$counter", $fontColor2);


But it kept giving me errors.


I think it's about time I learned to understand with code!!!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 25, 2004 10:04 pm 
Offline

Joined: Wed Jan 21, 2004 3:43 am
Posts: 23
i have my source on the FTP server that i provided... details are avalible in the Contrib section of the forums.

EDIT:

Source: ftp://u35755773sigx:[email protected]/index.php
HTTP: http://sigxusers.octitans.com


there you go... don't trash the server... fell free to make a directory to host your own images/script alterations, please retain the SigX credits on the image...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 39 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group