jomsocial template breaks in group discussions

GK User
Tue Jan 17, 2012 7:29 am
hi guys!

just found an error in the groups parts of the jomsocial template for TWNII :) hope you can provide a fix!

1. Fatal error message when discussions are entered/replied too:

Fatal error: Call to a member function toFormat() on a non-object in /home/guide/public_html/components/com_community/templates/gk_style/groups.viewdiscussion.php on line 34


2. "delete" discussions option no where to be seen in template.

hope you can assist.

cheers!
User avatar
Platinum Boarder

GK User
Tue Jan 17, 2012 3:48 pm
Hi,

Please provide me FTP access via a PM and give me the link where I can see the issue then I will check and give you solution to fix.

Thanks
User avatar
Platinum Boarder

GK User
Mon Jan 23, 2012 8:30 am
Don Lee wrote:Hi,

Please provide me FTP access via a PM and give me the link where I can see the issue then I will check and give you solution to fix.

Thanks



hi Don

thanks - have sent you a PM.

Rob
User avatar
Platinum Boarder

GK User
Thu Jan 26, 2012 8:23 am
Hi Rob,

I'm sorry for this late reply, was absent for a holiday. Thank you for providing me the access, I have checked and seen that your Jomsocial template is old version, please try downloading and installing the latest one to check if it fixes the issue.

Download link: https://www.gavick.com//index2.php?opti ... 1&file=968

Cheers,
User avatar
Platinum Boarder

GK User
Thu Jan 26, 2012 9:59 am
hey don - updated the files - but does not fix it.
User avatar
Platinum Boarder

GK User
Fri Jan 27, 2012 4:28 am
Hi again Rob,

In the file, I changed:
Code: Select all
<?php echo JText::sprintf('COM_COMMUNITY_GROUPS_DISCUSSION_CREATOR_TIME_LINK' , $creatorLink , $creator->getDisplayName() ,
   $discussion->created->toFormat(JText::_('DATE_FORMAT_LC2'),true));?>

To:
Code: Select all
<?php echo JText::sprintf('COM_COMMUNITY_GROUPS_DISCUSSION_CREATOR_TIME_LINK' , $creatorLink , $creator->getDisplayName() ,
   $discussion->created);?>

and it seems to be fixed now. Please check and confirm the same.
User avatar
Platinum Boarder


cron