Article updated, December 1, 2004
Version 2.0, August 30, 2004
Are you using this script on your website?
Let me know and I will place a link here!
HMVS Cerberus
Hennadatta
Lorena's divague
Streaming sound tracks
Elite Clan
C00L GuestMap 2
- What is a GuestMap?
- Guestmap Demo
- What's new in this version?
- Download the GuestMap script
- Installing the Guestmap
- How to place the guestmap on your website
- Themes, plug-ins, extensions and customizations
What is a GuestMap?
A guestmap is just like a guestbook. with the difference that a visitor can pick an icon, and the position where to place this icon to which he, or she attaches a message.
Unlike guestbooks, guestmaps have only been around for a few years. Until now guestmaps have been rather boring, a map with some tiny icons, and a message on it. C00L GuestMap 2 brings this a whole new level, it uses some of the most cutting edge techniques availible on the internet today, yet still works with some browsers that are over 4 years old.
The guestmap does not require any Java, or Flash plug-ins to be installed.
GuestMap Demo
Birds in tree theme
Move your mouse pointer over the birds to read the message that somebody else has left.
Click anywhere on the map to place an icon there. Fill in a name and a message, select a bird and click the button to confirm it.
Wait for the page to load for the guestmap to appear...
Use the zoom function to create more space between the icons.
Click on [change view] to read the messages in a more orderly way.
What's new in this version?
Since the last version (1.3) the guestmap has been completely rewritten and has all kinds, of cool new features:
- List view
- View messages like they were in a guestbook
- New zoom feature.
- Zoom in on the map, very useful for crowded maps or precision placement of icons.
- IPv6 ready
- Be prepared for the future, IPv6 users are already among us, and it will only be more.
- Multiple maps on the same website
- The new guestmap can use the same database table, admin page and JavaScript for different maps, you can even use multiple maps on multiple websites without having to duplicate the database, PHP or JavaScript code.
- Easier to embed in an existing page
- The new guestmap can be placed anywhere on the page, no absolute positioning needed.
- Easier to configure
- All the basic settings are in one well commented file. The more advanced settings are also on top of each PHP script.
- New admin page
- The new admin page allows you to manage various guestmaps easily.
- 32 bit PNG support for icons, also in Internet Explorer!
- Yes, you probably didn't know it was possible. Full color semi-transparent images in Internet Explorer, you got to see it to believe it!
- Expandable with themes and plug-ins
- Let users place birds, butterflies, fish icons, or whatever using different themes and then spice things up by making your icons move around, using a plug-in.
- Fast and bandwith friendly
- The JavaScript is only 10 KiloBytes in size. No pages need to be loaded for zooming or switching to list view for every page view. Requires 169 Bytes less for every icon, this saves in tens of KiloBytes for each page view.
- Unicode support
- Have your foreign visitors write strange, unreadble characters without any problems!
Download the GuestMap script
In order for the guestmap to work your server needs to support PHP 4 and MySQL 3 or later. This is by far the most common configuration on all webhosts that support serverside scripting.
Installing the GuestMap
- Download and unzip guestmap2.zip.
- Change the database settings in db.inc.php.
- Place the guestmap directory on your webserver.
- Create the table guestmap2 in your database by running install.php.
- Create a link/iframe/pop-up to the guestmap on your website.
Put the guestmap directory in your website's main directory. The guestmap directory contains all the files needed for the guestmap to work.
Your guestmap will be available at http://example.com/guestmap/standard_gray where standard_gray is the default theme.
Having trouble?
If you have trouble installing the guestmap, please check the FAQ first, if the answer to your problem isn't there contact me or leave a message (with your email!) on the bottom of the page.
How to place the guestmap on your website
After downloading and installing the guestmap you need your give your visitors access to the guestmap. The easiest way of doing this just by creating a link to guestmap/theme_name, but if you want to make the guestmap blend in with your website there are some other options:
In an iframe
This is the preffered method of placing the guestmap on your website, it's easy too.
To make an iframe without any scrollbars use this code:
<iframe scrolling="no" frameborder="no" src="guestmap/butterfly_garden" style="width:520px; height: 378px; border:0; overflow:hidden;"></iframe>
Like you might as well have figured out, you may want to change the path, width, and height to fit your guestmap.
On top of this page you can find an example of an guestmap in an iframe.
In a pop-up window
A popup window makes the guestmap look like it's a seperate application, you can use a large gyuestmap since it doesn't have to fit in your design.
Please note that many users consider pop-up windows to be annoying, many people have a popup blocker installed that stops pop-ups in certain circumstances. Unless you have a very good reason not to, use an iframe instead.
To use a popup first make a javaScript function that opens a window with no toolbars:
<script type="text/javascript">
function openWin(url,name,width,height) {
window.open(url, name, 'width='+width+',height='+height+',toolbar=0,menubar=0,resizable=0,scrollbars=0,
location=0,status=0,scrollbars=0,directories=0');
return false;
}
</script>
Then create a link or a button that calls the function.
<a href="javascript:openWin('guestmap/birds_tree','gmTree',516,505)">Open guestmap in a pop-up window</a>
<form method="get" action="" onsubmit="return openWin('guestmap/birds_tree','gmTree',516,505)">
<input type="submit" value="Open guestmap in a pop-up window" />
</form>
If you want to use an image, just put it betwee the <a> tags. Do not use the onclick event handler (unless you have a very good reason), it doesn't work when navigating with a keyboard, that's also the reason why it's better to use an onsubmit for the form.
Embedded in a page
Although it's lots easier to embed this new guestmap anywhere in a page in this new version, it's still not that easy. For it to work correctly in Microsoft Internet Explorer the guestmap page needs a Strict DTD, else it will be messed up.
The second thing you need to watch out for is duplicate ID's. Id's have to be unique. If you use one that the guestmap is already using, it will be messed up.
Unless you have a very good reason not to: use an iframe instead.
If you still want to embed the guestmap in a page, the best way to start off is by modifying the index.html and style.css files.
Themes, plug-ins, extensions and customizations
Themes
These are the variuos themes availible. Place them in your guestmap directory. The new guestmap will now be availible on the following location:
http://mywebsite.ext/guestmap/theme_name
You can rename the theme's directory to anything you fancy.
If you are using multiple guestmaps make sure they all have a unique ID. You can check, and set the ID by changing the value of the gmId variable in gm_conf.js that is in each theme's directory.
Standard gray
Just your plain old boring guestmap with some standard smilies and a worldmap on the background. Very basic, easy to customize. This theme is included with the guestmap
Birds in tree
Various types of birds sitting in a tree. This theme uses some rather large, fading 32 bit PNG's, will probably not be suited for very active maps, unless you set the icon fade out time to very fast.
Brainerror
The BrainError.net theme, in this page's style, again nothing to fancy, just an example on how you can customize the map to blend in with your design.
Butterfly garden
A gorgeous garden of butterflies flying around. This theme comes with the moving icons plug-in!
Coral reef
Fish swimming around on a coral reef and looks like your own virtual aquarium. The zoom function is disabled here by default. This theme comes with the moving icons plug-in!
Plug-ins
C00L GuestMap 2 can be extended using plug-ins. Currently, these plug-ins are availible:
Moving icons
This plug-in makes icons move around on your map. Although the icons move around randomly you can set the interval, mimimum and maximum speed and directions.
If you are having problems installing the plugin, look at the source of the demo (or just copy the whole index.html).
Demo - Download moving icons plug-in
Installation
- Download gm_moveicon.js.
- Open the file and follow the instructions for activating and setting the movements.
- Place it in the same directory as your guestmap on the webserver.
Admin page
Place this script in your guestmap directory to manage all your guestmaps. This is a very basic admin system and has some built in security that uses sessions and requires you to log in with a username and password which you have to set yourself.
The reason the admin page is very basic is so that it can easily be customized, or be built into an existing CMS/admin page/control panel.
Installation
- Download and unzip gm2_admin.zip.
- Change the password and username in login.php!
- Place the admin directory in the guestmap directory on your webserver.
Warning: The admin page has been reported not to work on all servers. I suspect it has something to do with various versions of PHP. If the admin page doesn't work I can't help you. If you find the cause and/or solution, let me know!
License information
Scripts shown here can be copied, used and altered as you please. However, I don't like other people taking credit for my work. It really pisses me off. I'm a real bad ass person, once I feel pissed off. So here are the rules:
- Don't distribute the scripts, I am already doing that for you.
- Don't claim that they're your own, because they're not (unless you altered them a lot). That means when you get money for it, I have done work for you and you have to give all your money to me.
Hey! I think your guestmaps are mighty fine. I have installed as you outlined.
I have two errors/problems however.
#1 The fish icons do not show up in the selector box nor the final page. I can hover over where the fishes are suppose to be and get somethin clickable but nothing shows up, no graphic.
#2 For the admin this error: Parse error: parse error, unexpected '}', expecting ',' or ';' in /home/holiday/public_html/idream/guestmap/admin/manage.php on line 97
Any help most appreciated! Thanks.![]()
GuestMap 1 was much better than any other GuestMap available. Now GuestMap 2 is even better. It installed easily & the admin, list view & multiple GuestMaps features are terrific.
The way the scripts is written to support multiple maps of different sizes, using just one database is just super.![]()
Kickass script! Very cool. However, after installing with PhP My Admin this error shows up : "Error The additional Features for working with linked Tables have been deactivated"
I don't wanna sound like a n00b although I am a noob
It's mySQL's first. So far I read the table needs some kind of controller. Any suggestions ?
Cheers
You are a VERY clever bloke.
Thanks for sharing your work.
Bravenet? Who is bravenet?
Respect to you bud.
You should charge a nominal fee for this script, Im sure people would pay for an unlimited guestmap!!
![]()
![]()
![]()
![]()
Thanks!!! I tried Globetrotter and just couldn't get it to work on my site...your code makes it simple to work on any site and adjust many things with little php knowledge! Great Job!
Feel free to check it out...I even made my own map background to brighten things up! The others won't let ya do that![]()
Hey, just wanted to thank you for the guestmap script. It was just what I needed. It's awesome and a half!!![]()
Sweet script bro, easy to install and it runs like a champ! Great work my friend
Thanks a million!
Here is an idea.....how about an RSS feed for the map? Then I wouldn't have ot constantly check ot see if anyone new had posted. Seems like it would be pretty easy to do. I could ALMOST do it myself - I'm a Java code-monkey but have played around with PHP a little.
Brian
http://mostlytrivial.com
Another idea or two:
I want *MY* icon for my location to stand out more than the others. I think I figured out how to do it. If I set my id in the DB to be high, I will always be on top of the other icons and if I change my icon id to be....say 1000 and put a special icon/marker for myself in the icons directory as 1000.gif, that will be a unique icon that will stand out.
I was thinking maybe a pulsating red X. Gonna give that a try tonight and see if it works - i think it will.
It would be cool if that was a feature of hte package itself that as the admin you could put YOUR icon in as special one. maybe he admin package does this? I haven't installed it.
Brian
http://mostlytrivial.com
The script rocks. I like the single DB wit multiple maps. However the admin page works but doesnt seem to retreive any info. Its just blank. Is this what you meant by "Some dont work on certain PHP servers" Or is there an answer for the one Im having? Thanks!
On the message page is where I put your butterflies.
It's a memorial page, and a very moving touch to the site. Well well recieved by many.
Would like to know what the common admin not working is, due to I have same issue as Travis, I can log in, but it doesn't transfer the information from the data base, and maps. shows them, but no information.
This would be perfection if I could figure out the admin part.
Thanks
Gee Gee
I THINK I got the problem with the Admin-Page
It's your Page-Count. I altered Page-Count to one I use from Powie's Article-Script (www.powie.de) and it works fine!
This ist the incorrect line:
//set default page
$page = 0;
If your $page is "0" your $limit_start will be "-50": (0-1)*50 = -50
Better set $page = 1
That might work, although I changed the pagecount completely and did not test this
Anyway: Great Script![]()
hi!
my guestmap is still not working. i
already add my database name, table name and password to db.inc.php but it prompts an error message telling me to add the table to the database another way. how am going to do that? please help!
thanks!
Joel
Are you sure you created the exact places on the hosting server? Does the hosting server on your site, put banners at the top? Have you tried a different host? I've had a lot of problems with mine, but eventually got it to work. (www.eliteinsta.com/guestmap.html) The first server gave me that error everytime, I never did get it to work there. That place was messed up. The second place I went too, worked at first, but then the host added banners on the top. That broke it, and it never worked there again. I'm on to my 3rd server now, and it works great. No adds, and it's FREE. You might try there, it's worked great for guestmaps for me, but I'm having trouble with the forum. http://www.sebszhost.com/
Hey Sunny YOUR RIGHT. I've never EVER been able to get that admin to work, though I really wanted it. Changing it to 1 did the trick. The only thing is you forgot to say where to change it, so I had to dig to find it's in the "manage.php" file.
![]()
I just wrote up some instuctions for using a custom icon for YOUR location in the map, how to keep YOUR icon on top, nad how to disable fading. (Thanks to the author of CGM2 for the help).
Brian
DOH! I forgot the link!
http://myvogonpoetry.com/wp/index.php?p=44
Hi,
Well, I have an error during installation "Error executing the query in file "guestmap.sql", try adding the table to the database another way!". I am 100% sure that I meet MSQL and PHP requirements, but I have change the table's name from guestmap2 to guestmap. Even when I had the correct table name, I still got the error. Any ideas??
To "add the database another way", use PhpMyAdmin (admin tool from your web host) ... choose "SQL" ... then "import file" ... browse your computer for "guestmap2.sql" ... then "Go" ... this will create the table for you ... I have yet to see "install.php" work.
Also, I tried to install it on a webhost that has banner ads across the top and it just doesn't work.
It works fine on web hosts with no banner ads.
![]()
I have some feedback/ideas:
(a) How about a theme designer? or a section on how to design your own themes?
(b) Here's an idea that I have ... picture this ... an empty baseball stadium ... guests can fill the seats.
![]()
Note:
I found that when putting this in an iFrame, you must make the iFrame size 2 pixels larger in each direction than the guestmap, otherwise you get double scrollbars. ;-)
Its a great script, but I encountered a few problems with WinXP IE6 SP2. All users with this configuration placed their icons a few hundred pixels more to the bottom.
I solved this problem replacing a a few commands in the function ShowMousePosition. I simply replaced posx and posy with this:
posX=window.event.x+document.documentElement.offsetLeft;
posY=window.event.y+document.documentElement.offsetTop;
the objects used before were only valid with IE 5
i dnt no how 2 change da database setting n how 2 place it on my website!!^3^
thx
Comments are disabled until furter notice because of huge amounts of spam being placed here.
