1
phrozin
problems with theme/icons/forum
  • 2005/4/11 0:50

  • phrozin

  • Just popping in

  • Posts: 9

  • Since: 2005/3/28


K.

long story short, I want to offer different themes to my members. I've done all the leg work and converted everything over already. I have XOOPS setup so that if a member logs in they can choose themes. when theme 1 is selected it changes themes/icons in the site/forum. Same for theme 2 and 3.

Problem I'm having is that 3 icons in the forum are not changing. These icons should change there really is no reason why they are not, unless it is hard coded in one of the php/tpl files. I've search every file I can find for the forum, but have yet to find it.

Here is a link to a test site so you can see what I mean.
username: test
pass: test

if you log in and go to the forum you'll see it as default. Click on the phrozin theme and you'll see it in phrozin except those 3 icons.

site gone.

Thanks for any help,
Joe

2
LazyBadger
Re: problems with theme/icons/forum

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

3
phrozin
Re: problems with theme/icons/forum
  • 2005/4/11 2:32

  • phrozin

  • Just popping in

  • Posts: 9

  • Since: 2005/3/28


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

4
phrozin
Re: problems with theme/icons/forum
  • 2005/4/11 3:16

  • phrozin

  • Just popping in

  • Posts: 9

  • Since: 2005/3/28


Nevermind,

I fixed it. :) thanks for you help in pointing me to the right direction LazyBadger!

Joe

Login

Who's Online

231 user(s) are online (186 user(s) are browsing Support Forums)


Members: 0


Guests: 231


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