-
AuthorPosts
-
July 8, 2011 at 8:35 am #166062
Hi, I am using JA-Comment with Joomla 1.6 which is working – but I get a couple of code errors on the page where the comment box is visible.
Firstly, when someone clicks on the ‘Add Comment’ link the commenting article box displays this PHP error immediately above it:
Warning: Invalid argument supplied for foreach() in /home/mysitename/public_html/mywebsitefoldername/components/com_jacomment/views/comments/view.html.php on line 721
How can I get rid of this or fix whatever should be happening there?
Secondly, as I am using JomSocial, I would like to integrate the commenting with JomSocial’s activity stream. The plugin is enabled, but rather than getting the details of the comment appear in the stream, I just get:
“JOMSOCIAL_ACTIVITI_STREAM_TITLE_REMOVE_COMMENT” or “JOMSOCIAL_ACTIVITI_STREAM_TITLE_COMMENT_NEW_ITEM”
I realise this part might be a question for JomSocial to answer, but as JA-Comment offered the integration, I kinda hoped someone would be able to tell me what should appear when the integration works properly?
Thanks in advance. :-[
Dave.
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
July 13, 2011 at 2:51 am #400872Hello,
For the 2nd problem, please use this link http://www.joomlart.com/forums/downloads.php?do=file&id=1900 to download and upgrade to new version of JA Comment.
For the 1st, please open “…/components/com_jacomment/views/comments/view.html.php” file, then insert the following code into:
Line 627, please insert before this line “foreach ($items as $item){”
[PHP]
if (!$items) return null;
[/PHP]Line 721, please insert before this line “$children = array();”
[PHP]
if (!$itemAll) return null;
[/PHP]This bug occurs when there is no comment posted. It will be fixed in next version of JA Comment.
Because the 1st problem is an issue of new version, so firstly you need to upgrade to new version of JA Comment, then you use my code to fix the problem “warning message”.
Thank you.
July 14, 2011 at 4:16 am #401054Make changes and no longer the problem, thank you very much,
But I try to comment but do not work the component.
help me, thank you very much.
July 14, 2011 at 8:57 am #401114Thanks nhatnx,
I’ll try this.
July 14, 2011 at 10:23 am #401123After uninstalling the JA Comment components and any related modules, and checking via FTP that there were no related files found in either the Administrator, Component, Modules or cache folders, I re-installed the v1.0.3 version that you suggested. Unfortunately, the problem still persists resulting in the same ‘JOMSOCIAL_ACTIVITI_STREAM_TITLE_COMMENT_NEW_ITEM’ entries showing up in the Jom Social activity stream.
Any further suggestions or help would be appreciated in getting this to work with Jom Social.
I’ve asked on the Jom Social forum but they are pointing fingers back towards JA Comment, saying that they don’t (and won’t) provide support for any third party plugins.
Thanks
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
July 15, 2011 at 11:04 am #401298<em>@proteus 253108 wrote:</em><blockquote>After uninstalling the JA Comment components and any related modules, and checking via FTP that there were no related files found in either the Administrator, Component, Modules or cache folders, I re-installed the v1.0.3 version that you suggested. Unfortunately, the problem still persists resulting in the same ‘JOMSOCIAL_ACTIVITI_STREAM_TITLE_COMMENT_NEW_ITEM’ entries showing up in the Jom Social activity stream.
Any further suggestions or help would be appreciated in getting this to work with Jom Social.
I’ve asked on the Jom Social forum but they are pointing fingers back towards JA Comment, saying that they don’t (and won’t) provide support for any third party plugins.
Thanks</blockquote>
Hello,
Please add the following line into “languageen-GBen-GB.com_jacomment.ini” file:
JOMSOCIAL_ACTIVITI_STREAM_TITLE_COMMENT_NEW_ITEM="{actor} adds a comment in %s"
Thank you.
August 9, 2011 at 8:00 am #405062This is fixed a similar problem for me, instead of showing JOMSOCIAL_ACTIVITI_STREAM_TITLE_COMMENT_NEW_ITEM it now says ‘added a comment in” but then says the URL. Is there anyway for it to say “added a comment in (article name)” ? Any code alteration for this?
Thanks in advance 🙂
-
AuthorPosts
This topic contains 7 replies, has 4 voices, and was last updated by sophmass1234 13 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum