Advanced search  

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]

Pages: [1]   Go Down

Author Topic: css queston  (Read 4770 times)

0 Members and 1 Guest are viewing this topic.

rubbersoul

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 92
css queston
« 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!
« Last Edit: February 28, 2005, 08:22:46 am by GauGau »
Logged

Nibbler

  • Guest
Re: Re: short url to user albums
« Reply #1 on: February 27, 2005, 06:38:32 pm »

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

rubbersoul

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 92
Re: short url to user albums
« Reply #2 on: February 27, 2005, 06:40:28 pm »

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

Nibbler

  • Guest
Re: css queston
« Reply #3 on: February 27, 2005, 06:42:16 pm »

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

rubbersoul

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 92
Re: css queston
« Reply #4 on: February 27, 2005, 06:58:39 pm »

Any1 have a solution for this prob above?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: css queston
« Reply #5 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;">
Logged

rubbersoul

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 92
Re: css queston
« Reply #6 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!
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: css queston
« Reply #7 on: February 27, 2005, 08:28:02 pm »

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

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: css queston
« Reply #8 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.
Logged

rubbersoul

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 92
Re: css queston
« Reply #9 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?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: css queston
« Reply #10 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.
Logged

rubbersoul

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 92
Re: css queston
« Reply #11 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.
Logged

rubbersoul

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 92
Re: css queston
« Reply #12 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.