php forum
php mysql forum
php mysql smarty
 
Topic Options
#315785 - 09/23/07 01:45 PM Help needed with stylesheet
mikey81 Offline
Lurker

Registered: 09/20/07
Posts: 5

   Help needed with stylesheet to Del.icio.us Add to del.icio.us
  Digg Help needed with stylesheet Digg it
Hi, I tried to change my stylesheet and I was partly succesfull.

I just can't seem to find where the colors of the buttons in the picture below are defined.

I want to chaneg to colors of the buttons only.

Can someone give me some pointers please?



Edited by mikey81 (09/23/07 01:46 PM)

Top
#315786 - 09/23/07 03:04 PM Re: Help needed with stylesheet [Re: mikey81]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5109
Loc: Portland, OR, USA
As stated over at central; these gradients are controlled by the "tdheader" class in the stylesheet editor.

You can use various tools in firefox (such as the colorpicker) which will display the class(es) for specific areas.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#315797 - 09/24/07 12:23 PM Re: Help needed with stylesheet [Re: mikey81]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 439
Loc: SoCal
Originally Posted By: mikey81
I want to chaneg to colors of the buttons only.

Can someone give me some pointers please?


sure i can. here's what you do.

i'll give an example where you change just the 'Forum Options' button.

open up /templates/default/postlist.tpl

find:
Code:
<table width="100%" class="t_standard">
<tr>
<td class="tdheader" style="cursor: pointer" id="options_control" onclick="showHideMenu('options_control','options_popup')">
{$lang.FORUM_OPTIONS} <img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/toggle_open.gif" alt="" />
</td></tr>
</table>


note where it says 'class="tdheader"' .. that's the style that is shared by all. since you want to be specific for just buttons, you can use the 'Cascade' in Css and add another class like so:
Code:
<table width="100%" class="t_standard">
<tr>
<td class="tdheader muhaha" style="cursor: pointer" id="options_control" onclick="showHideMenu('options_control','options_popup')">
{$lang.FORUM_OPTIONS} <img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/toggle_open.gif" alt="" />
</td></tr>
</table>


now all you have to do is go to your styles editor and edit the style in questions.

go down to the Extra CSS section and paste this in it:
Code:
.muhaha {
background: hotpink;
color: #000;
}


for example. now when the browser renders that button, it cascades to the second class, which overrides the tdheader for background and color.

obviousely you aren't going with hotpink, but i use that as an example. also, you probably aren't going to use 'muhaha' either, but more likely a descriptive name like '.my-buttons'

you can do this for other parts of that template to style the other buttons as well.

now as for the pager stuff, it's a different story and once you get this first part, i can show you how to do your pager wink
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#315828 - 09/25/07 11:58 AM Re: Help needed with stylesheet [Re: sirdude]
mikey81 Offline
Lurker

Registered: 09/20/07
Posts: 5
Thx!

I have changed the file in your example and did the same with the pagecalculator. It now looks perfect.

Mike

Top


Top Posters Last 30 Days
AllenAyres 33
sirdude 17
Gizmo 15
Basil Fawlty 6
blaaskaak 5
willing 4
Grymmie 4
Who's Online
1 Registered (Grymmie), 39 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
ubb.social
by sirdude
08/06/08 01:35 PM
Team UBBDev Rides Again!
by AllenAyres
08/05/08 09:48 AM
Plesk 8.1.0 Released
by AllenAyres
08/04/08 04:38 PM
iPhone 3G
by Philipp
08/03/08 05:00 PM
[7.x] AddThis - Social Networking
by GEN
08/02/08 09:29 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
08/01/08 02:35 AM
PM Quota Checker
by sirdude
07/29/08 08:57 PM
New Mods
[7.x] AddThis - Social Networking
by Gizmo
08/01/08 01:30 AM
[7.3+] CustomTag - Photobucket Slideshow
by Gizmo
07/12/08 11:14 AM
[7.3.x] Copy forum permissions
by blaaskaak
07/09/08 02:37 PM
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
Newest Members
123456, dmol, mIRC_MASTER, pull_tiger_tail, bej
13316 Registered Users

 

 

 
fusionbb message board php hacks