2012-07-27, 11:32 PM
Hello,
I have been trying to implement a like button for each post in a thread in my forum for the last few hours.
But I just cannot get it to work!
The thing is, whenever I try to like single post, it just randomly likes some of the other posts, too. COMPLETELY RANDOM! I've checked pid, tid. even uid for anything which might be causing trouble.
It's just unexplainable for me.
I've been trying the following url methods for liking posts:
Full like button:
I've also tried facebook's html5, xfbml and iframe versions of the like button.
Whatever I try, the bug stated above is always appearing.
Example:
I like post number 8 in thread xyz.
Then I refresh the page and post number 3 also got a like (by me), but I didnt like it.
Maybe there is a way to use a "showpost.php"? Does anybody know how to create one?
Does anyone else here have a clue maybe? I'm desperate.
I have been trying to implement a like button for each post in a thread in my forum for the last few hours.
But I just cannot get it to work!
The thing is, whenever I try to like single post, it just randomly likes some of the other posts, too. COMPLETELY RANDOM! I've checked pid, tid. even uid for anything which might be causing trouble.
It's just unexplainable for me.
I've been trying the following url methods for liking posts:
-domain.com/showthread.php?tid={$tid}?pid={$post['pid']}
-domain.com/showthread.php?tid={$tid}?pid={$post['pid']}#pid{$post['pid']}
-domain.com/showthread.php?pid={$post['pid']}
-domain.com/showthread.php?pid={$post['pid']}?tid={$tid}
-domain.com/showthread.php?pid={$pid}?tid={$tid}
-domain.com/showthread.php?pid=?tid={$tid}#pid{$post['pid']}
-domain.com/showthread.php?pid={$post['pid']}?tid={$post['tid']}
-domain.com/post-{$pid}.html
-domain.com/post-{$post['pid']}.html
-domain.com/{$post['postlink']}
-domain.com/{$post['postlink']}#pid{$post['pid']}
Full like button:
<fb:like layout="box_count" show_faces="false" href="http://www.domain.com/{$post['postlink']}" style="vertical-align: middle;" width="100"></fb:like>
I've also tried facebook's html5, xfbml and iframe versions of the like button.
Whatever I try, the bug stated above is always appearing.
Example:
I like post number 8 in thread xyz.
Then I refresh the page and post number 3 also got a like (by me), but I didnt like it.
Maybe there is a way to use a "showpost.php"? Does anybody know how to create one?
Does anyone else here have a clue maybe? I'm desperate.