3
Quote:
LazyBadger wrote:
These images (/modules/newbb/images/folder.gif) defined in two foru templates:
viewtopic_flat
viewtopic_thread.html
You had to prepare different images for themes and create theme-specific templates (which can be same except img src for folder).
Theme's templates must be placed in
templates/newbb/newbb_viewtopic_flat.html
templates/newbb/newbb_viewtopic_thread.html
LOL, I didn't even think to look in the html templates! I feel foolish now. Ok, I have one more question for you.
I've moved all icons to "/themes/*your theme*/images/" for background and so forth, and "/themes/*your theme*/images/forum/" for forum icons. So far with the images being pulled from PHP it works great. I have my config.php file setup like this:
// You shouldn't have to change any of these
$bbUrl['root'] = XOOPS_URL."/modules/newbb/";
$bbUrl['admin'] = $bbUrl['root']."admin";
$bbUrl['images'] = XOOPS_URL.'/'.'themes'.'/'.$xoopsConfig['theme_set']."/images/forum";
$bbUrl['smilies'] = $bbUrl['images']."smiles";
I have no clue how to use the varible $bbUrl['images'] in the html templates the links are:
img src='<{$xoops_url}>/modules/newbb/images/folder.gif' alt='' />
How would I use the $bbUrl['images'] in regular html format. (trying to avoid having to have a newbb_viewtopic_flat.html for every theme. Am I beating myself over the head with the $bbUrl['images'] variable? If so, is there a $xoops_ variable that declares the path to the current themes folder? Sorry if this seems like a basic php/html 101 problem for you guys, I just started learning html and php 4 days ago (which says alot about the amount of knowledge in this forum!).
Thanks,
Joe