css queston css queston
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

css queston

Started by rubbersoul, February 27, 2005, 06:34:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rubbersoul

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!

Nibbler

Post in the correct place. Split and moved from unrelated thread.

rubbersoul

Didn't you read why I posted here? ???

Nibbler

You cannot post in the mods board - read the description.

rubbersoul

Any1 have a solution for this prob above?

Tranz

In the theme.php file of the theme you want to change

FIND:
<td align="center" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">

rubbersoul

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!

Tranz

Please post the URL to that page so I can check the code.

Tranz

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.

rubbersoul

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?

Tranz

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.

rubbersoul

Mark as fixed....don't know what I did...but tried again and this time it worked! Thanks.

rubbersoul

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!