4
You don't need to hack php files, or to use a module
With XOOPS 2.0.16 you can do this using Smarty tags in your theme.html file.
e.g. you could use something like this:
<img class="<{$xoops_dirname}>" src="<{$xoops_imageurl}>modules/<{$xoops_dirname}>/logo.png" alt="" />
The <{$xoops_dirname}> tag contains the name of the current module, or 'system' if you are on a non-module page.
So the example above expects to find the image in:
http://yoursite.com/themes/yourtheme/modules/system/logo.pnghttp://yoursite.com/themes/yourtheme/modules/newbb/logo.pngdepending on which modules you have installed and which page you are viewing.
The example also assigns a separate css class for each module, so you can use different style rules for each image if you want to. Just add some css code to an included .css file, something like this:
img.system {
put css rules here
}
img.newbb {
put css rules here
}
This is just an example to get you started, play with the example until you find the best solution for you
Rowd