http://phangan.tv/watch/scuba-diving-at-sail-rock-on-koh-phangan
On This page I want the facebook share link to give the actual URL instead of <url>
This is the Facebook Link Code is
<script>function fbs_click() {u=location.href;t=document.title;window.open(’
http://www.facebook.com/sharer.php?u=’+encodeURIComponent(u)+’&t=’+encodeURIComponent(t),’sharer’,’toolbar=0,status=0,width=626,height=436’);return false;}</script><style> html .fb_share_button { display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; height:15px; border:1px solid #d8dfea; font-size:10px; background:url(
http://static.ak.fbcdn.net/images/share/facebook_share_icon.gif?2:26981) no-repeat top right; } html .fb_share_button:hover { color:#fff; border-color:#295582; background:#3b5998 url(
http://static.ak.fbcdn.net/images/share/facebook_share_icon.gif?2:26981) no-repeat top right; text-decoration:none; } html .fb_share_button a {} </style> <a href="
http://www.facebook.com/share.php?u=<url>" class="fb_share_button" onclick="return fbs_click()" target="_blank" style="text-decoration:none;">Share</a>
I Just have to change the URL part.
Is the code [~[+id+]~]
When I do that the link appears in the browser bar like <a href="
http://www.facebook.com/share.php?u=[~~]
Is there a standard Modx placeholder to return the pages URL?
Stuart