News:

Wondering if this will always be free?  See why free is better.

Main Menu

cbi v0.5 (Custom Board Icons)

Started by Bigguy, November 11, 2006, 11:59:46 AM

Previous topic - Next topic

glennk

#400
Hi Big Guy,

Im doing as you suggested. Howevere the code from the parser does not match the code in the file ???? The bit in red shows the difference in code.


Parser says this should be the code

Quote// If the board or children is new, show an indicator.
            if ($board['new'] || $board['children_new'])
               echo '<img src="', $settings['images_url'], '/on', $board['new'] ? '' : '2', '.gif" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" border="0" />';
            // Is it a redirection board?
            elseif ($board['is_redirect'])
               echo '<img src="', $settings['images_url'], '/redirect.gif" alt="*" title="*" border="0" />';
            // No new posts at all! The agony!!
            else
               echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

            echo '</a>
            </td>
            <td class="windowbg2">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';


However this is the code as it appears in my version

Quote// If the board or children is new, show an indicator.
            if ($board['new'] || $board['children_new'])
               echo '
                  <img src="', $settings['images_url'], '/on', $board['new'] ? '' : '2', '.gif" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" border="0" />';
            // Is it a redirection board?
            elseif ($board['is_redirect'])
               echo '
                  <img src="', $settings['images_url'], '/redirect.gif" alt="*" title="*" border="0" />';
            // No new posts at all! The agony!!
            else
               echo '
                  <img src="', $settings['images_url'], '/off.gif" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

            echo '
               </a>
            </td>
            <td class="windowbg2 info">
               <h4><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>';

Bigguy

What version of the mod are you using. ???

glennk

Hi big guy

I arent using any version of the mod. Just the manual install instructions as found here :

http://custom.simplemachines.org/mods/index.php?action=parse

The code in my /Themes/default/BoardIndex.template.php

seems to differ from what the manual install parser says it should be ?

As I havent installed the mod in 2 beta 4 (due to the errors highlighted earlier) then the code shouldnt have been effected in any way by the mod ?

Bigguy

I'll post the code here when I get back for you. :)

Technoman

#404
Quote from: Bigguy on November 06, 2008, 07:41:54 AM


@ Technoman: What do you mean, another version. ???

yes for this version, 2 beta 4 (default template)

Bigguy

#405
Ok, please understand that this was quick so it may not work. You can call this a beta version I guess for SMF 2.0 beta 4.
TRY THIS ON A TEST FORUM FIRST
I have tested it but like I said it was quick. If it works I will upload it to the mod site. This also ONLY uses .png for icons NOT .gif (Also works with RC1)

glennk

Thanks for taking the time to do this. Ill add a new forum on my hosting and plug in the mod. Ill let you know how it goes but it may be after the weekend before I get it sorted.

I have all my old files and icons saved from 1.1.6. The images are all .gif. Is it just a matter of renameing the files .png ??

Bigguy

No I think you can't do that but try it anyway, ya never know.

glennk

seems to work big guy. No errors in log.

Also you can just rename your .gif files to .png via ftp and they will work.

Great mod and glad to have it functioning again.

Bigguy

Thats great to hear Glenn. Glad you like it. ;)

glennk

thanks big guy. Maybe 1 issue

When I dont have a folder uploaded for a particular board it does not revert back to standard. Instead it says :

no icon set

Bigguy

I'll take a look at the code later and see what I can do maybe.

marcimila

Hi to All.
I have a problem with this mod.
I use CBi the last version, and the SMF 1.1.7.

I installed the mods and it run perfectly when I create the incon like on_XX.gif of off_xx.gif all in the same folder
here: www.rogerk.net/forum/Themes/default/images/ [nofollow]

BUT............

If I try to create the folders for each different board....like

www.rogerk.net/forum/Themes/default/images/icons/NuomberBOard/on.gif
The image not display.


I need to use this,  becouse I Have about child board and the classical on_XX.gif off_XX.gif not work with child board.


Please Help me!
And tnx for the great Mod!

Marcello

Bigguy

Check permissions on the icons and board id folders and check to see if there are any errors in the logs. What version of the mod are you using. ???

MSLOGOS

HI!!!

I'm trying to install cbi on dilbermc, but i can't make it works! :-[ .But i know there is something i must be doing wrong, becouse it looks that it works for some other dilbermc users :(


Files attached, if  someone can help me with this.

Thanks in advance.


PD: For dilber mc, images should be in default folder too?

tks.




d0brin

I dont kno is it posted somewhare in this HUGE thread this question (but i cant now sit and search for all 21 pages to find it so..) My question is..whare form teh admin panel is the editing of the custom icons?

Kindred

Quote from: d0brin on November 17, 2008, 12:01:09 PM
I dont kno is it posted somewhare in this HUGE thread this question (but i cant now sit and search for all 21 pages to find it so..) My question is..whare form teh admin panel is the editing of the custom icons?

1- laziness is no excuse. If we all acted that way, then nothing would get done.

2- none. this mod allows you to add icons directly to your server using a defined naming scheme. As long as you use tghe correct name, there is no need for any admin insterface.
Сл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."

d0brin

so with one word said...How to add Custom Icons?....

Bigguy


RoH

hello i am stuck..

the code to be replaced... looks like this in boardindex.template.php
// 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], '" />';
// 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], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
', $board['description'];


how do i make a change..

default theme on 1.1.7 and latest MOD version..

plz help

Advertisement: