Change bg color Change bg color
 

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

Change bg color

Started by modiba, April 17, 2006, 04:54:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

modiba

Hello,

I am using the hardwired theme.

When a user is viewing the images I would like to highlight the background color of the cell which displays the page number they are currently on.

I have seen that by changing the background color of 'tableb_compact' in the stylesheet I can do this, but this also changes the main background color, which I don't want to do.

Can some one explain how to do this?

Thank you for your help.

Greg

Nibbler

Copy the relevent template from themes/sample/theme.php into your own theme's theme.php and modify your copy.


// Template used for tabbed display
$template_tab_display = array('left_text' => '<td width="100%" align="left" valign="middle" class="tableh1_compact" style="white-space: nowrap"><b>{LEFT_TEXT}</b></td>' . "\n",
    'tab_header' => '',
    'tab_trailer' => '',
    'active_tab' => '<td><img src="images/spacer.gif" width="1" height="1" alt="" /></td>' . "\n" . '<td align="center" valign="middle" class="tableb_compact"><b>%d</b></td>',
    'inactive_tab' => '<td><img src="images/spacer.gif" width="1" height="1" alt="" /></td>' . "\n" . '<td align="center" valign="middle" class="navmenu"><a href="{LINK}"><b>%d</b></a></td>' . "\n"
    );


Add a new class into the active_tab section and define it in your style.css

modiba

Thanks for your help.

When I make the changes you said I am losing the cell to the left of the page numbers that states how many files are on how many pages.
ie. The page numbers are now spanning across the whole of the table.

You can see what I mean by visiting: http://www.modiba.com/gallery/thumbnails.php?album=10

How can I get the other cell to appear again?

Thanks again,
Greg

Nibbler

I'd guess you missed out the 'left_text' section when you copy/pasted.

modiba

Hi,

Nope, I have got the left text there...

Any other ideas?

Thanks,
Greg

Joachim Müller

you require login on the page you refered to, so post a non-admin test user account with it if you want supporters to take a look.

modiba

Hello,

Thanks for getting back to me.

You can login using:

username: support
password: password

Thanks again,
Greg