Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • timtecsa Friend
    #817393

    <a href="javascript:open_login(‘Connectez-vous maintenant’, ”);">SVP un nouveau commentaire

    On Teline V we seem to have a javascript problem in JA Comments, which work fine in Teline IV site. http://mwinda.org/fr/

    The SVP un nouveau commentaire link should open login form. Also Replies to existing comments doesn’t work aka open a comment box.

    Any ideas?

    Luna Garden Moderator
    #818322

    Hi,

    I couldn’t see The SVP un nouveau commentaire link anywhere on your site, could you post the link that have this link and also the capture so I can help you better.

    timtecsa Friend
    #818951

    You won’t see it if you are logged in on the front end. It’s to oblige you to logiin. It should cause the Login form to open. At bottom of all article pages. e.g. http://mt5j345.mwinda.org/congo-b/19-politique/335-lettre-a-denis-sassou-nguesso-et-a-ses-allies-nous-ne-sommes-pas-tous-neron-par-dieudonne-niangouna


    1. svp
    Luna Garden Moderator
    #826259

    Hi timtecsa,
    Please try our solution as follow:
    File : plugins/content/jacomment/jacomment.php move the line : 631-632
    $doc->addScript($urlCom.'/asset/js/ja.comment.js'); $doc->addScript($urlCom.'/asset/js/ja.popup.js');
    To 764-765
    $output = ob_get_contents(); $doc->addScript($urlCom.'/asset/js/ja.comment.js'); $doc->addScript($urlCom.'/asset/js/ja.popup.js'); ob_end_clean();
    File : components/com_jacomment/asset/js/ja.popup.js Change line : 156-163 if (jQuery.browser.opera && jQuery.browser.version > "9.5" && jQuery.fn.jquery <= "1.2.6") { yPos = document.documentElement[‘clientHeight’] – 20; } else { yPos = jQuery(window).height() – 20; } To : yPos = jQuery(window).height() – 20; It’s should be fine now. And your website had some extension that redeclare jquery. you should find and remove it to prevent the unexpected error.

    timtecsa Friend
    #830178

    @luna Garden Tried to apply your suggested mods but now, although the Login Popup appears, I either get ‘Invalid Token’ message or the following page has no CSS. Its URL is http://mt5j345.mwinda.org/component/jacomment/httpmt5j345.mwinda.orgcongo-b52-lu-pour-vous340-bowao-denis-sassou-nguesso-mene-un-coup-d-etat-anticonstitutionnel-qui-est-toujours-en-cours

    I started at: http://mt5j345.mwinda.org/congo-b/19-politique/338-une-lepen-soutenue-par-un-homme-d-affaires-proche-de-sassou

    Any ideas?

    Tim

    Luna Garden Moderator
    #830349

    Hi,
    How did you get this link: http://mt5j345.mwinda.org/component/jacomment/httpmt5j345.mwinda.orgcongo-b52-lu-pour-vous340-bowao-denis-sassou-nguesso-mene-un-coup-d-etat-anticonstitutionnel-qui-est-toujours-en-cours
    If it appears after logging in, please send me Administrator of your site, so we can check problem closer.

    timtecsa Friend
    #830710
    This reply has been marked as private.
    Luna Garden Moderator
    #831312

    Hi, We see the problem now, but it doesn’t happen on our demo. Did you custom anything on JA Comment of your site ? kindly send me FTP account of your site, so we can investigate further.

    timtecsa Friend
    #832559
    This reply has been marked as private.
    Mo0nlight Moderator
    #834495

    Hello Tim.

    I fixed the problem. Below are the details:

    In the file : components/com_jacomment/site/asset/js/ja.popup.js add code at line 181:

    var _timestamp = new Date().getTime();
    url += '&ver='+_timestamp;

    file : components/com_jacomment/site/controllers/users.php Change the code:

    JRequest::checkToken('request') or jexit('Invalid Token');

    To

    JSession::checkToken('post') or jexit(JText::_('JINVALID_TOKEN'));

    And Change.

    $return = JRequest::getCmd('return');

    To

    $return = JRequest::getString('return', '', 'post', JREQUEST_ALLOWRAW);

    That’s all.

    Hope this helps!

    timtecsa Friend
    #835064

    @mo0nlight Many thanks. It seems to work OK now, however, when I login via the JA Comments popup the main Login module at bottom of right column on homepage still says I am not logged in. Consequently I cannot Logout using this main Login module 🙂 I can only logout via the de-connect option in the comments area.

    Tim

    Mo0nlight Moderator
    #840587

    Hi Tim,

    I checked the module and it’s still working properly.

    Please check again and let me know if it still persists (some screenshots would be helpful)

    Regards

    timtecsa Friend
    #846123

    @ Mo0nlight I just logged in via JA Comments but when I look at the main Login module at bottom of the homepage it says I’m not logged in. Shouldn’t it reflect the fact that I am logged in ? See screenshot below.


    1. login
    Mo0nlight Moderator
    #847335

    Hi Tim,

    I tried with the admin account, it seems that still working fine. Maybe something wrong with your web browser, try to clean cache & cookies.

    If problem still persists, send me the illustrating video to replicate the issue.

    Regards


    1. Screen-Shot-2016-01-14-at-9.22.17-AM
    timtecsa Friend
    #849683

    Hi @mo0nlight

    I resolved the problem by disabling the Login module in sidebar as the User menu in the footer seems to be in synch with JA Comments login, so not really necessary to show it.

    Thanks,
    Tim

Viewing 15 posts - 1 through 15 (of 15 total)

This topic contains 14 replies, has 3 voices, and was last updated by  timtecsa 8 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum