Topic-icon Modify the php file in tmpl folder

Active Subscriptions:

None
10 years 2 months ago #45155 by howard
Hi, i like your SClogin module. It is very useful.

But I have a question, can I modify the php file as I have done on your CSS?
When I try to modify it, for example,
<a class="btn">...</a>
to
<a class="btn btn-default">...</a>
the php file in tmpl folder will return to what it was as I click update for your issued newest version.

So, can i modify the php file in tmpl folder by myself?
The topic has been locked.
Support Specialist
10 years 2 months ago #45160 by alzander
For modifying the CSS, please make sure you've read through our Joomla Login Theme Guide . That describes the best way to override our styles (or create your own) so that they aren't overwritten when you upgrade.

Similarly, for the PHP files, you should use the Joomla template override system. To do so, simply copy the /tmpl/login_vertical.php file (for instance) to:
/templates/<YOUR_TEMPLATE>/html/mod_sclogin/login_vertical.php
Then, edit the new file you just created. That will be used instead of the original file from the /modules/mod_sclogin/tmpl directory.

The only thing to be aware of is that when you upgrade the SCLogin module, you should compare the changes in your override to the new, original file. There may be changes you have to incorporate into your override to use new functionality or simply to make things work properly.

I hope that helps explain, but if you have any questions, just let me know.

Thanks,
Alex
The topic has been locked.