deactivate

Meta

Comments

bizuteria: Exelent article...

Kathy, diplomas teacher: Despite lots of advantages of Linux, I still think that...

Design Company Manager: Let me clarify - we can use Ubuntu instead of...

Nick: Love your aslampHC great job, keep it up :-) Nick...

Lamp: Haha. Yeah, I'm with you there... The gum kinda tied...

movie fan: there were some awkward moments in this movie that were...

Svetainiu kurimas: theme was inspired by Derek Punsalan’s is.derekpunsalan.com, and evolved from...

Miley-Cyrus-Fan: Thank you so much, usefull +1...

Adult Ühler: I'm a moderately recent windows to Ubuntu convert too. After...

Hendry Lee: Superb themes! I can't find the license information. Is it allowed...

RSS Subscribe via RSS or e-mail and be notified of new stuff automatically.
Enter your email address:

Image Typo 1.3

Another new technological advance brought on by me! With the help of PHP of course. Ok, this one basically is just an image, 100px by 100px, or an icon, which can be written (typed) inside of. you can enter any text into it except certain characters, which I am going to list how to do those in just a minute =]. Now any text you place where it says ‘TEXT HERE’ will be centered inside of the 1002 Icon in a pixely font (silkscreen actually). The base code is this:

The ‘n’ that is used is simply to aknowledge that you want to display a picture. The ‘100′ is the width. This value has to contain three digits, such as ‘010′ for a width of 10. The height is automatically figured by the number of lines. The last ‘c’ is the alignment of the text. The values can be ‘l’ for left, ‘c’ for center, and ‘r’ for right. Most of the time it looks best with ‘c.’ And for the special characters… You can not use the question mark itself in the url. However, you can replace it with ‘$q’ (without the quotes) to display one. If their are any other characters that do not work, let me know and I will make a fix. For now, you have to convert all spaces to ‘%20′ (without the quotes) ONLY when embedding it into a myspace comment or profile or something. To do this (if your lazy), just type in what you want into your web browser, then view the picture, and just copy that URL. It will have automatically converted all spaces to ‘%20′ s. If you want to make a newline within the image, use ‘$n’ (without quotes) in the URL. Here is the current list of variables that will be replaced:

$q > ?
$n > [newline]
$ip > IP address of viewer
$ref > Referer of viewer
$req > The request URI

That is all for now, have fun with it!

Information


Author: Lamp
Posted: December 31, 2006
Time: 4:26:36 pm
Trackback URL


Tags


,

NO COMMENTS YET

Reply to this entry