cbi v0.5 (Custom Board Icons)

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

Previous topic - Next topic

Bigguy

@ Davey D.: Thos look like the right areas for the code and the right way to have the icon folders as well. In order to find the board id's hover your mouse over the board name and look to the bottom left corner of your browser. You will see a url there with a number in it. That number is the board id. :)

Davey D.

2 screenshots below - looks like the individual forum links go away.

Thanks for the 'board number' tip - the red icon (off.png) indicates I got that part right.

Bigguy

Than either you are taking to much of the original code away or not enought of it. In the boardindex.template.php make sure all of this gets removed:

// 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], '" />';



Bigguy

And in the messageindex.template.php make sure allof this gets removed:

// 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], '" />';

dyrome

Hy all i have a little problem

i get this error :8: Undefined index: no_icon

: /var/www/virtual/dyrome.nl/htdocs/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 176

this is the line in boardindex.template line 176
                  echo '<img src="', $board_nonew_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';

Thanks in advanced

Bigguy

You shouldn't get that. Maybe the mod did not install all the way. Check your modifications.english.php and make sure the text string has been put in.

fangweile

It finally works perfectly in my dilbermc theme without any forum error logs. THanks a lot for this great mod. ^_^

Bigguy

Your very welcome and I'm glad you like it. :)

forepro

Hi Bigguy,

Thanks for this great mod.  :)

Could you tell me how to manually edit classic theme?
The only relevant code I can find in BoardIndex.template.php is

<td class="windowbg" width="6%" align="center" valign="top"><img src="', $settings['images_url'], $board['new'] ? '/on.gif" alt="' . $txt[333] . '" title="' . $txt[333] : '/off.gif" alt="' . $txt[334] . '" title="' . $txt[334], '" border="0" /></td>

Thanks in advance!

Bigguy

Have you tried replacing that with what I give you in the mod. ???

forepro

Yes I tried but it gives me script error.
Sorry I have absolutely no idea about php.
Probably I've inserted the code wrongly.
It will really help if someone can show me how to insert the code like the mod site.
Which code to be add before or after which code.  Or what code should be replaced by what... stuff like that..

Thanks!!

Bigguy

If you post the file you are having trouble with I will see what I can do later tonight when I get back on.

forepro

Awesome!!

Here are the files.

Big thanks to you!

HappyChinchilla

Hi Bigguy,

Were you able to remove the New Posts/No New Posts icons and text in cbi-1a? I installed it to my 1.1.5 forum, but the icons and text are still there. Would you please help me?

Thanks.

Nica

I am getting confused with the folders for this mod.
I have 1.1.5 and am using the default theme. I uploaded the mod but have not applied it because of my confusion after reading the notes first.

When I look in forum/themes/default/ , am I to make a new folder icon folder here?
When I look one step further n images , there is an icon folder already existing. Do I ignore that one?

I am really lost at the put  on.gif, on2.gif,  and off .gif in that folder part. ::)

I'd appreciate it if you'd straighten mr out a bit.
I tried uploading the icons to the default theme images folder/post folder anf the icon showed in Edit Icons and on the post bt not on the index board.

www.Mom-Me-dearest.com

fangweile

Yes you must create a directory  "icons" in your /themes/default/
and your icons must be in this url  /themes/default/icons/boardid/on.gif

Nica

Quote from: fangweile on June 30, 2008, 07:27:46 AM
Yes you must create a directory  "icons" in your /themes/default/
and your icons must be in this url  /themes/default/icons/boardid/on.gif

[/color][/b]
I will do that. I'd really like to use this mod. But what do mean by the icons must be this url?

I apologize for my need for further direction but the good book says, "ye have not because ye ask not"

Kindred

???   he was pretty clear.

You must add your board images into the (new) icons directory directly under your theme directory. (not the existing images/icons directory)

so, you will create themes/default/icons
you will create theme/default/icons/BOARDID for each board that you want a custom icon.
and you will put on.gif, on2.gif and off.gif into each of the BOARDID directories

and if'n you're referring to the xtian book...   "he helps those who help themselves..."   :)
Слова
Украина

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

Nica

Quote from: Kindred on July 01, 2008, 07:32:00 AM
???   he was pretty clear.

You must add your board images into the (new) icons directory directly under your theme directory. (not the existing images/icons directory)

so, you will create themes/default/icons
you will create theme/default/icons/BOARDID for each board that you want a custom icon.
and you will put on.gif, on2.gif and off.gif into each of the BOARDID directories

and if'n you're referring to the xtian book...   "he helps those who help themselves..."   :)

Thank you for the clarification.
I have received lots of help since joining and making use of the community. By reading the threads I often have not even needed to post a question. It's been very beneficial to getting my site running well.

But one not so beneficial thing I find is that occasionally, responders make you feel stupid.
I always read and search before posting a query here. (helping myself) O:)
I am sure the" What part don't you get?" flavor, steers away many an easily intimidated Newbie.

But I will continue to ask when something is not so clear to Me. I have learned a lot and hope to continue to do so and even help someone else down the line. ("Each one...Teach one")

I was clear on the creating a new icon folder. But at the risk of sounding even stupidier...I still do not understand what is meant by:
put on.gif, on2.gif and off.gif into each of the BOARDID directories

I would really appreciate clarification on that from anyone who may be able to do so for a struggling Newbie like myself. :-\
Thanks.

mom-me-dearest.com

Davey D.

When you 'mouse-over' a board's name, the http link should appear in the status bar of your Web browser. Within that http link you should see the board ID (ie., http://www.mycoolforum.com/index.php?board=29.0). Write that number down, or save a tree and paste to Notepad.

Fire up Gimp, Fireworks, Photoshop, or whatever and create icons with the names, "on.gif" and "off.gif" and "on2.gif." Within the folder of the theme you are using you need to create one folder, "icons."  Within that folder you need to create a folder for each board, using the example above you would have folders like this: /whateverThemeDirectory/icons/29/ and put the icons you created within each board folder. So each folder should have 3 icons, most likely different icons for each board.

Get it, Got it, Good! :)

Advertisement: