<div>Hi Rajat,</div><div><br></div><div>You can use this in node.tpl.php and page-node.tpl.php files:</div><div><br></div><div>&lt;?php echo url(&#39;node/&#39;. $node-&gt;nid, array(&#39;absolute&#39; =&gt; TRUE)); ?&gt;<br>
</div><div><br></div><div>This prints out the url of the node in absolute form (beginning with http:)</div><div><br></div><div>Bests,</div><div>Aries</div><div><br></div><div class="gmail_quote">2011/1/20 Rajat Arora <span dir="ltr">&lt;<a href="mailto:arora271@yahoo.com">arora271@yahoo.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-family:&#39;times new roman&#39;, &#39;new york&#39;, times, serif;font-size:12pt;color:#000000">
<div style="color:rgb(0, 0, 0);font-family:&#39;times new roman&#39;, &#39;new york&#39;, times, serif;font-size:12pt">Hi List, </div><div style="color:rgb(0, 0, 0);font-family:&#39;times new roman&#39;, &#39;new york&#39;, times, serif;font-size:12pt">
<br></div><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3">I am facing an issue with the implementation of </font><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Facebook</font><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3"> like button on my website. </font><span style="font-family:&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Here is quick summary of Issue:</span></div>
<div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3"><br></font></div><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">The like button is inserted for different pages which are shown after making a filter search on website. The problem is that, the like button increase the count for whole website instead of that particular page where the &quot;like&quot; button is pressed. It </font><span style="font-family:&#39;Times New Roman&#39;, serif;font-size:16px">is always counting the likes for the server “<a href="http://abc.com" target="_blank">abc.com</a>” instead of calculating for different pages where the like button is pressed. </span></div>
<div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><br></font></div><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Here is the code snippet used for implementation:</font></div>
<div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"> </span></p>

<p><b><u><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">Code: </span></u></b></p>

<p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"> </span></p>

<p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&lt;div
class=&quot;facebook_button&quot;&gt;</span></p>

<p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span> </span>{php}</span></p>

<p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span> </span>function fetch_url() {</span></p>

<p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><span> </span><span>$curURL=&quot;<a href="http://%22.$_SERVER%5B" target="_blank">http://&quot;.$_SERVER[&#39;HTTP_HOST&#39;].$_SERVER[&#39;REQUEST_URI</a>&#39;];</span></span></p>


<p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">return
$curURL;</span></p>

<p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">}</span></p>

<p><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">{/php}</span></p>

<p> </p>

<p><span style="font-size:10.0pt;line-height:115%;font-family:&quot;Courier New&quot;;color:teal">&lt;</span><span style="font-size:10.0pt;line-height:115%;font-family:&quot;Courier New&quot;;color:#3F7F7F">iframe</span><span style="font-size:10.0pt;line-height:115%;font-family:&quot;Courier New&quot;"> <span style="color:#7F007F">src</span><span style="color:black">=</span><i><span style="color:#2A00FF"><span>&quot;<a href="http://www.facebook.com/plugins/like.php?href=%7Bphp" target="_blank">http://www.facebook.com/plugins/like.php?href={php</a>}
echo urlencode(fetch_url()); {/php}&amp;layout=button_count&amp;show_faces=true&amp;width=110&amp;action=like&amp;colorscheme=light&amp;height=20&amp;locale=de_DE&quot;</span></span></i>
<span style="color:#7F007F">scrolling</span><span style="color:black">=</span><i><span style="color:#2A00FF">&quot;no&quot;</span></i> <span style="color:#7F007F">frameborder</span><span style="color:black">=</span><i><span style="color:#2A00FF">&quot;0&quot;</span></i>
<span style="color:#7F007F">style</span><span style="color:black">=&quot;</span><span style="color:#7F007F">border</span><span style="color:black">:</span><i><span style="color:#2A00E1">none</span></i><span style="color:black">; </span><span style="color:#7F007F">overflow</span><span style="color:black">:</span><i><span style="color:#2A00E1">hidden</span></i><span style="color:black">; </span><span style="color:#7F007F">width</span><span style="color:black">:</span><i><span style="color:#2A00E1">110px</span></i><span style="color:black">; </span><span style="color:#7F007F">height</span><span style="color:black">:</span><i><span style="color:#2A00E1">20px</span></i><span style="color:black">;&quot; </span><span style="color:#7F007F">allowTransparency</span><span style="color:black">=</span><i><span style="color:#2A00FF">&quot;true&quot;</span></i><span style="color:teal">&gt;&lt;/</span><span style="color:#3F7F7F">iframe</span><span style="color:teal">&gt;</span></span></p>
</font></div><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"> </font></div><div><p style="color:rgb(0, 0, 0);font-size:12pt"><font face="&#39;Times New Roman&#39;, serif"><br></font></p><div>
<font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3"><i>I don&#39;t know if anyone faces this issue before, but i cannot find anything relevant in the older posts.  </i></font></div><div style="color:rgb(0, 0, 0);font-size:12pt;font-family:&#39;times new roman&#39;, &#39;new york&#39;, times, serif;font-style:italic">
<br></div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif" size="3"><i>Best Regards,</i></font></div><p style="font-family:&#39;times new roman&#39;, &#39;new york&#39;, times, serif;font-style:italic;color:rgb(0, 0, 0);font-size:12pt">
Rajat
 Arora</p><div style="color:rgb(0, 0, 0);font-family:&#39;times new roman&#39;, &#39;new york&#39;, times, serif;font-size:12pt"><br></div>


</div></div></blockquote></div><br>