<link type="text/css" rel="stylesheet" href="http://www.expandingweb.com/blog/wp-content/plugins/sharelink/sharelink.css" />
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Expanding works</title>
	<atom:link href="http://www.blog.expandingweb.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.blog.expandingweb.com</link>
	<description>What developers do...</description>
	<lastBuildDate>Tue, 10 May 2011 15:55:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Hello World;)</title>
		<link>http://www.blog.expandingweb.com/?p=76&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hello-world-2</link>
		<comments>http://www.blog.expandingweb.com/?p=76#comments</comments>
		<pubDate>Mon, 07 Mar 2011 14:41:36 +0000</pubDate>
		<dc:creator>Pawiksd</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.blog.expandingweb.com/?p=76</guid>
		<description><![CDATA[All articles that you can find here We wrote for our customers or for us selfs. We using this blog as future data base for quick and clean solutions for common problems. Feel free to give us your opinion. I hope that is useful for you as well. Thanks]]></description>
			<content:encoded><![CDATA[<p>All articles that you can find here We wrote for our customers or for us selfs. We using this blog as future data base for quick and clean solutions for common problems.</p>
<p>Feel free to give us your opinion.</p>
<p>I hope that is useful for you as well.</p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.expandingweb.com/?feed=rss2&#038;p=76</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Googlemaps plugin &#8211; multiple markers</title>
		<link>http://www.blog.expandingweb.com/?p=38&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=google-maps-plugin</link>
		<comments>http://www.blog.expandingweb.com/?p=38#comments</comments>
		<pubDate>Mon, 07 Mar 2011 10:45:06 +0000</pubDate>
		<dc:creator>Pawiksd</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[google map]]></category>
		<category><![CDATA[googlemap plugin]]></category>
		<category><![CDATA[joomla 1.5]]></category>
		<category><![CDATA[marker]]></category>
		<category><![CDATA[multi]]></category>
		<category><![CDATA[multi marker]]></category>

		<guid isPermaLink="false">http://www.blog.expandingweb.com/?p=38</guid>
		<description><![CDATA[Here is a way to modify free Googlemaps Plugin to draw multiple markers on your joomla site (joomla 1.5). First of all you need to get your plugin. You can find it here. Now install and active. &#160; Fun will begin from this point:) Usage of plugin: {mosmap address='151 London Road, Edinburgh, UK'&#124;icon='http://tech.reumer.net/images/demo.png'} For more examples of [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a way to modify free <a href="http://extensions.joomla.org/extensions/maps-a-weather/maps-a-locations/maps/1147">Googlemaps Plugin</a> to draw multiple markers on your joomla site (joomla 1.5).</p>
<p>First of all you need to get your plugin. You can find it <a title="Google maps plugin" href="http://joomlacode.org/gf/download/frsrelease/14053/60983/plugin_googlemap_J15.2.13a.zip">here</a>. Now install and active.</p>
<p>&nbsp;</p>
<p>Fun will begin from this point:)</p>
<p>Usage of plugin:</p>
<address>{mosmap address='151 London Road, Edinburgh, UK'|icon='http://tech.reumer.net/images/demo.png'} </address>
<p>For more examples of how to use Googlemaps plugin visit <a title="Reumer Tech" href="http://tech.reumer.net/" target="_blank">developer's site</a>.</p>
<p>Using basic version of plugin we can past only one address, description and image. My task was rewrite code to enable passing multiple addresses, descriptions and images for one map. What I'm trying to achieve is:</p>
<address>{mosmap address[0]='151 London Road, Edinburgh, UK'|txt[0]='Our office'|pic[0]='http://www.expandingweb.com/blog/wp-content/uploads/2010/07/favicon_3.jpg'|address[1]='42 Roseburn Street, Edinburgh, UK'|txt[1]='Description of place'| pic[1]='http://www.expandingweb.com/blog/wp-content/uploads/2010/07/favicon_3.jpg'}</address>
<p>&nbsp;</p>
<p>We need to find files which is responsible for reading arguments and drawing map. Fortunately there is only one file that we need to edit:)</p>
<p>It's  "your_site/plugins/system/plugin_googlemap2.php":<br />
378
<pre class="php"><ol start="378"><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/ Parameters can get the <span style="color: #000000; font-weight: bold;">default</span> from the plugin <span style="color: #b1b100;">if</span> not <a href="http://www.php.net/empty"><span style="color: #000066;">empty</span></a> or from the administrator part of the plugin</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$width</span> = <span style="color: #0000ff;">$this</span>-&amp;gt;params-&amp;gt;get<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'width'</span>, <span style="color: #ff0000;">'100%'</span> <span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$height</span> = <span style="color: #0000ff;">$this</span>-&amp;gt;params-&amp;gt;get<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'height'</span>, <span style="color: #ff0000;">'400px'</span> <span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$deflatitude</span> = <span style="color: #0000ff;">$this</span>-&amp;gt;params-&amp;gt;get<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'lat'</span>, <span style="color: #ff0000;">'52.075581'</span> <span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$deflongitude</span> = <span style="color: #0000ff;">$this</span>-&amp;gt;params-&amp;gt;get<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'lon'</span>, <span style="color: #ff0000;">'4.541513'</span> <span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$centerlat</span> = <span style="color: #0000ff;">$this</span>-&amp;gt;params-&amp;gt;get<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'centerlat'</span>, <span style="color: #ff0000;">''</span> <span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$centerlon</span> = <span style="color: #0000ff;">$this</span>-&amp;gt;params-&amp;gt;get<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'centerlon'</span>, <span style="color: #ff0000;">''</span> <span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//$address = $this-&amp;gt;params-&amp;gt;get( 'address', '' );</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$zoom</span> = <span style="color: #0000ff;">$this</span>-&amp;gt;params-&amp;gt;get<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'zoom'</span>, <span style="color: #ff0000;">'10'</span> <span style="color: #66cc66;">&#41;</span>;</div></li></ol></pre>
<p>Comment line which contains address declaration. It takes $address value from back end panel.</p>
<p>Now it needs to be declared the way we want ( as array). Go to line 523 and add those lines:</p>
<pre class="php"><span style="color: #0000ff;">$address</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$image</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$message</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>so you'll receive something like this:<br />
514
<pre class="php"><ol start="514"><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">// default empty and should be filled as a parameter with the plugin out of the content item</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$code</span>=<span style="color: #ff0000;">''</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$lbcode</span>=<span style="color: #ff0000;">''</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$lang</span> = <span style="color: #0000ff;">$this</span>-&amp;gt;language;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$mapclass</span>=<span style="color: #ff0000;">''</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$tolat</span>=<span style="color: #ff0000;">''</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$tolon</span>=<span style="color: #ff0000;">''</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$toaddress</span>=<span style="color: #ff0000;">''</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$description</span>=<span style="color: #ff0000;">''</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$tooltip</span>=<span style="color: #ff0000;">''</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$address</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$image</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$message</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$kml</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$kmlsb</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$layer</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$lookat</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$camera</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div></li></ol></pre>
<p>&nbsp;</p>
<p>Next step will be read values for our variables. We need to put some extra code for read values and insert them into array.</p>
<p>We'll begin our coding around line 690. Try to find </p>
<pre lang=php">else if($values[0]=='lang'){
$lang=$values[1];
}</pre>
<p>and after it place this code:</p>
<pre class="php"><span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>==<span style="color: #ff0000;">'address'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$address</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>=<a href="http://www.php.net/trim"><span style="color: #000066;">trim</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">brackets</span>==<span style="color: #ff0000;">'both'</span>||<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">brackets</span>==<span style="color: #ff0000;">'['</span><span style="color: #66cc66;">&#41;</span>&amp;&amp;preg_match<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/address<span style="color: #000099; font-weight: bold;">\(</span>[0-9]+<span style="color: #000099; font-weight: bold;">\)</span>/&quot;</span>, <span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$address</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$this</span>-&gt;_get_index<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>, <span style="color: #ff0000;">'('</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/trim"><span style="color: #000066;">trim</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">brackets</span>==<span style="color: #ff0000;">'both'</span>||<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">brackets</span>==<span style="color: #ff0000;">'{'</span><span style="color: #66cc66;">&#41;</span>&amp;&amp;preg_match<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/address<span style="color: #000099; font-weight: bold;">\[</span>[0-9]+<span style="color: #000099; font-weight: bold;">\]</span>/&quot;</span>, <span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$address</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$this</span>-&gt;_get_index<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>, <span style="color: #ff0000;">'['</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/trim"><span style="color: #000066;">trim</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>==<span style="color: #ff0000;">'pic'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$image</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>=<a href="http://www.php.net/trim"><span style="color: #000066;">trim</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">brackets</span>==<span style="color: #ff0000;">'both'</span>||<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">brackets</span>==<span style="color: #ff0000;">'['</span><span style="color: #66cc66;">&#41;</span>&amp;&amp;preg_match<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/pic<span style="color: #000099; font-weight: bold;">\(</span>[0-9]+<span style="color: #000099; font-weight: bold;">\)</span>/&quot;</span>, <span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$image</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$this</span>-&gt;_get_index<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>, <span style="color: #ff0000;">'('</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/trim"><span style="color: #000066;">trim</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">brackets</span>==<span style="color: #ff0000;">'both'</span>||<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">brackets</span>==<span style="color: #ff0000;">'{'</span><span style="color: #66cc66;">&#41;</span>&amp;&amp;preg_match<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/pic<span style="color: #000099; font-weight: bold;">\[</span>[0-9]+<span style="color: #000099; font-weight: bold;">\]</span>/&quot;</span>, <span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$image</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$this</span>-&gt;_get_index<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>, <span style="color: #ff0000;">'['</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/trim"><span style="color: #000066;">trim</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>==<span style="color: #ff0000;">'message'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$message</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>=<a href="http://www.php.net/trim"><span style="color: #000066;">trim</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">brackets</span>==<span style="color: #ff0000;">'both'</span>||<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">brackets</span>==<span style="color: #ff0000;">'['</span><span style="color: #66cc66;">&#41;</span>&amp;&amp;preg_match<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/txt<span style="color: #000099; font-weight: bold;">\(</span>[0-9]+<span style="color: #000099; font-weight: bold;">\)</span>/&quot;</span>, <span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$message</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$this</span>-&gt;_get_index<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>, <span style="color: #ff0000;">'('</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/trim"><span style="color: #000066;">trim</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">brackets</span>==<span style="color: #ff0000;">'both'</span>||<span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">brackets</span>==<span style="color: #ff0000;">'{'</span><span style="color: #66cc66;">&#41;</span>&amp;&amp;preg_match<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/txt<span style="color: #000099; font-weight: bold;">\[</span>[0-9]+<span style="color: #000099; font-weight: bold;">\]</span>/&quot;</span>, <span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$message</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$this</span>-&gt;_get_index<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>, <span style="color: #ff0000;">'['</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span> = <a href="http://www.php.net/trim"><span style="color: #000066;">trim</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>This will allocate values defined in your {mosmap } into appropriate array. Now addresses values are in address array, txt values are in message array and pic values are in pic array. Now we need to build a marker for each one address and place our values over there. </p>
<p>We need to do some alternations to one statement. It's near 1900 line. </p>
<pre class="php"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$client_geo</span> == <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$clientgeotype</span>==<span style="color: #ff0000;">&quot;local&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>var localSearch = new GlocalSearch();&quot;</span>;
	<span style="color: #0000ff;">$replace</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>, <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>&quot;</span>, <span style="color: #ff0000;">&quot;&amp;lt;br/&amp;gt;&quot;</span>, <span style="color: #ff0000;">&quot;&amp;lt;br /&amp;gt;&quot;</span>, <span style="color: #ff0000;">&quot;&amp;lt;br&amp;gt;&quot;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0000ff;">$addr</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$replace</span>, <span style="color: #ff0000;">''</span>, <span style="color: #0000ff;">$address</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>var address = <span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span>.<span style="color: #0000ff;">$addr</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>;&quot;</span>;
	<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>localSearch.setSearchCompleteCallback(null,	function() {
			if (localSearch.results[0]) {
			var resultLat = localSearch.results[0].lat;
			var resultLng = localSearch.results[0].lng;
			var point = new GLatLng(resultLat,resultLng);
			} else &quot;</span>;
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$latitude</span> !=<span style="color: #ff0000;">''</span>&amp;&amp;<span style="color: #0000ff;">$longitude</span>!=<span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;var point = new GLatLng( $latitude, $longitude);&quot;</span>;
	<span style="color: #b1b100;">else</span>
		<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;var point = new GLatLng( $deflatitude, $deflongitude);&quot;</span>;
	<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;var geocoder = new GClientGeocoder();&quot;</span>;
		<span style="color: #0000ff;">$replace</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>, <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>&quot;</span>, <span style="color: #ff0000;">&quot;&amp;lt;br/&amp;gt;&quot;</span>, <span style="color: #ff0000;">&quot;&amp;lt;br /&amp;gt;&quot;</span>, <span style="color: #ff0000;">&quot;&amp;lt;br&amp;gt;&quot;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0000ff;">$addr</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$replace</span>, <span style="color: #ff0000;">''</span>, <span style="color: #0000ff;">$address</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;var address = <span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span>.<span style="color: #0000ff;">$addr</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>;&quot;</span>;
		<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;geocoder.getLatLng(address, function(point) {
			    if (!point)&quot;</span>;
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$latitude</span> !=<span style="color: #ff0000;">''</span>&amp;&amp;<span style="color: #0000ff;">$longitude</span>!=<span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;var point = new GLatLng( $latitude, $longitude);&quot;</span>;
		<span style="color: #b1b100;">else</span>
			<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;var point = new GLatLng( $deflatitude, $deflongitude);&quot;</span>;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #808080; font-style: italic;">//we'll add our code here</span>
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$latitude</span> !=<span style="color: #ff0000;">''</span>&amp;&amp;<span style="color: #0000ff;">$longitude</span>!=<span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>var point = new GLatLng( $latitude, $longitude);&quot;</span>;
	<span style="color: #b1b100;">else</span>
		<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>var point = new GLatLng( $deflatitude, $deflongitude);&quot;</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>Delete everything inside else block and paste this code:</p>
<pre class="php"><span style="color: #0000ff;">$i</span> = <span style="color: #cc66cc;">0</span>;
<span style="color: #b1b100;">foreach</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$address</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$ind</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>			
&nbsp;
	<span style="color: #808080; font-style: italic;">//search for the address</span>
	<span style="color: #0000ff;">$coord</span> = <span style="color: #0000ff;">$this</span>-&gt;<span style="color: #006600;">get_geo</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$ind</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #808080; font-style: italic;">//get directions</span>
	<a href="http://www.php.net/list"><span style="color: #000066;">list</span></a> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$longitude</span>, <span style="color: #0000ff;">$latitude</span>, <span style="color: #0000ff;">$altitude</span><span style="color: #66cc66;">&#41;</span> = <a href="http://www.php.net/explode"><span style="color: #000066;">explode</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;,&quot;</span>, <span style="color: #0000ff;">$coord</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>var point = new GLatLng( $latitude, $longitude);&quot;</span>;
        <span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>var mess = <span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span>.<span style="color: #0000ff;">$message</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>;&quot;</span>;
	<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>var img = <span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span>.<span style="color: #0000ff;">$image</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$i</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>;&quot;</span>;
	<span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;map&quot;</span>.<span style="color: #0000ff;">$mapnm</span>.<span style="color: #ff0000;">&quot;.addOverlay(createMarker(point, mess, img));&quot;</span>;
	<span style="color: #0000ff;">$i</span>++;
<span style="color: #66cc66;">&#125;</span></pre>
<p>To see our markers we've to create our own function. I've called it createMarker(), parameters that we past to it are point ( location of our address), message (description ) and img(image for that place). Try to find the line in your plugin file: </p>
<pre class="php"><ol start="1396"><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;&lt;script type='text/javascript'&gt;//&lt;![CDATA[<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</div></li></ol></pre>
<p>Then add following script:</p>
<pre class="php"><ol start="1397"><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$code</span>.=<span style="color: #ff0000;">&quot;	function createMarker(point, message, img) {</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">// Create our tiny marker icon</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">var SailIcon = new GIcon(G_DEFAULT_ICON);</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">// Set up our GMarkerOptions object</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">markerOptions = { icon:SailIcon };</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">var marker = new GMarker(point, markerOptions );</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">GEvent.addListener(marker, 'click', function() {</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">var myHtml = '&lt;img src='+img+</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">' style=<span style="color: #000099; font-weight: bold;">\'</span>height: 75px;position: relative; float: left<span style="color: #000099; font-weight: bold;">\'</span>/&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;div style=<span style="color: #000099; font-weight: bold;">\'</span>position: relative; float: left; margin: 0 10px;<span style="color: #000099; font-weight: bold;">\'</span>&gt;'+message+ '&lt;/div&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">';</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">map&quot;</span>.<span style="color: #0000ff;">$mapnm</span>.<span style="color: #ff0000;">&quot;.openInfoWindowHtml(point, myHtml);</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">});</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">return marker;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">}&quot;</span>;</div></li></ol></pre>
<p>Now you can try our upgraded plugin:)</p>
<p>Please be lenient for my spellings and grammar. I'm waiting for your opinions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.expandingweb.com/?feed=rss2&#038;p=38</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>How to change Favicon Joomla 1.5</title>
		<link>http://www.blog.expandingweb.com/?p=24&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-change-favicon-joomla-1-5</link>
		<comments>http://www.blog.expandingweb.com/?p=24#comments</comments>
		<pubDate>Thu, 15 Jul 2010 14:48:36 +0000</pubDate>
		<dc:creator>Pawiksd</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[favicon]]></category>
		<category><![CDATA[favicon joomla]]></category>
		<category><![CDATA[hacking joomla]]></category>
		<category><![CDATA[how to change favicon joomla]]></category>
		<category><![CDATA[icon]]></category>

		<guid isPermaLink="false">http://www.blog.expandingweb.com/?p=24</guid>
		<description><![CDATA[That cosmetic change can be easily made in couple minutes. First way (simple one) to do that is swapping an existing icon file to one that you chosen. You can find favicon file in: "YOUR_SITE/templates/YOUR_TEMPLATE/" Upload your "favicon.ico" file to that directory and overwrite the old icon file. Second way ( advenced) to do that is [...]]]></description>
			<content:encoded><![CDATA[<p>That cosmetic change can be easily made in couple minutes.</p>
<p>First way (simple one) to do that is swapping an existing icon file to one that you chosen.  You can find favicon file in:</p>
<address style="text-align: center;">"YOUR_SITE/templates/YOUR_TEMPLATE/"</address>
<p>Upload your "favicon.ico" file to that directory and overwrite the old icon file.</p>
<p>Second way ( advenced) to do that is editing</p>
<address style="text-align: center;">"YOUR_SITE//libraries/joomla/document/html/html.php"</address>
<p>In html.php at line 343 you should find code like this:</p>
<p><code><span style="color: #339966;"> // Try to find a favicon by checking the template and root folder</span><br />
<span style="color: #3366ff;"> $path = $directory . DS;<br />
$dirs = array( $path, JPATH_BASE . DS );<br />
foreach ($dirs as $dir )<br />
{<br />
$icon =   $dir . '<span style="color: #ff0000;"><span style="text-decoration: underline;">favicon.ico</span></span>';<br />
if (file_exists( $icon ))<br />
{<br />
$path = str_replace( JPATH_BASE . DS, '', $dir );<br />
$path = str_replace( '\\', '/', $path );<br />
$this-&gt;addFavicon( JURI::base(true).'/'.$path . '<span style="color: #ff0000;"><span style="text-decoration: underline;">favicon.ico</span></span>' );<br />
break;<br />
}<br />
}</span><br />
</code></p>
<p>Reaplece "favicon.ico" with your file. It can be any type of file for example: icon.jpg, image.gif. Don't forget to upload your new file to the directory:</p>
<address style="text-align: center;">"YOUR_SITE/templates/YOUR_TEMPLATE/"</address>
<p>That's it:)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.expandingweb.com/?feed=rss2&#038;p=24</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>WordPress Website Icon</title>
		<link>http://www.blog.expandingweb.com/?p=4&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-website-icon</link>
		<comments>http://www.blog.expandingweb.com/?p=4#comments</comments>
		<pubDate>Tue, 13 Jul 2010 13:34:22 +0000</pubDate>
		<dc:creator>Pawiksd</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[change icon]]></category>
		<category><![CDATA[favicon wordpress]]></category>
		<category><![CDATA[make icon]]></category>
		<category><![CDATA[wordpress favicon]]></category>

		<guid isPermaLink="false">http://www.expandingweb.com/blog/?p=4</guid>
		<description><![CDATA[Hello As first post something useful and easy to do. We're going to change favicon of our blog. If you already have image you want to use as an icon make sure it is square for example: 128 x 128 px. Files' extension doesn't need to be *.ico, that will works with *.jpg and *.gif as [...]]]></description>
			<content:encoded><![CDATA[<p>Hello</p>
<p>As first post something useful and easy to do. We're going to change favicon of our blog.</p>
<div style="text-align: center;"><img class="size-full wp-image-10 aligncenter" title="favicon" src="http://www.expandingweb.com/blog/wp-content/uploads/2010/07/favicon_3.jpg" alt="" width="72" height="72" /></div>
<p style="text-align: center;">
<p style="text-align: center;">
<p>If you already have image you want to use as an icon make sure it is square for example: 128 x 128 px. Files' extension doesn't need to be *.ico, that will works with *.jpg and *.gif as well.</p>
<p>If you don't have your icon you can easily make one on:</p>
<p><a href="http://www.rw-designer.com/online_icon_maker.php">http://www.rw-designer.com/online_icon_maker.php</a>.</p>
<p><em><br />
</em></p>
<p>Upload your favicon file to yours blog root directory. Next you need to edit header.php file of your template. You'll find it in "/wp-content/themes/YOUR_THEME/header.php". Simply put this code  into header.php:</p>
<p style="text-align: center;"><code>&lt;link rel="shortcut icon" href="YOUR_ICON" /&gt;</code></p>
<p style="text-align: left;">
<p style="text-align: left;"><em><span style="font-style: normal;">Save changes and it's done:)</span></em></p>
<p style="text-align: left;"><em><span style="font-style: normal;"><br />
</span></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.expandingweb.com/?feed=rss2&#038;p=4</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

