Posts: 14
Threads: 3
Joined: Jan 2015
30-Jan-2015, 07:42 AM
Hello there.
I successfully installed your precious comment system and all work just fine except like/dislike and flag functions. When I click one of that buttons page just reloads and that it.
What should I change in order for that functions to work properly?
Thank you for your hard work!
Posts: 2,894
Threads: 59
Joined: Jun 2010
Hi,
Judging by this and your post in the BB Code thread it looks like jQuery isn't working.
Can you provide a link to your page so I can determine why? PM me it if you want.
Have
you completed
the interview?
Posts: 14
Threads: 3
Joined: Jan 2015
Hi,
Here is a link to the page where commentics is located:
http://artyhoney.com/blog
Thank you, Steve!
P.S. I was trying to change jquery path to the newest but that didn't help
Posts: 2,894
Threads: 59
Joined: Jun 2010
Okay it appears to be the same as noblues in the BB Code thread. You are loading jQuery twice (once from Commentics and again from the footer of your page):
Code:
<!-- Javascript -->
<script src="js/jquery-1.8.2.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="js/scripts.js"></script>
</body>
</html>
There are a couple of solutions that you can try:
1. Wrap the inclusion of jQuery in your footer with the following so that it only includes it if it isn't already included.
Code:
if (typeof jQuery == 'undefined') {
<script src="js/jquery-1.8.2.min.js"></script>
}
2. Remove the following code from /upload/includes/template/head.php:
Code:
<script type="text/javascript">
// <![CDATA[
if (typeof jQuery == 'undefined') {
document.write('<scr' + 'ipt type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></scr' + 'ipt>');
}
// ]]>
</script>
Have
you completed
the interview?
Posts: 14
Threads: 3
Joined: Jan 2015
Now I've got the point.
Cheers!