Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Upgrade-proof edit of php file. How?

8 years 4 months ago
  • Bosse's Avatar
    Topic Author
  • Bosse
  • Offline
  • Fresh Boarder
  • Posts: 48
  • Thank you received: 4
Licenses:
JomSocial Expired GURU Active

I'd like to add text to the icons on the lessons page (see attached image). I have done it by adding <?php echo JText::_("GURU_PREVIOUS_LESSON"); ?> etc in views/gurutasks/tmpl/view.php
But that will be gone every time this file is changed in updates.

How do I add this permanently?

/Bosse

Attachments:
8 years 4 months ago
Licenses:

HI, Bosse.

You need to create layout override in Joomla.
Just copy file: ROOT/components/com_guru/views/gurutasks/tmpl/view.php
To: ROOT/templates/your-template/html/com_guru/gurutasks (if you don't have those folders, feel free to create them).

docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core
docs.joomla.org/Understanding_Output_Overrides
docs.joomla.org/Layout_Overrides_in_Joomla


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
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