News:

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

Main Menu

Different board Icons

Started by memo, March 15, 2004, 08:29:55 AM

Previous topic - Next topic

pinoy123

Quote from: Bigguy on December 07, 2006, 07:16:39 PM
I don't want to interupt this conversation at all. I just wanted to say that there has been a new version of cbi (custom board icons) uploaded to the mod site. it now handles child boards and is compatible with SMF 1.1 Final.

http://mods.simplemachines.org/index.php?mod=511

it only customizes the default core theme. im using dilbermc theme. is it also compatible with my theme/?

Bigguy

If you do the edits manually to the 2 files or if the two files are not in your themes folder. Otherwise no.

Sunerphey

Hi, is there any not hard way to make each forum with different icon BUT some of the forums to be with one icon with same name(not same icon uploaded 10 times with different names like on10 on11 and so on)?

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sunerphey


Kindred

not without a lot of coding...  including hardcoding (which is not recommended) or re-coding the entire structure to take informaiton from a table...

really, what you are talking about is completely re-designing the board icon interface and adding an admin section to set board icons...    go for it if you want...  but I think most people will just use the duplicate files with different names.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sunerphey


exodia

hi am i tried this but it isn't working, am not using the default theme. this is what i did. i manually added the code from the mod in to BoardIndex.template.php and    MessageIndex.template.php and the uploaded a folder in the icon folder which contained the images. The folder name as the board id no. where did i go wrong??

my board link is ..../index.php/board,30.0.html so the board id is 30 right??

Bigguy

The icon folder must be made and named to "icons" then the board id, so:

Themes/{theme name}/icons/30/on.gif,off.gif,on2.gif

dartagnan32

Hello,
I installed cbi 1.0  and my forum is using the amber template.
It seems that the icons are working only with the default template... What should I do to make it work with the amber template?

thanks a lot for your help

Kindred

read through the mod XML file and apply the modfications to your own theme files.

Also, you'll have to make the icon directories and files available in your theme directory as well.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

crapite

#171
hi ive set myself up a test forum & i trying to have different pictures for each section
so ive done the code from page 3 (i have not changed it in anyway) & setup the 3 pictures for each section which has worked fine......
but when i make new threads the picture does not change & when you hover over the picture it still says no new threads

code i used
// 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>


pictures are
off1.gif, on1.gif, on21.gif
off2.gif, on2.gif, on22.gif
off3.gif, on3.gif, on23.gif
etc, etc, etc

sorry it is working but not on my admin account but it works on all other accounts
so im happy

Bigguy


eleven0

I got a problem with this, I was going to try to apply a different theme than default one. But i don't even have those files in my theme (BoardIndex.template.php, MessageIndex.template.php).

Can someone tell me what i can to do get this mod work?

I'm using 1.1.2, camo theme.


Kindred

if you don't have the boardindex or messageindex, then you need tro apply it to the default copies, or take a copy of the default, place it in your own theme directory and modify those...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

gonzalob6

Hi. I use Ig-oh theme with smf 1.1.3. CBI mod didn't work, but here some people said it's easy:

http://www.simplemachines.org/community/index.php?topic=7370.msg676791#msg676791

I have no the same code and don't want to commit errors. Can help me?


this is my boardindex:

// If the board is new, show a strong indicator.
if ($board['new'])
{
if (empty($settings['theme_default_color']))
echo '
<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
else
{
if ($settings['theme_default_color'] == 1)
echo '
<img src="', $settings['images_url'], '/green/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 '</a></td>
<td rowspan="2" class="windowbg2" align="left">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];

Reptil

hi! At least I can do it on my forum! tnx very much  ;D ;D ;D

Andreas

thx very much.
nice work ! ( and so easy ! )

Andreas

inf4mi

I also have not default theme.
How to make it for another theme:
My theme - Saf- Multicalor

Here is code:
// If the board is new, show a strong indicator.
            if ($board['new'])
            {
               echo '<img src="', $settings['images_url'], '/on_';
                   
                                        if (empty($settings['default_theme_color']))
                                   {
                                      echo 'orange';
                                   }
                                        else
                                        {
                                      echo $settings['default_theme_color'];
                                        }
                                       
                                        echo '.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'], '/on_';
                                       
                                        if (empty($settings['default_theme_color']))
                                   {
                                      echo 'orange';
                                   }
                                        else
                                        {
                                      echo $settings['default_theme_color'];
                                        }
                                       
                                        echo'.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" />';
                                }


Thank U

Bigguy

If you run it through a package parser like this one here it will tell you all the edits and were to put them. :)

Advertisement: