News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

cbi v0.5 (Custom Board Icons)

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

Previous topic - Next topic

Bigguy

Ok, slipped my mind. I will update soon. :)

keyboard

Quote from: Bigguy on May 12, 2008, 08:27:35 PM
Ok, slipped my mind. I will update soon. :)

I will name my next child after you !!!   ;) ;) ;)

Bigguy

lmao; well don't go that far, lol but thanks. :)

cytoplasm

Hello.  I am trying to use hxxp:cbi15.zip [nonactive] with smf 115 and a custom theme Wow-DK.  i downloaded everything from this web page.

Anyhow, I was wondering if you could help me.  I would like to add the custom icons to the forums, but the find and replace of code doesn't match exactly, and whenever i try to do it, it really messes up the forums.

This is what i see, and am replaceing


         // Is this board itself new?
         if ($board['new'])
            echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
         // Is one of this board's children new, then?
         elseif ($board['children_new'])
            echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
         // I guess it's not new at all.
         else
            echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

         echo '</a></td>
            <td rowspan="2" align="left">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
         ', $board['description'];


Is there anything else i can post to show you so that maybe you can help me?

thanks

Bigguy

Try replacing just this:

// Is this board itself new?
         if ($board['new'])
            echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
         // Is one of this board's children new, then?
         elseif ($board['children_new'])
            echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';

cytoplasm

I just cant seem to make it work.  below are links to the files.  If you have time maybe you could please look at them?  maybe its the theme?  I would be very appreciative of any help.

hxxp:www.buffaloruninn.com/smf/BoardIndex.template.php [nonactive]

hxxp:www.buffaloruninn.com/smf/MessageIndex.template.php [nonactive]


Kindred

???

That's not going to work.
linking to a php file on a server means that the server is going to try to run/parse the php.
Слова
Украина

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."

cytoplasm

its just a file server.  its not where the forums are at.  you can shift-right click, and save file as.  then it will d/l it.

Kindred

nope... sorry, those links try to parse...  remember, there is html mixed up with the php.

If you want help, then you need to either attach the files, or give someone access to your system.

But that should not be needed.  This mod change all of 10 lines....
Слова
Украина

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."

keyboard

Quote from: Bigguy on May 12, 2008, 08:27:35 PM
Ok, slipped my mind. I will update soon. :)

Just a friendly reminder to see if you still have the time to use this with 1.1.5.....

cytoplasm

okay sorry about the mix up.

I know its just 10 lines, but for some reason, it doesn't seem to work for Wow-DK mod.  I am also using smf115

attached are my files.  I appreciate any help.  thank you.

keyboard

Hi

Just a friendly nudge to remind you.......Hopefully you will find some time to make your awesome mod compatible with 1.1.5


Ron

Vandaahl

I'm installing this mod manually on the default 1.1.5 theme, and I noticed the code I must replace should contain this variable: $board['is_redirect']. But it's not there, so I guess it was removed or renamed for SMF 1.1.5? Anyway, the mod works regardless, but it generates this error in the log:

8: Undefined index: is_redirect

The error is gone after you remove this part of your MOD code:


// Is it a redirection board?
if ($board['is_redirect'])
	
echo 
'<img src="'$settings['images_url'], '/redirect.png" alt="*" title="*" border="0" />';

keyboard

Hi Vandaahl

I am waiting for the Author to prepare this mod for 1.1.5.    I have noticed your last message. Can you tell me if I install it manually and remove the code you had mentioned, will I have any problems?

I run the default template with very little mods..

Thanks
Ron

Vandaahl

Quote from: keyboard on May 31, 2008, 09:31:00 PM
Hi Vandaahl

I am waiting for the Author to prepare this mod for 1.1.5.    I have noticed your last message. Can you tell me if I install it manually and remove the code you had mentioned, will I have any problems?

I run the default template with very little mods..

Thanks
Ron

Hi Ron, It worked for me, so I don't see why it won't work for you :) As long as you don't use "redirection boards", whatever those are. Never even heard of them.

keyboard

Quote from: keyboard on May 19, 2008, 10:18:44 AM
Quote from: Bigguy on May 12, 2008, 08:27:35 PM
Ok, slipped my mind. I will update soon. :)

Just a friendly reminder to see if you still have the time to use this with 1.1.5.....

When ever you find some time, can you code this for 1.1.5 ?

Marcus Forsberg

Where do I find that addon for png files?

Bigguy

I have been a bit busy lately but I will get this coded for 1.1.5 The addon might be in the charter members board. There should also be a copy of it on my site.

Marcus Forsberg

Yes I know that it's in your site, but I wondered where in your site?

Davey D.

Does not look like that topic has been updated recently, but here is the URL:

http://www.smfhelper.info/forum/index.php/topic,27.0.html

Advertisement: