0
Welcome Guest! Login
0 items Join Now

Cool Fire mod and a quick general question

    • Peter Mee's Avatar
    • Peter Mee
    • Sr. Rocketeer
    • Posts: 105
    • Thanks: 0

    Cool Fire mod and a quick general question

    Posted 18 years 2 months ago
    • Hi All

      Last night I had an idea - wouldn't it be cool if my users could alternate between the three Fire variations on my scout group site ( www.carrickscouts.ie ). I had some time this afternoon and got it done!

      I've added three new buttons in the 'access' area and have them switching themes on demand. In addition, I also managed to integrate this with smf which is using the RT smf fire theme. This means that the selected style carries through across site & forum. This is VERY cool (but you can't see it because forums are members only, sorry).

      I'm very pleased with this and now only need to make the user setting 'stick' by storing permanently somehow (next project).

      Anyway, in doing this, I've hit a small issue and wonder if someone might like to point me in a direction. Have a look at the site and switch to snowfire mode. Note the 75th anniversary logo (top left). This module is a user module in which I've built a table containing the image. The image is created with the tan background as part of the png file.

      Now, switch themes. Note that image still has the tan background and is less 'integrated'?

      I'd like to find a way to have a particular variation of the image appear there depending on the theme chosen. I've tried the following to no avail;

      -Adding php code to the module content source. This is ineffective as the pho is rendered to the page as HTML.

      -Adding a DIV with an ID and setting that divs background property in the relevant fire variant stylesheet.

      I thought the latter would work but no joy. Maybe I am having a problem with CSS hierarcy vodoo. My module code looks like this at the moment. Any help appreciated. I know I could implement this with transparency but it's the principal of the thing I'm after: how can I alter content based on theme setting (a cookie or session variable).

      (if people are interested, I can do a write up on how to implement the style switching. Let me know.)

      <table border="0" align="center">
      &nbsp; &nbsp; <tbody>
      &nbsp; &nbsp; &nbsp; &nbsp; <tr>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td width="100" height="100">
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <div align="center">            
      <a href="index.php?option=com_content&task=category&sectionid=1&id=52&Itemid=103">            <img width="146" vspace="2" hspace="0" height="146" border="0" alt="" src="/images/stories/75_100_logo_tan.jpg" />
      </a>               
      <span style="font-size: 8pt; color: rgb(204, 204, 204);">click for 75/100 news</span>             
      </div>
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </td>
      &nbsp; &nbsp; &nbsp; &nbsp; </tr>
      &nbsp; &nbsp; </tbody>
      </table>

Time to create page: 0.046 seconds