1
WebSiteGuru
Theming - Forum Images

Hi, first of all I would like to say, XOOPS had come along nicely, since the last time I use XOOPS. I do like the changes that you guys had done.

Now come to my question of the day, I am currently setting up my site and learning how to theme XOOPS again. Since I did not have enough knowleage for now, can someone point me into the right direction.

I am trying to have forum matching images for the theme I am creating. Current I have the Theme up and operational. But the images is being call from modules\newbb\images folder. I want to be able to have the images being call from themes\themename\images folder. Is there a way to do that?

Also, I would like to be able to change the format of the Forums at the same time. What Theme template file do I need to use?

2
snow77
Re: Theming - Forum Images
  • 2006/9/3 19:09

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


The instructions are found in the release notes of XOOPS 2.0.14.

It says like this:

Quote:

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 /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 /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:
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 /modules/newbb/style.css
* To create a custom image that will replace modules/newbb/images/reply.png, create your customized file in /modules/newbb/images/reply.png



The theme Zeta Reticuli by leo, is the first full example of a theme with these feautures, it can serve you as guide.

3
WebSiteGuru
Re: Theming - Forum Images

Thanks Snow77 for the pointer to the right direction. Now I can start Theming the way I wanted. ;)

Login

Who's Online

311 user(s) are online (225 user(s) are browsing Support Forums)


Members: 0


Guests: 311


more...

Donat-O-Meter

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

Latest GitHub Commits