Welcome to Gaia! ::

I know what a post limit is =P

I was just wondering what the actual post LIMIT was. *nods*

& I always assumed Jakabo was a girl.. Mainly because of the avi. Plus. I never talked to him - so wouldn't have known ^^
Aldo
@[?]jakobo is a guy, 100% certain

Yeah I know...but how can I resist when he does this with his female avatar:
Jakobo
If you would be interested in starting a new one (and pull all the info from the old one) it would be a huge help.... *hopeful adorable kitty eyes yolu can't say no to....*


I'm glad you like it Impetuous.
I do - alot ^^

I made my first imagemap cool However, Gaia isn't liking me right now so I can't save my new sig at the Edit your profile screen..

stressed
:B I worked out how to bypass Reinhart. The imagemap + my design = in my sig :3
aside from random images and imagemaps, what other things can PHP do that could be used in gaia sigs?
Kaoskiin
aside from random images and imagemaps, what other things can PHP do that could be used in gaia sigs?
Shoutboxes are made using PHP and so are many of the clickable/hugable/etc pets.
Letta's avatar
  • 50
  • 100
  • 200
ok, i got the images i want to rotate in the image map, and i already have an image map done (it'll be the same as what's in my sig now, except with rotating images). i just can't figure out what i have to do from there sweatdrop
the file we need to download is corrupted. I tried downloading it 3 or 4 times, and I still get an error telling me its corrupted. Anything I can do?
Pyro...that's strange. So what happens when you try to unzip it? Perhaps you need to update your WinZip...if not I'll just post the code and you can save them as .php files on your own.

Letta, I can't tell what your problem is...can you try explaining in a different way?
I have a question. I have Adobe ImageReady 7.0 on my computer. Can I use that to do all the work and then use the information it gives me because it has the image map tool on it? I just wanted to know because I wasn't sure if it's the right information needed or not to make an image map. Here is the information just for reference:

<HTML>
<HEAD>
<TITLE>Basic</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (Basic.psd) -->
<IMG SRC="images/Basic.gif" WIDTH=373 HEIGHT=253 BORDER=0 ALT="" USEMAP="#Basic_Map">
<MAP NAME="Basic_Map">
<AREA SHAPE="rect" ALT="" COORDS="192,126,371,250" HREF="http://www.gaiaonline.com/gambino/bank.php?mode=trade&uid=537536" TARGET="_blank">
<AREA SHAPE="rect" ALT="" COORDS="7,177,184,190" HREF="http://www.gaiaonline.com/forum/viewtopic.php?t=4666591&highlight=" TARGET="_blank">
<AREA SHAPE="rect" ALT="" COORDS="6,162,186,176" HREF="http://www.gaiaonline.com/forum/viewtopic.php?t=3449326&highlight=" TARGET="_blank">
<AREA SHAPE="rect" ALT="" COORDS="6,145,185,161" HREF="http://www.gaiaonline.com/forum/guilds/index.php?page_mode=4&guild_id=1979" TARGET="_blank">
<AREA SHAPE="rect" ALT="" COORDS="0,0,373,253" HREF="http://www.gaiaonline.com/profile/profile.php?mode=viewprofile&u=537536" TARGET="_blank">
</MAP>
<!-- End ImageReady Slices -->
</BODY>
</HTML>


That's how it gives me the information. This is usable for image maps right?
borobdin
Pyro...that's strange. So what happens when you try to unzip it? Perhaps you need to update your WinZip...if not I'll just post the code and you can save them as .php files on your own.

Letta, I can't tell what your problem is...can you try explaining in a different way?


I just updated my winzip, and its still giving me the "file is corrupted" error when I try to unzip it. I can download it just fine, but its unziping it thats the problem.
Seiki Nova, you can use the coordinates you get from that to make a map. However, most of the HTML in your code is disabled on Gaia, so even if it fits the sig character limit, it won't work. It's the reason Jakobo wrote the code and I wrote this thread.
Oo - I wanted to ask. Can the images used be animated?
PyroGriffin, I just recreated the zip file fresh and uploaded it again. It that still doesn't work.

Copy and paste this into Notepad. Then save as imagemap.php. Make sure it does not add .txt.
&lt;?PHP
// Gaia Sig Mapper
// Regions are Defined By Rect Normally
// Jakobo @ Gaia Online

// Class Definition
// This is responsible for the definition of coordinates
class imageMap {
var $locale,
$defaultURL,
$size;

function imageMap() {
// makes locale ready for data
$this->locale = array()
$this->size = 0;
}

function setDefaultURL($inUrl) {
$this->defaultURL = $inUrl;
}

function addToMap($Region) {
$this->locale[$this->size] = $Region;
$this->size++;
}

function testMap($inX, $inY) {
foreach($this->locale as $Region) {
$Region->goIfInside($inX, $inY)
}
// we didn't go anywhere, load the default
header("Location: " . $this->defaultURL)
}
}

class Region {
var $type, // type of region
$url; // url of region

function Region() {
// empty constructor
}
}

class Rect extends Region {
var $x1,
$y1,
$x2,
$y2;

function Rect($inX1, $inY1, $inX2, $inY2, $inUrl) {
$this->x1 = $inX1;
$this->y1 = $inY1;
$this->x2 = $inX2;
$this->y2 = $inY2;
$this->url = $inUrl;
$this->type = "rect";
}

function isInside($clickedX = -1, $clickedY = -1) {
// if X and Y are not set, -1 is used
// placing it outside of the image map
if(($clickedX >= $this->x1 && $clickedX <= $this->x2) && ($clickedY >= $this->y1 && $clickedY <= $this->y2) ) {
return true;
} else {
return false;
}
}

function goIfInside($clickedX = -1, $clickedY = -1) {
// goes to object's URL if inside
if($this->isInside($clickedX, $clickedY)) {
header("Location: " . $this->url)
exit;
}
}
}

?&gt;


Copy and paste this as map.php.
&lt;?PHP
/* Gaia Image Map Go-er
Rudolph J Heuser (Jakobo on GaiaOnline.com
Modified: John T Wu (borobdin on GaiaOnline.com)
*/

require_once("imagemap.php")

// new imageMap
$myImageMap = new imageMap()

// define regions
$area = new Rect(X_left,Y_top,X_right,Y_bottom,"URL")
$myImageMap->addToMap($area)

$myImageMap->setDefaultURL("")

// capture X and Y from query string
$x_and_y = $_SERVER["QUERY_STRING"]
$x_and_y = explode(",",$x_and_y)
$inX = $x_and_y[0]
$inY = $x_and_y[1]
unset($x_and_y)

// echo $inX. "," . $inY;
$myImageMap->testMap($inX, $inY)

?&gt;
Impetuous
Oo - I wanted to ask. Can the images used be animated?

Um...I think I tried it once and it worked. It should work on any image in any case.

Quick Reply

Submit
Manage Your Items
Other Stuff
Get Items
Get Gaia Cash
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff