Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Hardcoded strings

10 years 11 months ago
Licenses:
JomSocial Expired

"Cancel" and "Edit Post" are hardcoded in :

- templates/default/activities.profile.php
- libraries/wall.php

Regards.

10 years 11 months ago
  • David's Avatar
  • David
  • Visitor
  • Thank you received: 0
Licenses:

Hi Oliver,

please edit activities.profile.php on line 99 and 100 which is contains cancel and edit post hardcode..
replace the "cancel" string with

<?php echo JText::_('COM_COMMUNITY_CANCEL_BUTTON') ?>
and "Edit Post" string with
<?php echo JText::_('COM_COMMUNITY_EDIT_POST_BUTTON') ?>

on libraries/wall.php on line 615 and 616 which is contains "Cancel" and "Edit Comment" string, please replace line 615 at "Cancel" String with
'.JText::_('COM_COMMUNITY_CANCEL_BUTTON').'

on line 616 at "Edit Comment" string with
'.JText::_('COM_COMMUNITY_EDIT_COMMENT_BUTTON').'

don't forget to add this language string on jomsocial language file on language/en-GB/en-GB.com_community.ini at the very bottom of this file.. you can change this text using override from joomla language :)
COM_COMMUNITY_CANCEL_BUTTON="Cancel"
COM_COMMUNITY_EDIT_POST_BUTTON="Edit Post"
COM_COMMUNITY_EDIT_COMMENT_BUTTON="Edit Comment"

Thanks Oliver because you found this hardcode :)

Warm Regards,

David

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW