2
well, as a suggestion it would be good to keep your site updated with XOOPS version 2.0.16
about the problems you are having with templates, it seems you are changing the file in the wrong place.
- first you have to open the template you want to change from the module of your choice from the templates folder of the module
- you make changes to it
- then you save the file like this:
themes/MY_THEME/modules/MY_MODULE_NAME/MY_CUSTOM_TEMPLATE.html
so if it were the news_item.html template it would be like this:
themes/MY_THEME/modules/news/news_item.html
This is the template overriding feauture that began with XOOPS V2.0.14 and you can read about it in the release notes:
Release Notes of XOOPS 2.0.14:
Templates overriding
Designers can add custom templates to their themes, and those will be used instead of the default ones. To exploit this feature, templates have to be created in subfolders of the themes duplicating the default folders structure and removing the "templates" part:
* To overload system_userinfo.html template located in modules/system/templates/system_userinfo.html you have to create your custom version in <yourthemefolder>/modules/system/system_userinfo.html
* To overload system_block_login.html template located in modules/system/templates/blocks/system_block_login.html you have to create your custom version in <yourthemefolder>/modules/system/blocks/system_block_login.html
Output resources overriding for developers
To allow theme designers to customize images or stylesheets, you have to use the new theme class and xoImgUrl templates plug-in.
* Scripts and stylesheets can be declared to XOOPS using the theme class addScript and addStylesheet methods. The theme instance is available after the inclusion of header.php by using the $xoTheme global variable, and in a template variable of the same name:
<{$xoTheme->addStylesheet('modules/newbb/style.css')}>
* Images and medias URLs have to be generated by using the xoImgUrl plug-in in your templates:
<img src="<{xoImgUrl modules/newbb/images/reply.png}>" alt="reply" />
Output resources overriding for designers
Designers can also provide custom versions of most output-related resources using a mechanism similar to the one available to templates, for modules that support this.
* To create a custom stylesheet that will replace modules/newbb/style.css, create your customized file in <yourthemefolder>/modules/newbb/style.css
* To create a custom image that will replace modules/newbb/images/reply.png, create your customized file in <yourthemefolder>/modules/newbb/images/reply.png
and the tutorial Alain01 made can guide you to do what you need:
Templates overriding : a small Tutorial