1
DrSane
How To Change/Update A Template After Installation?
  • 2007/8/8 12:59

  • DrSane

  • Just popping in

  • Posts: 9

  • Since: 2007/8/8 1


I want to update the userinfo.php template, but any changes I make to modules/system/templates/system_userinfo.html are not made effective, since the templates were placed into the MySQL database upon installation.

Is there a standard way of making changes to these templates? I could spend a couple hours reading lots of code until I can write the appropriate MySQL commands to update it manually. It would be nice if there is a faster way to get around this problem which seems should be common. Any snippet already in existence?

Thank-you in advance.

2
davidl2
Re: How To Change/Update A Template After Installation?
  • 2007/8/8 13:15

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


There's 2 ways of doing this:

1 - the old method: Clone the template blocks and edit these from the Admin end.

2 - Upload the template you want to change to the themes area, for usage with template-override, which is a standard feature from 2.0.14 upwards.

Example - modules/system/templates/system_userinfo.html would be placed at:
your-site-name/theme/themename/modules/system/templates/system_userinfo.html

3
DrSane
Re: How To Change/Update A Template After Installation?
  • 2007/8/8 17:49

  • DrSane

  • Just popping in

  • Posts: 9

  • Since: 2007/8/8 1


The first method worked perfectly! Thank you very much! :)

4
davidl2
Re: How To Change/Update A Template After Installation?
  • 2007/8/8 18:06

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


I would recommend you also learn the second method, which will be more flexible for full control over your site layout.

Login

Who's Online

171 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits