I can claim absolutely no credit for this bit of code, its all courtesy wubbahed.com. All I’m doing here is displaying the code for you to copy and paste.

This bit of code will display your geotagged flickr photos on a google map. I use this in the sidebar of one of my blogs.

You will need your own API key. Get yours here.

The geoFeed can be found at the bottom of your flickr page .

Once you have this information replace the sections in bold.

<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA-W9uqIa2PP530F8zDw7ifhTU7ZIBfnHw4wAfJHH0RagnnLKqYRRMSJ_Im0zVLMtCE6XFGDom2iMmrA" type="text/javascript"></script>

<script type="text/javascript">
var map;
var geoXml = new GGeoXml("http://api.flickr.com/services/feeds/geo/?id=38083777@N08&lang=en-us&format=rss_200");
function loadMap() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(51.26835954379726, 1.1254119873046875), 10);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.addOverlay(geoXml);
}
}
</script>
<div id="map" style="width: 300px; height: 500px"></div>
<script type="text/javascript">setTimeout("loadMap()", 1);</script>

There is another way of doing it, simple go to maps.google.com and paste the georss feed url into the search box and click search, you can then embed it using an iframe. I couldn’t use this method on my other site because of some weird bug with adbrite!




To set up the cron job for wp-o-matic, you need to login to your cpanel and select the cron jobs option.

Select standard as your experience level.

The code wp-o-matic gives you looks like the following:
*/20 * * * * /usr/bin/curl http://www.blah.com/blog/wp-content/plugins/wp-o-matic/cron.php?code=xxxxx

You only need the http://www.blah.com/blog/wp-content/plugins/wp-o-matic/cron.php?code=xxxxx part. Paste that into the command to run field and select how many minutes/hours/days you wish it to run, then click save.

When you go to add another cron job the wp-o-matic job should have been saved and appear as “entry 1″ in the Cron Manager.




If your installing Drupal (even on localhost) if you get stuck on the Database Configuration page open ./sites/default/settings.php and change the $db_url variable to your database settings.

Depending on the type of database your using this is what your variable will look like.
$db_url = ‘mysql://username:password@localhost/databasename’;
$db_url = ‘mysqli://username:password@localhost/databasename’;
$db_url = ‘pgsql://username:password@localhost/databasename’;

In the case of my localhost install that line would be:
$db_url = ‘mysql://root:root@localhost/drupal’;

Drupal being the name of my database. Username and password are always root with mamp.





Free Wordpress Themes

Simple and easy to adjust for your needs.

How to:

Write your own wordpress theme. Everything you need to know.
The Real Me
If you wish to know more about the real Nnax, then please .

Don't worry, all the goodies are public!

Already registered? Log in
Categories
Recent Comments

Naina: p.s. i see that you have a login form for your private ‘real me’ posts. how do i enable this on my...

Naina: hi there! theres no option to import XML files now. so do you know a way that i could import posts from LJ...

Free Web Templates: Thanks! Deleted the extra cron code and cPanel accepted it. Now am off to play with wp-o-matic.

OBeePRFans: Hey Thanks! But I Want To Know, How Can You Write On The Below? You Know!, Like Copyright Info,...

Dan: Thanks for helping me solve this annoying problem!

Popular Posts
Subscribe
 RSS Feed

Or via email:


Follow eruANNA