- Posts: 11
COMMUNITY FORUM
JomComment? Jomsocial too
- rootlock
- Topic Author
- Offline
- New Member
Less
More
15 years 2 months ago #68563
by rootlock
JomComment? Jomsocial too was created by rootlock
Hi, I love this extension. Seriously
I'm wondering if there is a way to use JomComment by azrul? I'm using Jomsocial and Jomcomment and would really like to use the same comment system all around my site, especially because Jomsocial's Jomcomment plugin posts latest comments to each user profile. Is this possible
While I'm at it, I would also like K2 articles to post to the Jomsocial activity page as well. I'll be doing some more research at the Jomsocial forum but any suggestions or references would be appreciated!
Thanks!
Brad
I'm wondering if there is a way to use JomComment by azrul? I'm using Jomsocial and Jomcomment and would really like to use the same comment system all around my site, especially because Jomsocial's Jomcomment plugin posts latest comments to each user profile. Is this possible
While I'm at it, I would also like K2 articles to post to the Jomsocial activity page as well. I'll be doing some more research at the Jomsocial forum but any suggestions or references would be appreciated!
Thanks!
Brad
Please Log in or Create an account to join the conversation.
- Shane Hubert
- Offline
- New Member
Less
More
- Posts: 4
15 years 2 months ago #68564
by Shane Hubert
Replied by Shane Hubert on topic JomComment? Jomsocial too
I will second this as I am in the same boat and would like to use one commenting system to make this a little easyer
Please Log in or Create an account to join the conversation.
- Xcantion
- Offline
- Junior Member
Less
More
- Posts: 32
15 years 2 months ago #68565
by Xcantion
Replied by Xcantion on topic JomComment? Jomsocial too
i want to have jommcomment integration too.. i love this comment system
Please Log in or Create an account to join the conversation.
- Markus
- Visitor
15 years 2 months ago #68566
by Markus
Replied by Markus on topic JomComment? Jomsocial too
Hi,
open: joomlaroot/components/com_k2/templates/default/item.php
comment out Lines 457-522
paste this in Line 456:
include_once( JPATH_PLUGINS . DS . 'content' . DS . 'jom_comment_bot.php' );
echo jomcomment($this->item->id, "com_k2");
Not testet!!! MAKE A BACKUP
open: joomlaroot/components/com_k2/templates/default/item.php
comment out Lines 457-522
paste this in Line 456:
include_once( JPATH_PLUGINS . DS . 'content' . DS . 'jom_comment_bot.php' );
echo jomcomment($this->item->id, "com_k2");
Not testet!!! MAKE A BACKUP
Please Log in or Create an account to join the conversation.
- Xcantion
- Offline
- Junior Member
Less
More
- Posts: 32
15 years 2 months ago #68567
by Xcantion
Replied by Xcantion on topic JomComment? Jomsocial too
i think there must be some more edits because:
i have edit this file.. but the standart comment form pops up... no jomcomment
i have edit this file.. but the standart comment form pops up... no jomcomment
Please Log in or Create an account to join the conversation.
- Xcantion
- Offline
- Junior Member
Less
More
- Posts: 32
15 years 2 months ago #68568
by Xcantion
Replied by Xcantion on topic JomComment? Jomsocial too
Hello i have found a "half solution"
i have edit the file:
/var/www/vhosts/cyber/web/components/com_k2/views/item/view.html.php
and i have comment out this section:and have paste youre code ... but now i have to comments form :P
that means jomcomment can be integrated with no problem ... bzt my problem is.. i am not a php coder... maybe someone can help a bit ... !?
i have edit the file:
/var/www/vhosts/cyber/web/components/com_k2/views/item/view.html.php
and i have comment out this section:
//Comments
if ($item->params->get('itemComments')){
$limit=$params->get('commentsLimit');
$comments=$model->getItemComments($item->id,$limitstart, $limit);
for ($i=0; $i
$comments[$i]->userImage='';
if ($comments[$i]->userID > 0){
$profile=$model->getUserProfile($comments[$i]->userID);
if ($profile->image){
$comments[$i]->userImage=JURI::root().'media/k2/users/'.$profile->image;
}
else{
if ($params->get('userImageDefault')){
$comments[$i]->userImage = JURI::root().'media/k2/users/default.jpg';
}
}
}
else {
if ($params->get('gravatar')){
$comments[$i]->userImage='http://www.gravatar.com/avatar/'.md5($comments[$i]->commentEmail).'?s='.$params->get('commenterImgWidth').'&default='.urlencode(JURI::root().'media/k2/users/default.jpg');
}
else {
if ($params->get('userImageDefault')){
$comments[$i]->userImage = JURI::root().'media/k2/users/default.jpg';
}
}
}
}
$item->comments= $comments;
jimport('joomla.html.pagination');
$total = $item->numOfComments;
$pagination = new JPagination($total, $limitstart, $limit);
}
that means jomcomment can be integrated with no problem ... bzt my problem is.. i am not a php coder... maybe someone can help a bit ... !?
Please Log in or Create an account to join the conversation.
- Xcantion
- Offline
- Junior Member
Less
More
- Posts: 32
15 years 2 months ago #68569
by Xcantion
Replied by Xcantion on topic JomComment? Jomsocial too
any solution
Please Log in or Create an account to join the conversation.
- rootlock
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
15 years 2 months ago #68570
by rootlock
Replied by rootlock on topic JomComment? Jomsocial too
I have the same problem.... not a coder.
Please Log in or Create an account to join the conversation.
- Xcantion
- Offline
- Junior Member
Less
More
- Posts: 32
15 years 2 months ago #68571
by Xcantion
Replied by Xcantion on topic JomComment? Jomsocial too
Hello!! Thanks for this hint ...
Jommcomment workx now!!!
But i have one question...
accept terms doesnt work... if i click for submission .... jomcomment mean everytime.... pls accept terms & rules... but i have accept this already...
now i must deactivate terms & rules ... or jomcomment will not work...
maybe someone has a hint for this little problem
Jommcomment workx now!!!
But i have one question...
accept terms doesnt work... if i click for submission .... jomcomment mean everytime.... pls accept terms & rules... but i have accept this already...
now i must deactivate terms & rules ... or jomcomment will not work...
maybe someone has a hint for this little problem
Please Log in or Create an account to join the conversation.
- rootlock
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
15 years 2 months ago #68572
by rootlock
Replied by rootlock on topic JomComment? Jomsocial too
I totally appreciate the work you both have done!!! I was starting to give up hope :)
Is there anyway either of you could give me a copy of the last part of the code? I'm not sure what "comment out means"? I've removed it and pasted the code but I'm not getting good results...
FYI : I am using Affinity
Thanks again
Is there anyway either of you could give me a copy of the last part of the code? I'm not sure what "comment out means"? I've removed it and pasted the code but I'm not getting good results...
FYI : I am using Affinity
Thanks again
Please Log in or Create an account to join the conversation.