Hi I'm new to the forums, and I'm also new to the whole silverstripe programming. I don't have much of a PHP knowledge, and I've been trying to get the facebook share working on the sharethis module.
I've managed to get it working by editing the config file in the ShareThis module:
"facebook"=> array(
"url"=>"http://www.facebook.com/sharer.php?" .htmlentities("u=$page_url&title=$page_title&"),
"title" => "Facebook"),
But the advice I need is how do I make it perform like the coding facebook has given below:
<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><a href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank">Share on Facebook</a>
I've been trying to work on this for 12 hours, and I'm lost on how to input the java to open in a new window. I'm only good at html, but as far as PHP knowledge it's pretty bad. So if anyone would like to help me it would be much appreciated.
Thanks!