-
AuthorPosts
-
timtecsa Friend
timtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 16, 2015 at 5:45 pm #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 ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
December 17, 2015 at 9:13 am #818322timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 17, 2015 at 5:47 pm #818951You 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
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
December 21, 2015 at 2:59 am #826259Hi 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 Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 23, 2015 at 8:08 pm #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 ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
December 24, 2015 at 2:59 am #830349Hi,
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 Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 24, 2015 at 11:29 am #830710This reply has been marked as private.Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
December 25, 2015 at 7:47 am #831312timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 27, 2015 at 6:57 pm #832559This reply has been marked as private.Mo0nlight ModeratorMo0nlight
- Join date:
- September 2014
- Posts:
- 707
- Downloads:
- 38
- Uploads:
- 107
- Thanked:
- 99 times in 97 posts
December 30, 2015 at 3:44 am #834495Hello 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 Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 30, 2015 at 3:23 pm #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 ModeratorMo0nlight
- Join date:
- September 2014
- Posts:
- 707
- Downloads:
- 38
- Uploads:
- 107
- Thanked:
- 99 times in 97 posts
January 7, 2016 at 2:59 am #840587Hi 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 Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
January 12, 2016 at 11:46 pm #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.
Mo0nlight ModeratorMo0nlight
- Join date:
- September 2014
- Posts:
- 707
- Downloads:
- 38
- Uploads:
- 107
- Thanked:
- 99 times in 97 posts
January 14, 2016 at 2:24 am #847335Hi 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
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
January 16, 2016 at 2:40 pm #849683Hi @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,
TimAuthorPostsViewing 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
Jump to forum