10
Ok, some clarification on the below code snippet. You have to do this in your themes folder in theme.html. The templates_c folder is just compiling the content of the themes folder.
At the very top of your theme.html add this snippet:
Quote:
<{php}>
$mod = $GLOBALS['xoopsModule'];
$dirname = (isset($mod) ? $mod->getVar('dirname') :'system');
$GLOBALS['xoopsTpl']->assign( 'xoops_cmod', $dirname );
<{/php}>
You have to change nothing there. Just copy it as it is.
Quote:
After that you can access the dirname of your module in your theme.html with the above variable. The dirname for the news module is normally "news". So if you are browsing the news module, the variable $xoops_cmod will contain "news". If you are browsing your profile it will contain "system".
With this you can display different images on each module.
Just try the following snippet:
Quote:
$xoops_imageurl is the path to your themes folder. So you have to create a few images there, one for each of your installed modules and an additional one for the system.
- system.jpg
- news.jpg
- newbb.jpg
.. and so on.
I hope everybody can understand this now