Location: PHPKode > scripts > GeoURL Site Lookup > geourl-site-lookup/block-Parse_geoUrl_README.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>block-Parse_geoUrl README</title>
</head>

<body>
<h2>block-Parse_geoUrl v1.0</h2>
<h3>by Jon Roig</h3>
<p> email: <a href="mailto:hide@address.com">hide@address.com</a><br>
website: <a href="http://jonroig.com">www.jonroig.com</a><br>
demo url: <a href="http://www.inphidelphia.com">www.inphidelphia.com</a>
</p>

<h4>What does it do?</h4>
<p><b>block-Parse_geoUrl</b> is a block for phpnuke that allows you to display the closest
sites to you, geographically speaking. Although it has only been tested with Phpnuke 6.0 so far,
presumably, it'll work with most of the newer versions out there.</p>

<h4>How does one set it up</h4>
<ol>
	<li> Get your site registered at <a href="http://www.geourl.org/">geourl.org</a>. You'll have to add the appropriate
	meta tags and whanot -- I did it by adding them to my includes/my_header.php file, but you can also add 'em to your includes/meta.php file.
	Either way works equally well.
	<li> Copy block-Parse_geoUrl.php into your blocks folder. You'll have to do some quick editing, and you have
	a number of options available without digging into the code:
	<ul>
		<li> <b>$geoConfig[lat]</b> and <b>$geoConfig[lon]</b>: Pretty self explanatory -- it's your site's
		physical lattitude and longitude, which should match your geocode coordinates.
		<li> <b>$geoConfig[mode]</b>: You get two choices, radius or top. Radius allows you to display all
		the sites withing X number of miles, while top displays the X closest sites.
		<li> <b>$geoCongig[number]</b>: What is X above? Set it here....
		<li> <b>$geoConfig[cachelength]</b>: Be nice to the geourl.org server. Setting the cache to 60 or above
		will reduce wear and tear on their server.
		<li> <b>$geoConfig[show_map]</b>: Do you want the have your site name display a map when a user
		clicks on it? Yes or No, please.
	
	</ul>
	<li> That's it, you should be ready to go once you add the block in phpnuke's admin area.
</ol>

<h4>Troubleshooting</h4>
<ul>
<li> If you get a weird XML extension warning, then you don't have it installed. I can't help you with this -- talk to your hosting provider.
<li> If you see a "Unable to parse RSS feed" error, it's probably a permissions problem. Chmod your blocks folder to 777.
</ul>

<h4>Acknowledgements</h4>
<p>Thanks to Joshua Schachter, who created the <a href="http://www.geourl.org">geourl.org</a> site/service. Pretty simple, clever idea.... also, this
block uses Edward Swindelles' RSS parsing code. What can I say? I didn't want to write my own
and Ed's code did exactly what I needed.
</p>
</body>
</html>
Return current item: GeoURL Site Lookup