Welcome to Gaia! ::


sir, you make me wish i learned more prog. in my prog. class! The prog. language we learned so far is VisualBasic.Net, soon we'll be starting on C#....!!! Anywho....what prog. language is this?
Whee! lookit mah sig! Tis so beautiful!
beautiful work, Jakobo! XD I had thought about using an image map in my signature before, but I didn't know it would work out anything like that.
Is this Perl script, by the way? CGI?
Kureru, DoBbLiNg It is written in PHP, which holds a syntax that is the hybrid child of Java and C++. PERL happens to be its uncle. What this basically amounts to is if you know any of those three languages, learning PHP isn't a far step on a syntax level.

Skorpeyon It does work with tinyurl, but you must map the php script (no ? after it) through tinyurl.com's home page. For example, I would map http://gaia.felocity.org/jakobo_map.php the ismap property will then affix the ?x,y for you to the end.

Liseli I wrote it originally for the more programming minded, but based on this response, I am giving some serious consideration to a full step by step walkthrough (including how to determine dimensions for X and Y using programs like Adobe Photoshop).

It's so nice to see some people using this. Makes me glad I took what was previously just a little fun idea I had and making something more concrete and robust with it. Like I said, I want to have more control over hotspots than just rectangles, and if I get the time over the next week, I will most certainly add circles and the elusive polygon shapes, meaning you could have clickable areas of ANY kind.

I'm going to start a list of people on the 1st post who are actively using it as well, this way people can see what I am talking about in a more immediate sense. (the example wasn't clear enough for some I've heard). If you see the thread kinda dying, give it a good kick. I'll keep an eye on it, and you can reach me via PM or AIM if you need some help in setting it up. smile
Caveat: Firefox's Right Click -> Open in new Tab does not carry the image map information over. Additionally, the information gets lost in the all important "right click". Seems to be across multiple browsers.

Currently playing with the "usemap" option to see if Gaia sigs will allow for that. I'll keep everyone posted. smile
All I can say is, I love you man - this makes me so happy, to get all o mah linkies in my sig.

It did take me a little while to find the XY coordinates for my images, but once I got that down, 'twas a piece of cake!


Oooh, I do have a question for you, though, oh mighty PHP man!

In my sig I've got these quotes that are being generated on a dynamic .png - is there any way to tell it to center the text when it creates it, instead of having it left justified?

This is the link to a zip file with the quote script files:
http://gaia.baka-neko.com/sig/quote.rar

I haven't been able to figure that one out yet...
the dancing kitten
In my sig I've got these quotes that are being generated on a dynamic .png - is there any way to tell it to center the text when it creates it, instead of having it left justified?


Well, the file would be your quote.php...
$imwidth you have set to 450, which is the total width of the final generated image. I would reccomend if you have a fixed width font being used (as it looks like) you simply do some basic math.

Line 57:: quote.php[color=white]

$letterwidth = 5; // width of a character for this font
$left = ($imwidth/2) - ($letterwidth*strlen($returns[$i])/2);
ImageString($im ,2, $left, $position, $returns[$i], $text_color);


Let me know how that works. smile
(whee syntax hilighting with color tags...)
Huzzah! It works brilliantly!

I love you - you are my new favorite person heart
the dancing kitten
Huzzah! It works brilliantly!


Phew, I'm glad it worked! (Between you, me, and this period ----> . I hadn't tested it yet sweatdrop )
Jakobo
the dancing kitten
Huzzah! It works brilliantly!


Phew, I'm glad it worked! (Between you, me, and this period ----> . I hadn't tested it yet sweatdrop )


Hey, it's all good - it works perfectly! I love it!
Jakobo
Caveat: Firefox's Right Click -> Open in new Tab does not carry the image map information over. Additionally, the information gets lost in the all important "right click". Seems to be across multiple browsers.

Currently playing with the "usemap" option to see if Gaia sigs will allow for that. I'll keep everyone posted. smile


I've confirmed the above across a couple of browsers. It is connected to the passing of a server side image map. Unfortunately, there is not a workaround for it (yet). If anyone has ideas about how to do it on the client end, it would be a huge help.

Added note: someone can link to your coordinates with their own image. For example: http://gaia.felocity.org/jakobo_map.php?210,210 Will take you to Chord Hall (3rd link in my sig). This may yet have some very interesting possibilities. ^_^
o.O;; I'm working on mine now. xd

Vicious Brawler

19,975 Points
  • Battle: KO 200
  • Battle: Counterstrike 150
  • Seasoned Warrior 250
Thanks for figuring this out! It works beautifully. biggrin

*points to sig as proof of concept*
Phoenix Goliathane
*points to sig as proof of concept*


Added you to the list. Also redeveloped my own sig as a more obvious proof-of-concept. ^_^
Sooo... conufsed....

Quick Reply

Submit
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum
//
//

Join Now

// //

Have an account? Login Now!

//
//