Currently I have code that refreshes the page when one of the like buttons are clicked.
How do I have it redirect to url of the button that's liked as one of them contain a permalink. This is WordPress and the Frontpage has both sides querying randomly til I can figure out how to have one liked image selected to challenge another.
<div id="fb-root"></div>
<script src="https://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId :'00000000000',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML
channelUrl : 'http://WWW.SEXESBATTLE.COM/channel.html', // channel.html file
oauth : true // enable OAuth 2.0
});
</script>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script>
FB.Event.subscribe('edge.create', function(href, widget) {
top.window.location = 'http://sexesbattle.com';
});
</script>
Question
Mr.XXIV
On this site http://sexesbattle.com
Currently I have code that refreshes the page when one of the like buttons are clicked.
How do I have it redirect to url of the button that's liked as one of them contain a permalink. This is WordPress and the Frontpage has both sides querying randomly til I can figure out how to have one liked image selected to challenge another.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts