Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

board color?

Aloittaja the-wanted, kesäkuu 01, 2011, 08:13:50 IP

« edellinen - seuraava »

the-wanted

hey
i really need help with a easy thing.
i wondering how can i make every board with a diffrent color?

i would be greatful for help thanks!!

mashby

Could you be a little bit more specific? Do you mean your board index (where all boards are listed) or the posts/topics in each board?
Always be a little kinder than necessary.
- James M. Barrie

the-wanted

Lainaus käyttäjältä: mashby - kesäkuu 01, 2011, 08:19:20 IP
Could you be a little bit more specific? Do you mean your board index (where all boards are listed) or the posts/topics in each board?

board index (where all boards are listed)

mashby

Should have asked this too...which version of SMF? Mind providing a link to your site too? I'm assuming you want the link text for the board name to be a different color or possibly something else?
Always be a little kinder than necessary.
- James M. Barrie

the-wanted

Lainaus käyttäjältä: mashby - kesäkuu 01, 2011, 08:29:08 IP
Should have asked this too...which version of SMF? Mind providing a link to your site too? I'm assuming you want the link text for the board name to be a different color or possibly something else?
¨
i am using smf rc3 , i dont think you need a link to the site as i am using the default theme and yes i want the link text for the board name to be a different color

mashby

OK...this might work. In Themes/default/BoardIndex.php, you should find a line like this:
<td class="info">
<a class="subject" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>';
You can see that a name is getting defined. You could also make a class or an id out of that (id is likely just fine), so something like this:
<td class="info">
<a class="subject" href="', $board['href'], '" id="b', $board['id'], '" name="b', $board['id'], '">', $board['name'], '</a>';
Then in Themes/default/css/index.css, you could add CSS definitions for each ID. You'll need to do the above or inspect each link to find the name or id if you do the above. The board we are currently posting in is b34, so you would need to define that something like this:
a#b34 {color:#000;}Changing #000 to the color of your choice. Rinse and repeat for each b# you have. With any luck, you have all of your boards figured out as if you add any, you'll have to edit the index.css if you want a different color for the new board.
Always be a little kinder than necessary.
- James M. Barrie

the-wanted

hi

i have a quastion how do i know the board name , as you found "b34"?

btw thanx for taking time to help me

mashby

I use Firefox/Firebug and right-click link, do Inspect Element. You'll see it in there. Otherwise, View Source and hunt through that. You can also go through Admin > Modify Boards. On that page you'll see "modify" links there. Hover over those and you'll see boardid=#. Use that number and don't forget to add a b in front of it.
:)
Always be a little kinder than necessary.
- James M. Barrie

the-wanted

Lainaus käyttäjältä: mashby - kesäkuu 02, 2011, 07:10:25 AP
I use Firefox/Firebug and right-click link, do Inspect Element. You'll see it in there. Otherwise, View Source and hunt through that. You can also go through Admin > Modify Boards. On that page you'll see "modify" links there. Hover over those and you'll see boardid=#. Use that number and don't forget to add a b in front of it.
:)

oh thnx ,  i will test it in few :D

the-wanted

#9
EDIT: it worked thanx , btw i need help with another thing . how do i put diffrent images besides diffrent boards names :D ?

mashby

Did you also make the edit to BoardIndex.template.php?
Always be a little kinder than necessary.
- James M. Barrie

the-wanted

Lainaus käyttäjältä: mashby - kesäkuu 02, 2011, 08:10:18 AP
Did you also make the edit to BoardIndex.template.php?
it worked now thanx , btw i need help with another thing . how do i put diffrent images besides diffrent boards names  ?

mashby

Always be a little kinder than necessary.
- James M. Barrie


the-wanted

hi again !

i installed fuzzy rc4 on my forum and i am  about to change colors for boards. it seem to be a bit unique . the metod is not working , i have been testing stuff but still no luck . the unique thing is that the theme doesnt have a bordindex.php but it doesBoardIndex.template.php .so i make the changes there but still didnt work. any help ?

theme : http://www.simplemachines.org/community/index.php?topic=404353.msg2814459#msg2814459

Deaks

the-wanted did you get this working?  I have marked this as solved until you get back to us.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

the-wanted


Advertisement: