Comments links do not work, no pagination etc...

  • stetze
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 7 months ago #29326 by stetze
i mean the comment link on the top at the page... at the moment call "DISQUS_COMMENT".... when i click that link, it must normaly scroll down to the comments...

Please Log in to join the conversation.

More
11 years 7 months ago #29333 by ivan.milic
Open templates/hot_responsive/js/dynlayout.js

At bottom you will find this:
Code:
jQuery(document).ready(function(){ if(String(window.location).indexOf('#') > 0){ window.location = String(window.location).split('#')[0]; } });

change it:
Code:
jQuery(document).ready(function(){ if(String(window.location).indexOf('#') > 0){ if(String(window.location).split('#')[1] != 'disqus_thread') window.location = String(window.location).split('#')[0]; } });

Please Log in to join the conversation.

  • stetze
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 7 months ago #29337 by stetze
thanks for the fast response...

i changed it, but it didn't help...

when i try to receive the comments over the link, i see in the source text... a blank site opened, with a ajax load screen? but nothing happens...

for testing i've enabled the comments in category list too...

thanks for help...

best regards

Please Log in to join the conversation.

More
11 years 7 months ago #29347 by ivan.milic
Try this code instead:
Code:
jQuery(document).ready(function(){ if(String(window.location).indexOf('#') > 0){ window.location = String(window.location).split('#')[0]; } jQuery('a').each(function(i){ if(jQuery(this).attr('href').indexOf('#') > 0){ jQuery(this).click(function(event){ if(jQuery(this.hash)[0]){ event.preventDefault(); try{ jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500); }catch(e){ // } } }); } }); });

Please Log in to join the conversation.

  • stetze
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 7 months ago - 11 years 7 months ago #29357 by stetze
no, it don't work... now the designs have design mistakes

if i disable javascript in my browser, the design looks nearly self (design mistakes), but the link gone.

Maybe javascript errors?
Last edit: 11 years 7 months ago by stetze.

Please Log in to join the conversation.

More
11 years 7 months ago #29364 by ivan.milic
Now you have multiple jquery references creating conflict. It's from something you enabled recently.

Please Log in to join the conversation.

Time to create page: 0.084 seconds
Powered by Kunena Forum