forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: rubbersoul on February 27, 2005, 06:34:54 pm

Title: css queston
Post by: rubbersoul on February 27, 2005, 06:34:54 pm
Sorry...but the reason I'm asking questions through this thread is because I have no 'new message' button or 'new topic' or anything like it on the main page...all I can do is come into a thread and reply.....anyhow.....quick question:

I changed the background color of tableb because I wanted to change the look of the image when it's at full size....displayimage.php. However when I did that...of course tableb which is also found on the first page when you come to the site...(the index page) changes color. If I duplicate tableb in my css file to something like tablebbb....where can I change the class='tableb' to class='tablebbb' so that the color stays the sme on my main page and only changes when thet actually click on an image and get to the displayimage page??? Thanks!
Title: Re: Re: short url to user albums
Post by: Nibbler on February 27, 2005, 06:38:32 pm
Post in the correct place. Split and moved from unrelated thread.
Title: Re: short url to user albums
Post by: rubbersoul on February 27, 2005, 06:40:28 pm
Didn't you read why I posted here? ???
Title: Re: css queston
Post by: Nibbler on February 27, 2005, 06:42:16 pm
You cannot post in the mods board - read the description.
Title: Re: css queston
Post by: rubbersoul on February 27, 2005, 06:58:39 pm
Any1 have a solution for this prob above?
Title: Re: css queston
Post by: Tranz on February 27, 2005, 07:49:01 pm
In the theme.php file of the theme you want to change

FIND:
Code: [Select]
<td align="center" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">
Title: Re: css queston
Post by: rubbersoul on February 27, 2005, 08:10:18 pm
Nope! But thanks for the effort....I'm still getting the change done on both the main page and the displayimage page when I put it there. If you look at the images I supplied you'll see that after I altered the code you said to alter...both areas turned grey...were I only want one to turn grey and the other to stay black!
Title: Re: css queston
Post by: Tranz on February 27, 2005, 08:28:02 pm
Please post the URL to that page so I can check the code.
Title: Re: css queston
Post by: Tranz on February 27, 2005, 08:49:20 pm
I just tried out the code and it worked. Earlier, I had just adapted it from v. 1.4 and looked for the corresponding code in 1.3 without testing. However, it will look correct if you have done everything correctly.
Title: Re: css queston
Post by: rubbersoul on February 27, 2005, 08:50:34 pm
The page isn't up...I'm using IIS and localhost to view it....sorry! However, I know what the problem is...I just don't know how to solve it! Obviously tableb is refrenced all over the place....so a change there effects many areas.....What I need to know is....is there a way to change the class='' parameter just for the index.php or 'main' page in coppermine and not the displayimagepage or viseversa?
Title: Re: css queston
Post by: Tranz on February 27, 2005, 08:55:18 pm
Please specify what you have done. What exactly did you do with the code that I showed you? I thought you knew what you were doing and renamed the class to tablebbb which you said you created in .css. Did you change the background color for tablebbb?

If you have created the class in .css and call it the same in the theme.php file, it should work.

You're trying to make it harder than it is.

And I have implemented this in v. 1.4 so I know what I'm doing.
Title: Re: css queston
Post by: rubbersoul on February 27, 2005, 09:12:21 pm
Mark as fixed....don't know what I did...but tried again and this time it worked! Thanks.
Title: Re: css queston
Post by: rubbersoul on February 27, 2005, 09:38:42 pm
My mistake....not fixed! Actually...I'm kind of finding out after tinkering with this that it can't be done.....it seems that when your on the first page (regarless of the them your using) it builds the table structure from theme.php....so If I click an image and go to the displayimage.php page (the page were the picture is huge and you can scrll back and forth through them) Well that page is also built from the SAME theme.php....so consiquently it dosen't matter what you change your value to in CSS because as soon as you apply it in theme.php it changes the <td>'s background color on both pages....hence my problem from the begining. I've looked everywhere and I can't see it done anywhere...so If you have it done TD then id love to see it!