Mod Available cbi (Custom Board Icons) (http://custom.simplemachines.org/mods/index.php?mod=511)
Original Post
Hi everybody
In yabbse we had discussions about different Icons for every board. Is in smf also something planned?
look here to see what i mean:
http://www.yabbse.org/community/index.php?thread=26086/0
This is easily accomplished. You can use the BoardIndex template to have a separate on.gif or off.gif for every $board['id']. Where you want to look is after this comment:
// If the board is new, show a strong indicator.
Before each .gif, just add ', $board['id'], ' and then make onID.gif's for every board.
-[Unknown]
hey, sorry to be digging up older threads,
QuoteBefore each .gif, just add ', $board['id'], ' and then make onID.gif's for every board.
Ive been trying to do this, and due to my very limited knowledge of scripting I can't manage it. If someone could elaberate a bit more or post a sample bit of script as to point me in the right direction that would be great...
where do I add in the
', $board['id'], ' to
// 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" />';
echo '</td>
!?
Thanks for the help!
// 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>
Great stuff! I see how it works now... the penny has dropped! I'm learning, I'm learning!! ;D
thanks for that :)
u want make as my forum ?
http://www.forumzone.host.sk/index.php
tell me
Hi edi67!
yes that is what I am trying to achieve! Thanks to the help above though I'm just about there!
Just a matter of putting it live now...! me thinks maintenance mode might be required for a min! ::)
ok thats done... working fine... thanks for the help!
I just can't figure out how to make Child Boards have different icons...? Is it possible? :-\
Do the same thing, but in MessageIndex.template.php.
-[Unknown]
genius...!
thanks a million [?]... now I got some work to do! :)
Me too
THanx found this late
I'm sorry for digging up such an old thread but I need a bit of help with this.
I found where the code goes.....no problem there. But how will it know which icon to use for which board? Do I need to name each .gif the board Id number? Do I still put the .gif in the images directory?
I'm so new to this stuff it is still very confusing to me. If someone could walk me through this step by step that would be a great help. Thanks for any help you can give me.
Quote from: edi67 on May 12, 2004, 09:07:18 AM
u want make as my forum ?
http://www.forumzone.host.sk/index.php
tell me
You are using my forum skin icons without a permission from BBK ::)
how ??
im sorry for this but i sent already 2 pm in this forum and one in BBK forum for tell u this i liked very much this icons and i gave them for my forum
nothing u read ??
sorry but i not wanted take them without ask u i was thinking u already read my PM :o
Quote from: edi67 on September 30, 2004, 10:51:19 AM
how ??
im sorry for this but i sent already 2 pm in this forum and one in BBK forum for tell u this i liked very much this icons and i gave them for my forum
nothing u read ??
sorry but i not wanted take them without ask u i was thinking u already read my PM :o
I didn't receive any PM's from you ::)
Anyway you can keep them but please don't use any other buttons from bbk forum cuz i designed them only for my forum skin :)
Quote from: edi67 on September 30, 2004, 10:51:19 AM
how ??
im sorry for this but i sent already 2 pm in this forum and one in BBK forum for tell u this i liked very much this icons and i gave them for my forum
nothing u read ??
sorry but i not wanted take them without ask u i was thinking u already read my PM :o
Just asking for them doesn't mean you can take them. Get a reply okaying it first. It's common sense, at least to me it is...
Quote from: babylonking on September 30, 2004, 07:28:13 PM
I didn't receive any PM's from you ::)
Anyway you can keep them but please don't use any other buttons from bbk forum cuz i designed them only for my forum skin :)
Now you had a reply. :)
Quote from: Anguz on September 30, 2004, 09:27:07 PM
Now you had a reply. :)
Can I get one too? ;D
Quote from: haup9 on September 29, 2004, 10:21:38 PM
I'm sorry for digging up such an old thread but I need a bit of help with this.
I found where the code goes.....no problem there. But how will it know which icon to use for which board? Do I need to name each .gif the board Id number? Do I still put the .gif in the images directory?
I'm so new to this stuff it is still very confusing to me. If someone could walk me through this step by step that would be a great help. Thanks for any help you can give me.
Thanks!!
See the link to this board, SMF Coding Discussion?
http://www.simplemachines.org/community/index.php?board=60.0
Notice the 60 there? That's this board's number. That's how you know ;).
-[Unknown]
Quote from: haup9 on September 30, 2004, 10:50:44 PM
Quote from: Anguz on September 30, 2004, 09:27:07 PM
Now you had a reply. :)
Can I get one too? ;D
Quote from: haup9 on September 29, 2004, 10:21:38 PM
I'm sorry for digging up such an old thread but I need a bit of help with this.
I found where the code goes.....no problem there. But how will it know which icon to use for which board? Do I need to name each .gif the board Id number? Do I still put the .gif in the images directory?
I'm so new to this stuff it is still very confusing to me. If someone could walk me through this step by step that would be a great help. Thanks for any help you can give me.
Thanks!!
I guess not :P
Try starting a new topic if no one replies by the time you see this.
I have it working! Thanks for all the help. ;D
Quote from: haup9 on October 01, 2004, 07:44:39 PM
I have it working! Thanks for all the help. ;D
Good job. :)
This samples
http://www.simplemachines.org/community/index.php?topic=21865.0
sorry fo goin bak to this old topic but i would like to kno if there is a way so that if no image is set for a board it select the default on/off images? also have 2or more board with the name image w/o having to set a diff id. thanks in advance
It would be complicated to do that, I'm afraid. Almost makes more sense, in that case, to add a column to the boards table.
-[Unknown]
Well, if he still wants it hardcoded, which all this tip is anyway, he could have this array right before the foreach
// Boards with custom icon: board ID => true.
$icons = array(
1 => true,
5 => true,
);
Then at the beginning of the foreach add this
$board['icon'] = isset($icons[$board['id']]) ? $board['id'] : '';
And then in the img tags, instead of using $board['id'], use $board['icon'], ie
"', $settings['images_url'], '/on', $board['icon'], '.gif"
Just read that you may want to use the same image for more than one board, then you could do it like this
// Boards with custom icon: board ID => icon's suffix.
$icons = array(
1 => '1',
5 => '1',
);
$board['icon'] = isset($icons[$board['id']]) ? $icons[$board['id']] : '';
THIS IS WHAT I HAVE NOT SURE IF ITS CORRECT
/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
// Boards with custom icon: board ID => icon's suffix.
$icons = array(
1 => '1',
5 => '1',
);
$board['icon'] = isset($icons[$board['id']]) ? $icons[$board['id']] : '';
foreach ($category['boards'] as $board)
{
echo '
<tr class="windowbg2">
<td class="windowbg" width="6%" align="center" valign="top">';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/custom/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'], '/custom/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'], '/custom/off_', $board['id'], '.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
The line
$board['icon'] = isset($icons[$board['id']]) ? $icons[$board['id']] : '';
goes at the beginning of the foreach, not before. I'll write it clearer in a moment...
<search for>
foreach ($category['boards'] as $board)
{
echo '
<tr class="windowbg2">
<td class="windowbg" width="6%" align="center" valign="top">';
// 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" />';
</search for>
<replace>
// Boards with custom icons.
$icons = array(
1 => '1',
2 => '2',
5 => '1',
);
foreach ($category['boards'] as $board)
{
$board['icon'] = isset($icons[$board['id']]) ? '_' . $icons[$board['id']] : '';
echo '
<tr class="windowbg2">
<td class="windowbg" width="6%" align="center" valign="top">';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on' . $board['icon'] . '.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['icon'] . '.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['icon'] . '.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
</replace>
In icons array you use the board's ID for key and the icon's suffix for value. The boards that aren't added to the array, will use the default icons. If you use the same value for more than one board, they'll share the custom icon.
In the images dir where you have on.gif, on2.gif and off.gif, you add the custom icons with the suffixes used in the $icons array, ie: on_1.gif, on2_1.gif, off_1.gif.
sup bro worked like a charm. take a look at it http://kevmundial.com/board ;) ;) :)
Quote from: LiL_J on December 27, 2004, 11:21:32 PM
sup bro worked like a charm. take a look at it http://kevmundial.com/board ;) ;) :)
Glad it worked. :)
I may give it an admin setting and package it someday...
Quote from: Anguz on December 28, 2004, 12:31:08 AM
I may give it an admin setting and package it someday...
that would b great
That would be awesomE!
Could u give more detail to this explanation of making topic images, its confusing,
QuoteCode:
// 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>
So type a bunch of board image files for each image ? Explan what u mean Im lost sorry
Im getting frustrated >:( with this I tried alot of times to use the code and I cant get it,
This is what I've been doing, I have 24 seperate forums in 5 categories, I want different icons for all 24 boards, 1 on & one off icon for each 24 forums. Ok, Now I go to :
// 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>
Than I tried to do this...
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on', $board['13'], 'ontextbattle.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['13'], 'on2textbattle.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['13'], 'offtextbattle.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
echo '</td>
Ok so that does the Textbattle forum, Now I have 23 other forums, how do I add each one with different images ? And also.... was that done properly ?
I dont get what Im doing :'(
Just basically tell me how to put each board id and each picture url thing in order so I dont get an error message like I usually do when I do it myself
Quote from: homeslice on January 19, 2005, 01:06:33 AM
So type a bunch of board image files for each image ? Explan what u mean Im lost sorry
The first one ($board['id']) was correct. You just have to create files in the images directory:
on##.gif
on2##.gif
off##.gif
Where ## is the id; for example, 13.
-[Unknown]
Ok I understand how to use one icon for a certain forum, but I dont get the multiple icon part, where do u put the next boardid and pic link, could u post up an example of 5 different forums on 1 board with on & off switches (the code) so I can see what u mean
Again.
YOU DO NOT PUT THE IDS IN THE FILE.
The only place you put the ids is in the FILENAMES of the IMAGES. You have:
on##.gif
on2##.gif
off##.gif
As I said above. Do NOT PUT ANY IDS in the TEMPLATE FILE. It should ONLY HAVE the 'id' part, which should not be NUMBERS, but rather an I and then a D, both LOWERCASE. Why is that not clear?
When you make that modifcation, all your board's icons will show up as red X's. Once you create the icons, and put them in the proper place, the X icons will go away.
-[Unknown]
you're not getting what im asking, im not saying that, I got the gif files right, I dont know where im suppose to put the code for each forum,
like this ?
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on', $board['13'], 'on13.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['13'], 'on213.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['13'], 'off13.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
echo '</td>
than if I want the next board what do I do, type it all again,
like this?
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on', $board['14'], 'on14.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['14'], 'on214.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['14'], 'off14.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
echo '</td>
see I get what u mean about the red x's and all, I jus dont know where to put each code, I have to type a bunch of paragraphs like that for 24 forums ???
Quote from: homeslice on January 19, 2005, 10:30:36 AM
// 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>
just use this code!
thats the default code mystica im looking for the code to have multiple ones, not just one set of on and off, I need that code customized, an example
that IS the code for the different board icons for each board! no need to modify the code, that's what everyone is trying to explain to you!
the forum will use $board['id'] to add the board id automatically in the image url! you just need that code and all the different images, that's it!
could u show me an example please, with 2 or 3 forums and not just one
why is everyone getting mad at me and not explaining it like I asked
it doesn't matter if you have 1, 5 or 200 boards, you just need the code (like it was posted) once. just try it out, it does work!
I did try and all I get is errors, why dont u just show me an example >:(
Errors? It doesn't help that you don't tell us what they say. Example of what? Forums using this? Several mentioned in this topic. Of the code? Lots of it here as well. Go back to the first page and re-read what was written, find what you didn't understand, figure it out and there you go. It's been explained in very good detail, the only way it can get easier is with a packaged mod or someone doing it for you. You should change your attitude as well, that'll help a lot too.
I'm getting annoyed because you ask:
How do I do this?
I answer:
Do X?
You say:
I tried to do Y, it didn't work.
I say:
Because you did Y. Do X.
You say:
Okay, I know X is wrong so I did Y.
I say:
Do X. Y is wrong. Y will give you errors.
You say:
Okay, Y didn't work again.
You're not listening. I give up.
Edit: if this was a comedy, it would be very very funny, but it's not and frankly it seems to me you're not even trying to read what we've posted, because everything you're posting is based on the first assumption you've made, as if none of the things we've said have even registered.
-[Unknown]
Ok look all Im asking for is an example of the code with more than one gif so I can see how to do it, why do u sit there and say X & Y stuff trying to make me feel stupid, its actually pissing me off, this is suppose to be a board for support right ? All Im saying is you keep showing me the code with only one set of on & off gifs, There has to be 24 different ones for my board so that doesnt make sense at all, and now u say u giving up, fine, if u cant show me that than forget it,
// 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>
If this code works for more than one show me an example rather than just showing it to me with one gif per on & off, show me 2 or 3 so I can see how to do it
thats all I asked..........................
Maybe I am not explaining myself well enough
echo '<img src="', $settings['images_url'], '/on', $board['id'], 'on13.gif", on15.gif, on16.gif alt="', $txt[333], '" title
do I put all the things like that or how is it done ?
No. The code posted, for the third time, is all you need. No changes. Just paste it in, exactly as posted. Without a single number added. Not one letter.
You're not stupid, you're just ignoring parts of what I'm posting. I've seen people do it at my schools in the past. I don't know why, but they ignore it... and it annoys me here, because it's right up there for you to read at any time. But, I'm not calling you stupid - I've seen some of the smartest people do it. I don't think I'll ever understand it, though.
Change it not at all. If you have problems, please post exactly what they are, and give a link showing the problem.
BabylonKing uses this. He probably uses the exact code posted above. He has not added any id numbers. He has not changed the code. He did not edit it. Here is his URL:
http://www.babylonking.net/forum/
-[Unknown]
$board['id'] has the actual IDs of all the boards stored in it. SMF takes care of getting them, the IDs, one by one for you. You just need to post that code. You may need to clear up the concept of variable and array in programming, cause it seems that's the bit of knowledge you're missing here. HIH.
Errors:
QuoteTemplate Parse Error!
There was a problem loading the /Themes/colorclassic/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
:(
Aight cool, I finally understood after Anguz explained that the code is for the userid so u dont have to type it a bunch of times, thanks Unknown and everyone else for ur help
Homeslice,
That error means there's a typo of some kind in there. If you click on 'try accessing this file directly' it will tell you where it is (which line of the code). Probably a quicker way is to just go back to the clean default template and try re-pasting the block of code in there.
You don't change a thing in the code they've given you. Not a THING. You don't have to - the board does all the image switching using that one little piece that goes $board['id']. It HAS to say only $board['id'] - not $board['3'] or anything else. You do not change the names of the .gifs in the actual code. Nothing.
YOU only do 2 things:
1. Copy exactly the piece of code they've typed up top in this thread exactly where they've said to put it in your template. Don't even change one period or comma. Exactly as they've typed it. It's quite short.
2. Name your images for each board with the numbers of that board and upload them.
The names of the default images are:
on.gif
on2.gif
off.gif
Your special images for Board 1 need the names:
on1.gif
on21.gif
off1.gif
Board 2 needs:
on2.gif
on22.gif
off2.gif
Board 3 needs:
on3.gif
on23.gif
off3.gif
etc. So if you have 20 boards, you'll have a whole list of 60 gifs to upload to the images file.
You can do it.
Whups, you got it. Knew you could. ;)
Hey Helen thats the kinda response I needed 2/3 days ago, but thanks much! Thats some good info for someone else who might not understand and read the post, thats exactly what I wanted to know
I just noticed that the icons don't show up in your boardindex, although they're in the source code. The table is a bit messed, I'm guessing probably from trying the code here, meant for the default theme, in your modified one. Very nice layout you have there, but then the code for the template is a bit different. Could you find in your theme the part that deals with the on, on2 and off images and post it here? I'll try to tell you what to do to make it work.
Love this idea, but if you really have over 20 boards, won't you hit a problem?
Specifically, on21.gif will be used for sub-forums of #1, and for forum #21.
IMHO, using a simple dash between them would work out fine... on12.gif, , on12-2.gif.
-[Unknown]
True, and very easy to do. :)
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on', $board['id'], '-2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
ehm.. i have the board id's on my forums/boards but what if i have more than one subboard so i case
i have named a board called windows
which has sub-boards
-windows 95
-windows 98
-windows ME
-Windows XP
--windows XP Home
--Windows XP Pro
-Windows NT
--Windows NT WKS
--Windows NT SRV
-Windows 2000
--Windows 2000 Pro
--Windows 2000 Server
--Windows 2000 Advanced Server
How it's set up then
for the main board i got now this
board id
on_xx.gif
off_xx.gif
for the first sub board on2_xx.gif
!? ;)
how should i declare that in order to work nicely
so when one post is posted in win95 so the board logo should give me a windows logo within a text as 95 is on the main board but actually it's a sub-board posting...
and so on for each sub board ???
so look at this URL (http://burglar.pointclark.net/index.php?action=forum)
I'm afraid you don't know, in that template, which child board it is.
-[Unknown]
i read all the discussion here, but i think there are something new in 1.1 beta 3 as i couldnt make it.
anyone to do this for 1.1 beta 3 ?
it works fine in SMF 1.1 beta 3 and beta 4...
this code is in BoardIndex.template.php
[code]
// 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 it with this code:
// 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" />';
[/code]
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Now, a question for [unknown] or other power php coders...
Is there a way to determine if a file exists... and if not, default to the un-numbered icons?
Yeah, using file_exists($settings['theme_dir'] . '/images/...gif').
-[Unknown]
so, in theory... this should work... right?
(just a sanity check...)
// individual board icons!
if (file_exists($settings['theme_dir'] . '/images/on_' . $board['id'] . '.gif'))
$board_new_img=$settings['images_url'], '/on_' . $board['id'] . '.gif';
if (file_exists($settings['theme_dir'] . '/images/on2_' . $board['id'] . '.gif'))
$childboard_new_img=$settings['images_url'], '/on2_' . $board['id'] . '.gif';
if (file_exists($settings['theme_dir'] . '/images/off_' . $board['id'] . '.gif'))
$board_nonew_img=$settings['images_url'], '/off_' . $board['id'] . '.gif';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="',$board_new_img,'" 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="',$childboard_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all! The agony!!
else
echo '<img src="',$board_nonew_img,'" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
The theory is right, but that code won't work, because you don't assign $board_new_img except when the file does exist (so it will be undefined/whatever it was before otherwise.)
-[Unknown]
WHOOPS! forgot the ELSE!
thanks for the quick check...
// individual board icons!
if (file_exists($settings['theme_dir'] . '/images/on_' . $board['id'] . '.gif'))
$board_new_img=$settings['images_url'], '/on_' . $board['id'] . '.gif';
else
$board_new_img=$settings['images_url'], '/on.gif';
if (file_exists($settings['theme_dir'] . '/images/on2_' . $board['id'] . '.gif'))
$childboard_new_img=$settings['images_url'], '/on2_' . $board['id'] . '.gif';
else
$childboard_new_img=$settings['images_url'], '/on2.gif';
if (file_exists($settings['theme_dir'] . '/images/off_' . $board['id'] . '.gif'))
$board_nonew_img=$settings['images_url'], '/off_' . $board['id'] . '.gif';
else
$board_nonew_img=$settings['images_url'], '/off.gif';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="',$board_new_img,'" 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="',$childboard_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all! The agony!!
else
echo '<img src="',$board_nonew_img,'" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
Ok
This is what I have
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/edu/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'], '/edu/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'], '/edu/off', $board['id'], '.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
echo '</td>
It works great, however, I only need to have this on 5 boards under category 'colleges & universities' and I have 30 other boards. How do I avoid creating duplicate images for the other boards that require no special image icon?
Quote from: Kindred on September 06, 2005, 03:46:20 PM
WHOOPS! forgot the ELSE!
thanks for the quick check...
// individual board icons!
if (file_exists($settings['theme_dir'] . '/images/on_' . $board['id'] . '.gif'))
$board_new_img=$settings['images_url'], '/on_' . $board['id'] . '.gif';
else
$board_new_img=$settings['images_url'], '/on.gif';
if (file_exists($settings['theme_dir'] . '/images/on2_' . $board['id'] . '.gif'))
$childboard_new_img=$settings['images_url'], '/on2_' . $board['id'] . '.gif';
else
$childboard_new_img=$settings['images_url'], '/on2.gif';
if (file_exists($settings['theme_dir'] . '/images/off_' . $board['id'] . '.gif'))
$board_nonew_img=$settings['images_url'], '/off_' . $board['id'] . '.gif';
else
$board_nonew_img=$settings['images_url'], '/off.gif';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="',$board_new_img,'" 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="',$childboard_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all! The agony!!
else
echo '<img src="',$board_nonew_img,'" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
Actually, you've got a bug in there as you're concatenating the code with a , instead of a .
Here's the entire block, with that fixed.
// Individual board icons. If a custom image exists, use it. Otherwise use the default image.
if (file_exists($settings['theme_dir'] . '/images/on_' . $board['id'] . '.gif'))
$board_new_img=$settings['images_url']. '/on_' . $board['id'] . '.gif';
else
$board_new_img=$settings['images_url']. '/on.gif';
if (file_exists($settings['theme_dir'] . '/images/on2_' . $board['id'] . '.gif'))
$childboard_new_img=$settings['images_url']. '/on2_' . $board['id'] . '.gif';
else
$childboard_new_img=$settings['images_url']. '/on2.gif';
if (file_exists($settings['theme_dir'] . '/images/off_' . $board['id'] . '.gif'))
$board_nonew_img=$settings['images_url']. '/off_' . $board['id'] . '.gif';
else
$board_nonew_img=$settings['images_url']. '/off.gif';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $board_new_img,'" 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="', $childboard_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all! The agony!!
else
echo '<img src="', $board_nonew_img,'" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
In your opinion what happens if a comma used instead of a dot ?
Quote from: Elmacik on November 06, 2005, 01:17:13 PM
In your opinion what happens if a comma used instead of a dot ?
You get a parsing error.
I and others dont
simple question
is it possible for any 1 to show me how this is done?
(http://img96.imageshack.us/img96/384/likeso0vr.jpg)
where it has the custom icon, but still, beside the custom icon it has rather there's new post and if theres no new post?
thanks for a week long no help.
it worked. thanks again 8)
Any sample of those who manage to get it working ? :)
Any idea of where i could find a nice icons online ?
Depending on what type of icons you are looking for you can find a few online in deviantart.com and in many KDE Gnome related website. kde-look.org and gnome-look.org
Thanks Jay :)
Whats the right codes to get this tricks work on SMF 1.1 RC 2 ?
It should be the same. Maybe just a slightly different.
Quote from: JayBachatero on May 15, 2006, 03:14:20 PM
It should be the same. Maybe just a slightly different.
Manage to get it working perfectly but i've got a problems wif the icons now :P
Can't find a nice icons to put in my site :P
Look in the Graphics board.
Ok can some one please send me there boardinsex.template.php with all the different icons per board please?
Quote from: karimali831 on August 05, 2006, 05:38:40 PM
Ok can some one please send me there boardinsex.template.php with all the different icons per board please?
What exactly are you talking about?
you can change your icons within your forum easily if that is what you are wanting to do
no rose... what karimali wants is differnet icons for each section...
And the best way, vinspire, is to make your own, of course...
Karimali... did you even try to apply the code hacks yourself?
I tried but it just doesn't work guys i have poor knowledge of coding please someone send me there boardindex.template.php with all the different icons per board ill greatly appreciate it :D
:'(
Quote from: karimali831 on August 06, 2006, 10:26:50 AM
I tried but it just doesn't work guys i have poor knowledge of coding please someone send me there boardindex.template.php with all the different icons per board ill greatly appreciate it :D
do u have the icons yet or not in the 1st place ?
Quote from: Kindred on August 06, 2006, 12:32:58 AM
no rose... what karimali wants is differnet icons for each section...
And the best way, vinspire, is to make your own, of course...
Karimali... did you even try to apply the code hacks yourself?
Ok sorry, maybe I am not sure what she was asking, I have different icons on each section on my board, I thought that is what was being asked.
RebelRose yes can you please send me you boardindex.template.php in your FTP server /SMF/DEFAULT
Please? so I can look, thats what I want.
Quote from: karimali831 on August 07, 2006, 06:58:22 PM
RebelRose yes can you please send me you boardindex.template.php in your FTP server /SMF/DEFAULT
Please? so I can look, thats what I want.
you can view my board by going to the MY Site (http://rebelrosenetworks.com/forum/index.php) I do not use the default theme but if you see my board and that is what you are looking for I can help you with that.
No I do not see the different icons per board :(
Can some one send me there boardindex.template.php so I can see all the different icons per board please?
Icons are something that you can put on your board it is not something that comes on the boardindex.php, it is something that is added to a theme.
Add whatever pictures you are going to use to your site, I just added a folder with them in it, when you create a board in the admin panel, instead of just putting the board name, insert the following code:
<img src="http://yourdomain/forum/iconlocation/nameoficon"> name of board</img>
and it was that simple, check to make sure that the link information is correct according to your own domain setup.
RebelRose... I don't think that is a standard part of SMF...
What happens when you have an extra long baord naem with special characters or spaces.
The modification listed here uses the boardID and a change to the code in boardindex.template.php (which IS a theme file) to check for the existance of on_##.GIF, on2_##.gif and off_##.gif in which case it shows that icon for the board that matches the board ID, esle it shows the generic on, on2 and off icons.
karimali... I have made significant other modifications to boardindex.template.php, so I can't just give you mine.
find this in your 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], '" 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" />';
completely replace that code with the following:
// Individual board icons. If a custom image exists, use it. Otherwise use the default image.
if (file_exists($settings['theme_dir'] . '/images/on_' . $board['id'] . '.gif'))
$board_new_img=$settings['images_url']. '/on_' . $board['id'] . '.gif';
else
$board_new_img=$settings['images_url']. '/on.gif';
if (file_exists($settings['theme_dir'] . '/images/on2_' . $board['id'] . '.gif'))
$childboard_new_img=$settings['images_url']. '/on2_' . $board['id'] . '.gif';
else
$childboard_new_img=$settings['images_url']. '/on2.gif';
if (file_exists($settings['theme_dir'] . '/images/off_' . $board['id'] . '.gif'))
$board_nonew_img=$settings['images_url']. '/off_' . $board['id'] . '.gif';
else
$board_nonew_img=$settings['images_url']. '/off.gif';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $board_new_img,'" 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="', $childboard_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all! The agony!!
else
echo '<img src="', $board_nonew_img,'" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
Quote from: RebelRose on August 10, 2006, 10:54:38 AM
<img src="http://yourdomain/forum/iconlocation/nameoficon"> name of board</img>
you own
that was so much easier then the other way there explaining
Quote from: Assistance on August 10, 2006, 02:51:06 PM
Quote from: RebelRose on August 10, 2006, 10:54:38 AM
<img src="http://yourdomain/forum/iconlocation/nameoficon"> name of board</img>
you own
that was so much easier then the other way there explaining
Great I hope it helped.
The largest image I have on my board is 64x32, and the longest board names are;
Board News and Announcements
Complaints or Service Problems
However there is still room for longer names.
Should you want to change the icons for New Messages or No New Messages to where they are not the same on every board then I would use the method that Kindred posted.
I dont see how I could possible have a board title that long to have it effect it
I would just type that in the board description
with your tip Rose, I actually didnt add images (yet) but I realized I can you html
so currently I have the center tag on them
now I sleep
(thanks again)
Your very welcome, glad to help
Thanks kindred, I replaced the whole code as you said in the boardindex.template.php and replace it on the server. But I still don't understand what else I have to change round...
www.forums.ds-clan.net
thanks
Karim
oo I am editing Themes/default/BoardIndex.template.php is that right? From that replacment code you sent this is the changes I made:
// Individual board icons. If a custom image exists, use it. Otherwise use the default image.
if (file_exists($settings['theme_dir'] . '/images/on_' . $board['1.0'] . 'on2.gif')) --HERE-- And the icon stays the same :(
$board_new_img=$settings['images_url']. '/on_' . $board['id'] . '.gif';
else
$board_new_img=$settings['images_url']. '/on.gif';
if (file_exists($settings['theme_dir'] . '/images/on2_' . $board['id'] . '.gif'))
$childboard_new_img=$settings['images_url']. '/on2_' . $board['id'] . '.gif';
else
$childboard_new_img=$settings['images_url']. '/on2.gif';
if (file_exists($settings['theme_dir'] . '/images/off_' . $board['id'] . '.gif'))
$board_nonew_img=$settings['images_url']. '/off_' . $board['id'] . '.gif';
else
$board_nonew_img=$settings['images_url']. '/off.gif';
// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $board_new_img,'" 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="', $childboard_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all! The agony!!
else
echo '<img src="', $board_nonew_img,'" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
... :'( ... Remember I using the enterprise theme not the default.
well, obviously, if you are using a different theme, you will need to replace the code in the boardindex.template.php of the theme you are using.
Yes... my code shows the DEFAULT icons if no special icon is present.
if (file_exists($settings['theme_dir'] . '/images/on_' . $board['1.0'] . 'on2.gif'))
See? IF the FILE EXISTS, use it....
special icons need to be named on_##.gif, off_##.gif and on2_##.gif, where the ## is the actual number of the board you want the icon for and they need to be uploaded to your theme directory/images
Alright Kindred, I'm kind of understanding this now, But I have 17 boards and would want 17 distinct icons. Where in the code do I put in the file name of 17 different icons and make sure they display on the right board? Thanks.
Didn't you read any of this thread?!?!?!
You do not have to put ANY specific names in the code. That is the whole point of this code snippet.
Install this code snippet.
Use the correct file names.
it will work if you have 17 or 1700 boards...
Haha, alright sorry. I did read it, but I guess I'm lacking faith here and just need to go ahead and try it out before trying to understand it. Thanks for the quick reply!
EDIT: I tried it but no images are showing up. I named them "on1.gif", "on21.gif", and "off1.gif" as suggested earlier. Am I naming them wrong? Should they be "on_1.0.gif", "on2_1.0.gif", and "off_1.0.gif" for Board 1.0 ? or does it not matter?
-ps. I'm running Dilber MC theme on 1.1RC2, if that matters.
1- yes, the code that I quoted requires the underscores (hence the reason I said, in every post, use on_##.gif etc...)
2- yes, other themes may require you to modify that specific theme's boardindex.template.php (if present)
Thanks, but I'm still left with 2 questions:
1. in renaming the image files, does it matter if they're labeled "1" or "1.0" for Board#1 ?
2. I added your code in my boardindex.template of the modified theme I'm using (Dilber MC), Is there other modifications that I need to do to that template besides the code you've listed here?
Thanks again.
1. the file should be named on_1.gif
2. no, that code should be all you need.
Still not working. I don't know what's wrong. In the box where my new image should be, all I have is a little white box with a red "x" and "No new posts" in text. :-\
Place the icons in the images folder of the Dilber theme.
haha! Thank you! That did the trick. I appreciate it very much :D
Quote from: [Unknown] on January 20, 2005, 01:38:31 AM
The first one ($board['id']) was correct. You just have to create files in the images directory:
on##.gif
on2##.gif
off##.gif
Where ## is the id; for example, 13.
-[Unknown]
I understand how to perform this mod, but I do have 1 question.
Why is it that we need to have 3 images for each board?
I understand that one is displayed when there is new material, and another displays when there is nothing new. When does the third image display?
Thanks!
VB
It gets displayed if there is a new post in a child board.
Thanks Big Guy!
Can't that just be the same as if there is a new message in THAT board?
I'm working on creating new icons. An "on" icon and an "off" icon for each board. Can't the third one just be the "on" icon but saved as a different filename?
Is there any benefit to having a 3rd different icon? Or is it just personal preference?
Thanks!
VB
You could make on.gif and on2.gif the same image, that would do that. and there is code around for adding different icons to different boards like this here (http://www.smfhelper.com)
yeah, that coding is located earlier in this thread. But is there any benefit to having a 3rd icon for the parent board?
Thanks!
VB
on.gif > New Posts in Parent Board
on2.gif > New Posts in Child Board
off.gif > No New Posts
-AwwLilMaggie
Oh:
Want to add to the tip..
This really helped me..
I tweaked it some more and helped a lot..
// If the board is new, show a strong indicator.
if (in_array($board['id'], array(9,10,84,89,95,153)))
{
if ($board['new'])
echo '<img src="', $settings['images_url'], '/custboard/'.$board['id'].'.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/custboard/'.$board['id'].'.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
else
echo '<img src="', $settings['images_url'], '/topic/custom/'.$board['id'].'_off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';
}
else
{
if ($board['new'])
echo '<img src="', $settings['images_url'], '/onpost.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'], '/onpost.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/offpost.gif" alt="', $txt[334], '" title="', $txt[334], '" />';
}
I put my custom images in another folder. so if you want to use this and dont want to use custboard as the folder change it in the coding..
Quote from: Kindred on September 06, 2005, 03:14:55 PM
replace it with this code:
// 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" />';
I used Kindred's code after creating 45 icons for my 15 boards and it worked. BUT... When I click on a parent board, and the page reloads to show just it and it's children, my icons no longer show.
Take a look at the forum: http://www.german-pride.com/SMF/ (It a Vintage Volkswagen based site. NOT NeoNazi Racists! :D)
Can you help me?
THANKS!
VB
Try making an off2_10.gif and an on2_10.gif that might work, or have you got those already.
Quote from: Bigguy on September 15, 2006, 01:29:52 AM
Try making an off2_10.gif and an on2_10.gif that might work, or have you got those already.
I have a 10th board and it's icons are on_10.gif, on2_10.gif, & off_10.gif
Was your suggestion of "off2_10.gif" a typo, or do I need some off2_##.gif files too?
THANKS!
VB
I would try that and see if they show up. Just make an off2_10.gif, see what that does.
Quote from: Bigguy on September 15, 2006, 01:43:42 AM
I would try that and see if they show up. Just make an off2_10.gif, see what that does.
I'll have to give it a shot tomorrow. I'm not sure what that would do though?
Did you go to my site and view the icons and then click on "Beetle Galleries" for example? It will show all the child boards without their assigned icons. It reverts back to theme default icons. :(
Thanks!
VB
Yes I did see that. Did you try what I suggested. ???
I got a chance to make an off2_10.gif image today and to upload it into the appropriate directory, but it didn't solve my problem.
My problem still exists where I have the different Icons displayed for all the parent boards, but the child boards do not access my custom icons. They revert back to the default icons for my theme. I'm not php expert, but I believe the problem lies in the php code.
I'm building a website for Vintage Volkswagen enthusiasts. View my SMF by going here: www.german-pride.com/SMF/ When you click on the image of the Beetle at the top of the list of boards, you will see the child boards, and their reverted theme default icons.
Can anyone suggest some changes?
Thanks!
VB
you do know that the child board have board numbers of their own? i.e. board #8 is BEETLE - Late Model Legends - 1968-2003 VW Aircooled Beetles
Kindred,
Thanks for the reply. To answer your question, "Yes" I did know that each board has it's own ID #. If you hover over the link, the board number is displayed in the status bar of your browser. (That's how I knew which icon to assign to each board.) I have a set of late model beetle icons that I created for that board called on_8.gif and on2.gif and off_8.gif. For whatever reason, they are not displaying when you click on the parent board.
Is it possible that there is another php file that needs to be altered with that same script that's listed earlier in this thread?
For instance if template.display.php is altered with that script, is there another php file that is accessed when a child board list page is displayed?
THANK YOU!
VB
hmmm.... I's suggest looking in messageindex.template.php, since that is where the messages for the parent board are displayed...
Thanks Kindred, but I've got a problem... I don't know what I'd look for. :-[ :(
I can open up a php file and make changes, but I don't have any clue as to how it to write it.
Anybody got any suggestions?
THANKS! You guys are the best volunteering your time to assist us newbies!
VB
I guess I could just kill the child boards and make them all parent boards, but I want to cut out the need for a lot scrolling on the main page.
Got any ideas?
Thanks!
VB
This was submitted by one of my members, maybe it would help. PLEASE backup first before trying this:
Click (http://www.smfhelper.com/index.php/topic,27.msg581.html#31)
Bigguy,
Thanks for the reply! I read that post on your site, but the only problem I have is that I DO have seperate icons for every board. It's just that for some reason, the child board icons don't show. All the icons have been assigned to the various boards.
got any ideas?
THANKS!
VB
If the permissions are all right and the images are named right, and in the right folder AND you have double checked the code you have with the original code then....no, not right now I don't have anymore ideas but I will keep my eyes open for you, sorry I couldn't help more.
Quote from: Bigguy on September 20, 2006, 02:43:41 AM
If the permissions are all right and the images are named right, and in the right folder AND you have double checked the code you have with the original code then....no, not right now I don't have anymore ideas but I will keep my eyes open for you, sorry I couldn't help more.
Well, All I did was cut and paste what was here. But everything else is right on. Would it help for me to post up my display.index file? (Or whatever the file was that I had to alter to get the custom icons)
THANKS!
VB
Have you tried that code that was posted at my site. it might help. Sorry, it's getting late here.
Hello
Does anyone still have the mod download for this?
When I go to the original source the download is down.
Hi, in classic theme where i should change the code?
// Show the "Board name Topics Posts Last Post" header.
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
<tr class="titlebg">
<td colspan="2">', $txt[20], '</td>
<td width="6%" align="center">', $txt[330], '</td>
<td width="6%" align="center">', $txt[21], '</td>
<td width="22%" align="center">', $txt[22], '</td>
</tr>';
/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
and boards. (see below.) */
foreach ($context['categories'] as $category)
{
// Show the category's name, and let them collapse it... if they feel like it.
echo '
<tr>
<td colspan="5" class="catbg" height="18">';
// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';
echo '
', $category['link'], '
</td>
</tr>';
// Only if it's NOT collapsed..
if (!$category['is_collapsed'])
{
/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<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>
<td class="windowbg2" align="left" width="60%">
<a name="b', $board['id'], '"></a>
<b>', $board['link'], '</b><br />
', $board['description'];
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '<i class="smalltext"><br />
', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i>';
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
$childPosts = 0;
$childTopics = 0;
foreach ($board['children'] as $child) {
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
$childPosts += $child['posts'];
$childTopics += $child['topics'];
}
echo '
<i class="smalltext"><br />
', $txt['parent_boards'], ': ', implode(', ', $children), '</i>';
}
echo '
</td>
<td class="windowbg" valign="middle" align="center" width="6%">', $board['topics'] + $childTopics, '</td>
<td class="windowbg" valign="middle" align="center" width="6%">', $board['posts'] + $childPosts, '</td>';
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
echo '
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">
', $board['last_post']['time'], '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[525], ' ', $board['last_post']['member']['link'], '
</span>
</td>
</tr>';
}
}
}
// Show the "New Posts" and "No New Posts" legend.
if ($context['user']['is_logged'])
{
echo '
<tr class="titlebg">
<td colspan="2" align="left">
<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new_some.gif" alt="' . $txt[333] . '" border="0" /> <img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new_none.gif" alt="' . $txt[334] . '" border="0" />
</td>
<td colspan="3" align="right" class="smalltext">';
// Show the mark all as read button?
if ($settings['show_mark_read'])
echo '
<a href="', $scripturl, '?action=markasread;sa=all">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" />' : $txt[452]), '</a>';
echo '
</td>
</tr>';
}
Ok, I am using the code at the begining, but have no idea...it will come up just text and no image.
You need to upload the image to right location. eg. on4.gif (for the board ID of 4 with new posts)
-AwwLilMaggie
No code modification, only image names??
of course you need to make code modifications.
by default, the code calls for on.gif, on2.gif and off.gif.
the code, as suggested above (not at the beginning, look for one of my more recent posts) uses on_#.gif, on2_#.gif and off_#.gif (where # is the number of the board)
I have made this changes but return "Template Parse Error!
There was a problem loading the /Themes/classic/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly."
Original
/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<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>
<td class="windowbg2" align="left" width="60%">
<a name="b', $board['id'], '"></a>
<b>', $board['link'], '</b><br />
', $board['description'];
Modified
/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td class="windowbg" width="6%" align="center" valign="top"><img src="', $settings['images_url'], '/on_' . $board['id'] . '.gif" alt="', $txt[333], '" title="', $txt[333] : '/off_' . $board['id'] . '.gif" alt="', . $txt[334] . '" title="' . $txt[334], '" border="0" /></td>
<td class="windowbg2" align="left" width="60%">
<a name="b', $board['id'], '"></a>
<b>', $board['link'], '</b><br />
', $board['description'];
Can you tell me whats wrong??
Thx
<td class="windowbg" width="6%" align="center" valign="top"><img src="', $settings['images_url'], $board['new'] ? '/on_' . $board['id'] . '.gif" alt="' . $txt[333] . '" title="' . $txt[333] : '/off_' . $board['id'] . '.gif" alt="' . $txt[334] . '" title="' . $txt[334], '" border="0" /></td>
Thank you very much.
Its nice now
Has anyone figured out how to make child boards have their own different unique icons yet?
Thanks!
VB
You do the same thing, but you do it in MessageIndex.template.php instead of BoardIndex.template.php.
-AwwLilMaggie
Quote from: AwwLilMaggie on October 19, 2006, 08:09:30 PM
You do the same thing, but you do it in MessageIndex.template.php instead of BoardIndex.template.php.
-AwwLilMaggie
Doing this will allow your child boards to have their own unique icons?
VB
Yup.
-AwwLilMaggie
Quote from: AwwLilMaggie on October 19, 2006, 09:16:21 PM
Yup.
-AwwLilMaggie
AWW!!! NOW YOU TELL ME!!! ;D
I could have used your expertise a while ago when I first launched my SMF!
Thank you! I still may do this!
VB
I have packaged this code up and uploaded it to the mod site and you can also find it on my site to in the "SMF Helper Released Packages" board on the forum. Hope this helps a bit.
^^ ty
Your very welcome. It has not been approved yet by the mod team but has been tested on SMF 1.1 RC2 and RC3 and installs, uninstalls fine.
I don't need different icons for each board, but only for each category, something like the docs site of the SMF ( http://docs.simplemachines.org/ ). Any code for this thing?
smf 1.1
help with this one. i edited this boardindex.template at the default and upload my images but the icons doesnt seems to attached at the right board (check the image link)
http://img465.imageshack.us/img465/9246/untitled1my0.jpg
why??? anyone???
because you have child boards.
on.gif is for new posts in the title board.
on2.gif is for new posts in a child board under the title board.
off.gif is for no new posts in either the main board or the child board(s).
So, if you wer eusing my version of the code, you would need to upload:
on_###.gif
on2_###.gif
off_###.gif
for each of the main boards (in your case 117, 81, and 87)
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
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/?
If you do the edits manually to the 2 files or if the two files are not in your themes folder. Otherwise no.
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)?
No....
And.. a hard way ?
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.
ok, thanks.
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??
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
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
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.
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
Try cbi-1 and see if it works any better for you:
http://custom.simplemachines.org/mods/index.php?mod=511
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.
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...
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 (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'];
hi! At least I can do it on my forum! tnx very much ;D ;D ;D
thx very much.
nice work ! ( and so easy ! )
Andreas
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
If you run it through a package parser like this one here (http://www.smfhelper.info/forum/package.php5) it will tell you all the edits and were to put them. :)
Quote from: Bigguy on January 14, 2008, 05:18:00 PM
If you run it through a package parser like this one here (http://www.smfhelper.info/forum/package.php5) it will tell you all the edits and were to put them. :)
Thank U for help.
But
UI have downloaded -
cbi-1.zip (2KB)Then I go to - SMF Helper Package Parser Beta.Upload your package (ZIP or TAR.GZ file): - I choose this archive.
Choose your SMF version: 1.1.4
Operation: Install
Show: I took 2 variants - All Edits (default) and Only Theme edits (editing a theme to support a mod)
Here is answer:
ERROR: The package-info.xml file is invalid!
Debugging Information
Error message: String could not be parsed as XML
Source: /home/bigguy/public_html/smfhelper/forum/package.php5:133
Errors encountered while parsing XML file:
1. Entity: line 1: parser error : XML declaration allowed only at the start of the document
2. <?xml version="1.0"?>
3. ^
Stack Trace:
#0 /home/bigguy/public_html/smfhelper/forum/package.php5(133): SimpleXMLElement->__construct(' <?xml versi...')
#1 /home/bigguy/public_html/smfhelper/forum/package.php5(94): parsePackageInfoXML('/tmp/smf_xml/pa...', 'install', 'theme')
#2 /home/bigguy/public_html/smfhelper/forum/package.php5(756): parseArchive('/tmp/php1ybunF', 'install', 'theme')
#3 {main}
XML File:
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<id>bigguy:cbi05</id>
<name>cbi, 1.0</name>
<version>1.0</version>
<type>modification</type>
<install>
<readme>readme.txt</readme>
<modification>modification.xml</modification>
</install>
<uninstall>
<modification reverse="true">modification.xml</modification>
</uninstall>
</package-info>
Here are all the edits for my cbi mod:
In your BoardIndex.template.php find:
Quote// 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], '" />';
and replace with:
Quoteif ($board['new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on.gif'))
$board_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on.gif';
else
$board_new_img=$settings['images_url']. '/on.gif';
echo '<img src="', $board_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
} elseif ($board['children_new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on2.gif'))
$childboard_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on2.gif';
else
$childboard_new_img=$settings['images_url']. '/on2.gif';
echo '<img src="', $childboard_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
} else {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/off.gif'))
$board_nonew_img=$settings['theme_url']. '/icons/' . $board['id'] . '/off.gif';
else
$board_nonew_img=$settings['images_url']. '/off.gif';
echo '<img src="', $board_nonew_img,'" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
}
Save and close; then in MessageIndex.template.php find:
Quote// 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], '" />';
And replace with:
Quoteif ($board['new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on.gif'))
$board_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on.gif';
else
$board_new_img=$settings['images_url']. '/on.gif';
echo '<img src="', $board_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
} elseif ($board['children_new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on2.gif'))
$childboard_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on2.gif';
else
$childboard_new_img=$settings['images_url']. '/on2.gif';
echo '<img src="', $childboard_new_img,'" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
} else {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/off.gif'))
$board_nonew_img=$settings['theme_url']. '/icons/' . $board['id'] . '/off.gif';
else
$board_nonew_img=$settings['images_url']. '/off.gif';
echo '<img src="', $board_nonew_img,'" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
}
Save and upload....make sure to KEEP THE ORIGINALS ;)
Quote from: Bigguy on January 15, 2008, 11:42:57 AM
Here are all the edits for my cbi mod:
Thanks, but I do not have such code, that your wrote,
I have like this one, I have written:
http://www.simplemachines.org/community/index.php?topic=7370.msg1382479#msg1382479
Replace what you have with this but keep backups of the original files and see if it works. Your code is pretty much the same and should have the same effect.
Thanks
I changed files, forum does not have errors.
How to say to forum where to take icons.
I read reedme:
forum/Themes/default/icons/1/on.gif
I found where my icons of my theme are:
/forum/Themes/safmc101/images/1/on.gif
/forum/Themes/safmc101/images/1/on2.gif
...
/forum/Themes/safmc101/images/2/on.gif
and so on.
But I do not see new icons my forum.
Now it has not icon, It has "alt" message: "New messages"
Then I looked code:
<img src="http://...../forum/Themes/safmc101/images/on.gif" alt="New messages"...
Help, Thanks
P.S.
My theme has different colours, and so there such : on_blue.gif on_green.gif
The 1 in this string is a folder that is named after the board id:
forum/Themes/default/icons/1/on.gif
This is were your icons have to go.
Make sure to put them in the theme folder of the theme you are using; mine are here:
Themes/Sea_Side/icons/2/off.gif
Quote from: Bigguy on January 15, 2008, 06:32:07 PM
Make sure to put them in the theme folder of the theme you are using; mine are here:
Themes/Sea_Side/icons/2/off.gif
Thank U a lot.
It works.
Can U advise where to get different nice icons ?
I use google and type in free .png images or something similar. There is some on my site I think.
I'm kind of confused. What I want to do is a different icon for each board, whether as there's two icons on default, one for new posts and second for old posts.
For the board id, does it correspond to each board?
I put all 3 in
themes/default/images/icon/1/on.gif
themes/default/images/icon/1/on2.gif
themes/default/images/icon/1/off.gif
Then I put all 3 again in
themes/default/images
If so far so good, I went on my site popomovies.com and wala, there it is... but it isn't doing what I'm trying to do. Do I have to setup a board id of 2? 3? and so on?
What is the edited code to add more icons to the board? Thanks!
popomovies,
I'm not sure what you are asking exactly, but I'll answer the question I THINK you are asking...
in the mod, as released, you will need to create a directory for EACH board that you want custom icons for, with the BoardID as the name of the directory... you will put on, on2 and off images in each of those directories.
If the directory does NOT exist, then the system will use the on, on2 and off image files in the images directory for that board.
Any update for smf 2.0 rc2?
Quote from: Abu Fahim Ismail on December 09, 2009, 05:01:35 PM
Any update for smf 2.0 rc2?
It works perfectly for RC2 see pics
hmm wont let me upload pics,,,, but it does work great on rc2
but howe to change icon's i install successfully this mod but who to change icon's.
pardon me please but I am new at this. how do i know my board id?
which id you want samueliyinbo
It's simple to find a BOARD_ID look in the URL eg: index.php?board=115.0 in this case it is 115 (the .0 is not part of the ID)
hmmmmmmmmm u r right sir
Quote from: Anguz on December 28, 2004, 12:31:08 AM
Quote from: LiL_J on December 27, 2004, 11:21:32 PM
sup bro worked like a charm. take a look at it http://kevmundial.com/board ;) ;) :)
Glad it worked. :)
I may give it an admin setting and package it someday...
Apologies for digging up an old topic, but I was searching for answers on this forum. I wonder if I could have a setting where if there were no images set for a board/forum, it'll go ahead and choose the default on/off images?
there is a mod, called CBI which does exactly that.
I want to ask did the CBI work with smf 2 RC3 i try to install but not work(test failed) im try to manual change but code who need to replace not exist niether boardIndex or MessageIndex
Yes, cbi works with RC3 but hopefully you are not running that version right now.
how is it possible for me to have this mod in Overview Light theme?
You would have to parse the mod and add the edits manually if the package manager in SMF will not do it for you.