This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Some functions are not working after installation
#1
Question 

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!
Reply
#2

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?
Reply
#3

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
Reply
#4

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?
Reply
#5

Now I've got the point.

Cheers!
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by mtnlvy
06-Jan-2019, 06:29 PM
Last Post by T04
02-Jul-2017, 09:49 PM
Last Post by Steven
25-Apr-2015, 12:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)