Shape 5

Joomla Club Extensions => Frontpage Display Version 1 - Club => : ilanz October 18, 2008, 03:48:13 AM



: more boxes colors
: ilanz October 18, 2008, 03:48:13 AM
Hi I posted this topic in the frontpage slide show by mistake, it belongs here...

In my upcoming website -www.breastenlargementnewyork.com I need to use other color option for the title of the boxes (I need purple, pink etc...), how can I do this?
Thanks,
Ilan


: Re: more boxes colors
: mikek October 18, 2008, 05:55:01 AM
Ilan, you'd have to replace ones that you are not using currently, otherwise it will be a lot of custom programming. There is a psd included with the module to help you create the images.


: Re: more boxes colors
: ilanz October 18, 2008, 09:03:32 AM
Hey Mike,
Yes, this is exactly what I want to do, changing one of the colors...
How can I do it?
Ilan


: Re: more boxes colors
: mikek October 18, 2008, 12:07:16 PM
Ilan,

You have to replace the images in the module's folder with your own colored images. Look for the folder s5_frontpage_display in the module's folder.


: Re: more boxes colors
: ilanz October 19, 2008, 06:17:33 AM
Thanks Mike,
Got it
Ilan


: Re: more boxes colors
: broekje January 05, 2009, 05:19:34 PM
Hi Mike I am doing a similar exercise of change the colors of the boxes. I understand the necessary changes on the images. The only think I am not sure on is where to also change the color of the text inside the box. Can you give me some guidance on it.

Regards,

Dirk


: Re: more boxes colors
: mikek January 05, 2009, 05:24:53 PM
Hello, do you have a url you can post? Please mention the specific text you would like to change and to what color.


: Re: more boxes colors
: broekje January 06, 2009, 08:59:39 AM
Mike the url in question is www.rctopracing.com. What i want is to get the colors of the box in line with the color of the top left hand logo (orange, blue, red) Like described I have found out how to change the top bar of the box which is shown when a is not selected box. What I have not managed is to change the text that is displayed when hovering over or selecting a box. Is this somewhere in a dif layer?

Regards,

Dirk


: Re: more boxes colors
: mikek January 06, 2009, 09:14:08 AM
Dirk,

It's a little tricky because it's in javascript but if you edit the file mod_s5_frontpage_display.php and at the bottom you'll see javascript:

<?php if ($s5_fd_box6_color == "blue") { ?>
document.getElementById("s5_fd_hover_h3").style.color = "#2E72B7";
<?php } ?>

<?php if ($s5_fd_box6_color == "green") { ?>
document.getElementById("s5_fd_hover_h3").style.color = "#2A911C";
<?php } ?>

<?php if ($s5_fd_box6_color == "orange") { ?>
document.getElementById("s5_fd_hover_h3").style.color = "#C09603";
<?php } ?>

<?php if ($s5_fd_box6_color == "red") { ?>
document.getElementById("s5_fd_hover_h3").style.color = "#880E1C";
<?php } ?>

<?php if ($s5_fd_box6_color == "yellow") { ?>
document.getElementById("s5_fd_hover_h3").style.color = "#C2C732";
<?php } ?>

<?php if ($s5_fd_box6_color == "grey") { ?>
document.getElementById("s5_fd_hover_h3").style.color = "#525252";
<?php } ?>

<?php if ($s5_fd_box6_color == "black") { ?>
document.getElementById("s5_fd_hover_h3").style.color = "#000000";
<?php } ?>



This is in there several times, one for each box. You'll need to change the color code for the box color you are using. This will change the title of the box.


: Re: more boxes colors
: broekje January 06, 2009, 03:31:19 PM
Perfect I was closing at looking at the mod_s5_frontpage_display.php but stopped after a couple of 100 lines. I am somewhat new to php / javascripting.

Mike thanks for the info, very helpfull!!!

Regards,

Dirk