Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: the-wanted - kesäkuu 01, 2011, 08:13:50 IP

Otsikko: board color?
Kirjoitti: the-wanted - kesäkuu 01, 2011, 08:13:50 IP
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!!
Otsikko: Re: board color?
Kirjoitti: 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?
Otsikko: Re: board color?
Kirjoitti: the-wanted - kesäkuu 01, 2011, 08:25:11 IP
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)
Otsikko: Re: board color?
Kirjoitti: 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?
Otsikko: Re: board color?
Kirjoitti: the-wanted - kesäkuu 01, 2011, 08:31:06 IP
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
Otsikko: Re: board color?
Kirjoitti: mashby - kesäkuu 01, 2011, 09:06:48 IP
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.
Otsikko: Re: board color?
Kirjoitti: the-wanted - kesäkuu 02, 2011, 06:50:56 AP
hi

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

btw thanx for taking time to help me
Otsikko: Re: board color?
Kirjoitti: 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.
:)
Otsikko: Re: board color?
Kirjoitti: the-wanted - kesäkuu 02, 2011, 07:19:19 AP
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
Otsikko: Re: board color?
Kirjoitti: the-wanted - kesäkuu 02, 2011, 07:42:16 AP
EDIT: it worked thanx , btw i need help with another thing . how do i put diffrent images besides diffrent boards names :D ?
Otsikko: Re: board color?
Kirjoitti: mashby - kesäkuu 02, 2011, 08:10:18 AP
Did you also make the edit to BoardIndex.template.php?
Otsikko: Re: board color?
Kirjoitti: the-wanted - kesäkuu 02, 2011, 08:15:46 AP
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  ?
Otsikko: Re: board color?
Kirjoitti: mashby - kesäkuu 02, 2011, 08:17:40 AP
This one might work on your site.
http://custom.simplemachines.org/mods/index.php?mod=1266

See if it installs?
Otsikko: Re: board color?
Kirjoitti: the-wanted - kesäkuu 02, 2011, 09:05:21 AP
Lainaus käyttäjältä: mashby - kesäkuu 02, 2011, 08:17:40 AP
This one might work on your site.
http://custom.simplemachines.org/mods/index.php?mod=1266

See if it installs?

yupp worked , thnx
Otsikko: Re: board color?
Kirjoitti: the-wanted - kesäkuu 14, 2011, 03:40:20 IP
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
Otsikko: Re: board color?
Kirjoitti: Deaks - heinäkuu 14, 2011, 03:17:08 IP
the-wanted did you get this working?  I have marked this as solved until you get back to us.
Otsikko: Re: board color?
Kirjoitti: the-wanted - heinäkuu 17, 2011, 01:10:12 IP
yupp its working now  ;)