Customizing SMF > Now Available

Different board Icons

(1/41) > >>

memo:
Mod Available cbi (Custom Board Icons)

Original Post
Hi everybody

In yabbse we had discussions about different Icons for every board. Is in smf also something planned?
look here to see what i mean:

http://www.yabbse.org/community/index.php?thread=26086/0

[Unknown]:
This is easily accomplished.  You can use the BoardIndex template to have a separate on.gif or off.gif for every $board['id'].  Where you want to look is after this comment:

// If the board is new, show a strong indicator.

Before each .gif, just add ', $board['id'], ' and then make onID.gif's for every board.

-[Unknown]

Cypher7:
hey, sorry to be digging up older threads,


--- Quote ---Before each .gif, just add ', $board['id'], ' and then make onID.gif's for every board.
--- End quote ---

Ive been trying to do this, and due to my very limited knowledge of scripting I can't manage it. If someone could elaberate a bit more or post a sample bit of script as to point me in the right direction that would be great...

where do I add in the ', $board['id'], ' to


--- Code: ---// If the board is new, show a strong indicator.
   if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// This board doesn't have new posts, but its children do.
   elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all!  The agony!!
   else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

  echo '</td>
--- End code ---

!?

Thanks for the help!

Ben_S:

--- Code: ---// If the board is new, show a strong indicator.
   if ($board['new'])
echo '<img src="', $settings['images_url'], '/on', $board['id'], '.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// This board doesn't have new posts, but its children do.
   elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2', $board['id'], '.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all!  The agony!!
   else
echo '<img src="', $settings['images_url'], '/off', $board['id'], '.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

  echo '</td>

--- End code ---

Cypher7:
Great stuff! I see how it works now... the penny has dropped! I'm learning, I'm learning!!  ;D


thanks for that  :)

Navigation

[0] Message Index

[#] Next page

Go to full version