Pictures for each board..

Started by -Kia-, April 20, 2007, 02:19:28 PM

Previous topic - Next topic

-Kia-

Not sure if this is the board this question goes on..

in YaBB you could put a unique picture on the left of each board on the index page, can you do this in SMF? Do I need to download a mod (if so please give a link)?

dartagnan32

Hello,
I am searching for the same, tell me if you find one.
I found one mod which almost does the same but it is not that great.
This mod allows you to set on, on1 and off images for each board.
It does not add an image in plus of these on, on1 and off images. (these images are the ones that tell you if there are new posts or not in a forum normally). But you can probably manage something with this.
the mod is situated there: cb1
Download the last CB1 version. But be careful this works only on the default template at first. I guess some changes have to be done so that it works in other templates... I just installed it so I still have to figure out this.
If anyone knows of a better mod, please tell us...

hope this helps

N3lson

In BoardIndex  of your theme
==================// find //=======================
// 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" />';



================// Replace for //====================

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


~~~~~~~~~~~~~~~~~~~~

»»» Where /board/ folder go to your Image folder of the theme you use
»»» $board id - Is the board link to put the pictures
example - the borad ID of graphics and templates of SMF is 34
http://www.simplemachines.org/community/index.php?board=34.0

So the images you must put in board folder (Themes/yourtheme/images/board) are
on34 -- new posts
on234 -- new posts in childboard (if you have)
0ff34 -- no new posts

Hope you understand



I´m Portuguese Yeah


Advertisement: