Forum Support

 
Advanced Search


[1]

Offline topsys
Free Member
Posts: 8
Posted on: January 31, 2009, 07:51:27 AM

Hi all,
I have read through this forum but haven't been able to find an answer to my problem.

I would like to change the 6 tab box colours, the whole box not just the header colour.
I have looked at the images in the modules folder & see that for each colour there are only 2 images for the header. The rest of the box (main body & right edge) use the same (mainly white) image for all 6 colours.

I have found an area in the code in the mod_s5_frontpage_display.php where I think is related:

<div id="s5_fd_box1_div1" style="padding:0px; margin:0px; height:<?php echo $s5_fd_bottom_div_height ?>px; background-image: url(modules/mod_s5_frontpage_display/s5_frontpage_display/s5_fd_bl.png); background-repeat:no-repeat; background-position:bottom left">
   
            <div id="s5_fd_box1_div2" style="padding:0px; margin:0px; height:<?php echo $s5_fd_bottom_div_height ?>px; background-image: url(modules/mod_s5_frontpage_display/s5_frontpage_display/s5_fd_br.png); background-repeat:no-repeat; background-position:bottom right">

and added the following code to set the box header colour selected:
<?php echo $s5_fd_box1_color ?>

so the top 2 lines now read:
 
<div id="s5_fd_box1_div1" style="padding:0px; margin:0px; height:<?php echo $s5_fd_bottom_div_height ?>px; background-image: url(modules/mod_s5_frontpage_display/s5_frontpage_display/s5_fd_<?php echo $s5_fd_box1_color ?>_bl.png); background-repeat:no-repeat; background-position:bottom left">
   
            <div id="s5_fd_box1_div2" style="padding:0px; margin:0px; height:<?php echo $s5_fd_bottom_div_height ?>px; background-image: url(modules/mod_s5_frontpage_display/s5_frontpage_display/s5_fd_<?php echo $s5_fd_box1_color ?>_br.png); background-repeat:no-repeat; background-position:bottom right">


I have done this for all 6 references for each box.

I have uploaded the relevant png images for each colour to give a filled in box colour so that the image filename follows the same rules

So this is where I am needing some assistance as the template is not showing the new images in the box area.
Where else would I need to look to complete this?

Thanks
« Last Edit: February 02, 2009, 01:32:12 AM by topsys »
Logged

Offline mikek
Free Member
Posts: 28743 WWW
Posted on: January 31, 2009, 09:38:32 AM

Hi, are you trying to get each box a solid color but a different color for each box? If so, you're looking in the right spot. Each box has its own section like the code you pasted below. You are right each box uses the same bl and br images and tl and tr are different based on the colors. If you want different colors for each box you'll need to edit the background-image for each box, something like :

modules/mod_s5_frontpage_display/s5_frontpage_display/s5_fd_bl_brown.png
modules/mod_s5_frontpage_display/s5_frontpage_display/s5_fd_br_brown.png
modules/mod_s5_frontpage_display/s5_frontpage_display/s5_fd_tl_brown.png
modules/mod_s5_frontpage_display/s5_frontpage_display/s5_fd_tr_brown.png

Then create your images and upload them to the folder.
Logged

Offline topsys
Free Member
Posts: 8
Posted on: February 01, 2009, 01:35:29 PM

Hi Mike,
Thanks for the reply, I had already uploaded new images & made changes to code etc. so was thinking what had I not dome correctly.

I have now resolved this, and it was my fault.
I had not changed the reference number for each section after a copy/paste.
So I had this tag <?php echo $s5_fd_box1_color ?> in all the bl & br background image paths for each section for every box & didn't change the box1 to box2, box3, box4 etc.

So a school boy mistake, just posting so that others might not make same error if trying this.
Logged

Offline labra
Free Member
Posts: 53
Posted on: March 19, 2009, 11:28:22 AM

The same problem: I'd like to define the bottom box title background colors - but instead of using verbal color definitions (blue/red/brown) I'd like to use a hex (#XXXXXX) color setting (to match the default color of the site).

Can this be done? If yes - how?

TIA -

Lev
Logged
[1]

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.02 seconds with 20 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.