Sigx

We are the future in the past.
It is currently Tue Mar 19, 2024 12:33 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: additional text
PostPosted: Fri Feb 13, 2004 8:42 pm 
Offline

Joined: Fri Feb 13, 2004 8:25 pm
Posts: 17
morning all,

first of all, id like to thank the admin :)

second, ive got my sig working great, and ive done the .htaccess, and that works fine aswell, but im a bit of php nub lol, so a little help please?...

ive tried this, just following the patern...

Code:
$fc = GetMid($alldata,"<fc="," \fc>"); // font color
$bc = GetMid($alldata,"<bc="," \bc>"); // background color (not used if background image set)
$fz = GetMid($alldata,"<fz="," \fz>"); // font size
$trans = GetMid($alldata,"<trans="," \\trans>"); // the \\t so we can type letter t. if background image is not set (transparencys not work if using imagecreatetruecolor() which i am.)
$data = GetMid($alldata,"<data="," \data>"); // the data from sigx.yuriy.net server, what we got to work with.03:52 14/02/2004
$stuff = GetMid($alldata,"<stuff="," \stuff>");

//<fc=0,0,0 \fc>
//<bc=255,255,255 \bc>
//<fz=2 \fz>
//<trans=1 \trans>
//<data=Visit http://sigx.yuriy.net \data>
//<stuff=print hello world \stuff>

if( $data ){ // if we get the data ok
   drawIt($data, $stuff, $fc, $bc, $fz, $trans, $Xoffset, $Yoffset, $backIMG);
   //echo "$data, $stuff, $fc, $bc, $fz, $trans, $backIMG";


it doesnt work, but im sure ive got the right sort of idea, just some text that i can add that doesnt need the client, for example, the $stuff could be just "some-forum admin".

also, id like to add a hit counter somewhere. thanks.

my sig atm looks like this.....

Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 9:20 pm 
Offline

Joined: Fri Feb 06, 2004 8:47 pm
Posts: 14
Location: USA
Dats tyte! I like da lil' yellow guy.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 9:48 pm 
Offline
Site Admin

Joined: Thu Jul 03, 2003 1:59 pm
Posts: 454
Location: Los Angeles
i like that alien looking thing.

look in the Remote Sigx topic for the sample code with a counter, somwhere down at the botton.


if you want to add more info to the end of the $data variable, just do this:



Code:
$fz = GetMid($alldata,"<fz="," \fz>"); // font size
$trans = GetMid($alldata,"<trans="," \\trans>"); // the \\t so we can type letter t. if background image is not set (transparencys not work if using imagecreatetruecolor() which i am.)
$data = GetMid($alldata,"<data="," \data>"); // the data from sigx.yuriy.net server, what we got to work with.
$data .= "*<*" . "This will be last line on sigx";


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 10:26 pm 
Offline

Joined: Fri Feb 13, 2004 8:25 pm
Posts: 17
nice one, thanks man, i got that to display the counter aswell!

Code:
$data = GetMid($alldata,"<data="," \data>"); // the data from sigx.yuriy.net server, what we got to work with.03:52 14/02/2004
$counter = GetMid($alldata,"<counter="," \counter>"); // counter
$data .= "*<*" . "$counter";


just that from off the top, you dont need to change any other strings further down, thats it :D

but ive been trying to do something like $Xpos and $Ypos at the top, as seperate co-ords, and then trying to print the counter elsewhere, but no dice, any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 10:28 pm 
Offline
Site Admin

Joined: Thu Jul 03, 2003 1:59 pm
Posts: 454
Location: Los Angeles
treat counter seperatly from the data.

the data is displayed line by line, one after another.

if you want to put counter seperatly take a look at the sample from the other topic.

http://sigx.yuriy.net/phpbb/viewtopic.php?p=406#406


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 10:41 pm 
Offline

Joined: Fri Feb 13, 2004 8:25 pm
Posts: 17
ive tried, and all i get is errors.

he says "then put this in the drawit fuction"

can you point out where that is? like poaste the line above or something?

im just doing this in notepad, so now idea where line xx is.



i'd like something like what midgit has over here....

but seperately.

like for example, the download stats up top left, the sigx stats bottom left, and counter bottom right.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 10:48 pm 
Offline

Joined: Thu Jul 03, 2003 3:06 pm
Posts: 652
in notepad push CTRL+G

_________________
Image
~~~SigX C++ Edition~~~


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 10:49 pm 
Offline

Joined: Fri Feb 13, 2004 8:25 pm
Posts: 17
lol, thanks man :D


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 10:50 pm 
Offline
Site Admin

Joined: Thu Jul 03, 2003 1:59 pm
Posts: 454
Location: Los Angeles
i liked ur little alien so much i had to make it mine.

Image


http://sigx.yuriy.net/remote/alien/alien.zip

if u want the source, email me and ill give u a reply with the source. i added a counter.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 10:54 pm 
Offline

Joined: Fri Feb 13, 2004 8:25 pm
Posts: 17
lool, cool, thanks, ill send you the full wallpaper in exchange if you want?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 10:55 pm 
Offline
Site Admin

Joined: Thu Jul 03, 2003 1:59 pm
Posts: 454
Location: Los Angeles
i dont like wallpapers, my hundreds of icons on the desktop make a good enough of a murral as it is.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 10:57 pm 
Offline

Joined: Fri Feb 13, 2004 8:25 pm
Posts: 17
lol, its extrmemely plain, black top and bottom border, with those yellow lines accross to both ends, and alien smack in the middle, but facing the other way.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 10:59 pm 
Offline
Site Admin

Joined: Thu Jul 03, 2003 1:59 pm
Posts: 454
Location: Los Angeles
email sent. i got rid of ur name and shifted the alien over to fit a little bit more text. (not in the attachment i send you, after i send it)


Last edited by admin on Sat Feb 14, 2004 11:04 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 11:04 pm 
Offline

Joined: Fri Feb 13, 2004 8:25 pm
Posts: 17
thanks man, nicely done.

ill just have to play around with this, and see how much more i can mess it up lol.

thanks again :)

Image


Last edited by bd3k on Sat Feb 14, 2004 11:05 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 14, 2004 11:05 pm 
Offline
Site Admin

Joined: Thu Jul 03, 2003 1:59 pm
Posts: 454
Location: Los Angeles
no prob. when im bored ill do stuff for people, free of charge :)

just dont forget to tell ur friends


Last edited by admin on Mon Feb 16, 2004 3:02 pm, edited 1 time in total.

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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB® Forum Software © phpBB Group