<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><?php echo url('node/'. $node->nid, array('absolute' => TRUE)); ?><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"><<a href="mailto:arora271@yahoo.com">arora271@yahoo.com</a>></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:'times new roman', 'new york', times, serif;font-size:12pt;color:#000000">
<div style="color:rgb(0, 0, 0);font-family:'times new roman', 'new york', times, serif;font-size:12pt">Hi List, </div><div style="color:rgb(0, 0, 0);font-family:'times new roman', 'new york', times, serif;font-size:12pt">
<br></div><div><font face="'times new roman', 'new york', times, serif" size="3">I am facing an issue with the implementation of </font><font face="'times new roman', 'new york', times, serif">Facebook</font><font face="'times new roman', 'new york', times, serif" size="3"> like button on my website. </font><span style="font-family:'times new roman', 'new york', times, serif">Here is quick summary of Issue:</span></div>
<div><font face="'times new roman', 'new york', times, serif" size="3"><br></font></div><div><font face="'times new roman', 'new york', 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 "like" button is pressed. It </font><span style="font-family:'Times New Roman', 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="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">Here is the code snippet used for implementation:</font></div>
<div><font face="'times new roman', 'new york', times, serif"><p><span style="font-family:"Times New Roman","serif""> </span></p>
<p><b><u><span style="font-family:"Times New Roman","serif"">Code: </span></u></b></p>
<p><span style="font-family:"Times New Roman","serif""> </span></p>
<p><span style="font-family:"Times New Roman","serif""><div
class="facebook_button"></span></p>
<p><span style="font-family:"Times New Roman","serif""><span> </span>{php}</span></p>
<p><span style="font-family:"Times New Roman","serif""><span> </span>function fetch_url() {</span></p>
<p><span style="font-family:"Times New Roman","serif""><span> </span><span>$curURL="<a href="http://%22.$_SERVER%5B" target="_blank">http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI</a>'];</span></span></p>
<p><span style="font-family:"Times New Roman","serif"">return
$curURL;</span></p>
<p><span style="font-family:"Times New Roman","serif"">}</span></p>
<p><span style="font-family:"Times New Roman","serif"">{/php}</span></p>
<p> </p>
<p><span style="font-size:10.0pt;line-height:115%;font-family:"Courier New";color:teal"><</span><span style="font-size:10.0pt;line-height:115%;font-family:"Courier New";color:#3F7F7F">iframe</span><span style="font-size:10.0pt;line-height:115%;font-family:"Courier New""> <span style="color:#7F007F">src</span><span style="color:black">=</span><i><span style="color:#2A00FF"><span>"<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}&layout=button_count&show_faces=true&width=110&action=like&colorscheme=light&height=20&locale=de_DE"</span></span></i>
<span style="color:#7F007F">scrolling</span><span style="color:black">=</span><i><span style="color:#2A00FF">"no"</span></i> <span style="color:#7F007F">frameborder</span><span style="color:black">=</span><i><span style="color:#2A00FF">"0"</span></i>
<span style="color:#7F007F">style</span><span style="color:black">="</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">;" </span><span style="color:#7F007F">allowTransparency</span><span style="color:black">=</span><i><span style="color:#2A00FF">"true"</span></i><span style="color:teal">></</span><span style="color:#3F7F7F">iframe</span><span style="color:teal">></span></span></p>
</font></div><div><font face="'times new roman', 'new york', times, serif"> </font></div><div><p style="color:rgb(0, 0, 0);font-size:12pt"><font face="'Times New Roman', serif"><br></font></p><div>
<font face="'times new roman', 'new york', times, serif" size="3"><i>I don'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:'times new roman', 'new york', times, serif;font-style:italic">
<br></div><font face="'times new roman', 'new york', times, serif" size="3"><i>Best Regards,</i></font></div><p style="font-family:'times new roman', 'new york', 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:'times new roman', 'new york', times, serif;font-size:12pt"><br></div>
</div></div></blockquote></div><br>