Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Dream Portal Team on February 01, 2013, 04:04:22 PM

Title: Board Icons
Post by: Dream Portal Team on February 01, 2013, 04:04:22 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3604)

This Mod allows you to have different Icons for your Boards when modifying your boards through the SMF Admin.  You can select No New Post Icons, New Post Icons, and even Redirect Icons.  There are several paths to choose from and you can even supply outside links for these icons that can represent your Boards.  You can supply icons for Child Boards as well.

There are 5 different path options to choose from:

http:// = This points to any URL that you want (can point to a url on your forum or on any other site).

{$boardurl} = Points to the url that is your SMF ROOT URL where SMF is installed.

{$scripturl} = Points to your SMF ROOT URL + index.php so you can apply actions to the url if need be (this was decided to be added, in case your $boardurl path is not within your $scripturl path, for security or any other reason(s)).

Default Theme = This path will always point to the default SMF CURVE Theme (./Themes/default/).

This Theme = This path points to whatever Theme the user has selected within their profile (wasn't thinking at the time when I decided on the name for this, but will most likely change in the future to Theme Specific instead).  The Great thing about the "This Theme" path, is that you can have different images for different themes, as long as they are along the same path for each theme, and have the same filename.

FYI:  This Mod was created a long time ago, back in 2011 and was offered to members of DP.net for having high post counts, however, I think it would be more useful for everyone to enjoy this mod!

ENJOY
Title: Re: Board Icons
Post by: tMicky on May 12, 2013, 08:12:58 AM
Hello, where is the settings to activate this mod and select the images.

thanks
Title: Re: Board Icons
Post by: Dream Portal Team on May 17, 2013, 03:41:53 AM
This Mods settings are located within the SMF Admin Boards section.  To see them you will either "Add" a New Board, or "Modify" an existing board.
Title: Re: Board Icons
Post by: fatyhxd41 on August 24, 2013, 05:01:27 PM
Hi. Thanks for this useful mod but I cannot see option to add images. I'm using SMF 2.0.5 and at the moment this mod don't support 2.0.5. Just supports until 2.0.4. This is because of I cannot see option to add images? If yes, please do support for 2.0.5.
Title: Re: Board Icons
Post by: Arantor on August 24, 2013, 05:02:41 PM
All mods for 2.0.4 will work on 2.0.5 - as per How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)

If it's not showing up that probably means it didn't install properly.
Title: Re: Board Icons
Post by: Burke ♞ Knight on August 27, 2013, 01:44:04 AM
Installed this on new site I'm working on.
Perfect idea for boards that are for certain games, etc.

However, I set it up, and the default icons still show.
Cleared file cache, browser cache, and tried 4 different browsers.
Still not showing custom icon for board.

Any ideas?

Web Site (http://www.burkeknight.com/index.php?action=forum)

Look at the GTA category, Grand Theft Auto I is edited for the custom icon. Should be showing: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.burkeknight.com%2Fimages%2Fgta_off.gif&hash=84476eacfd2282c59c96616b9009980e)
Title: Re: Board Icons
Post by: SoLoGHoST on August 28, 2013, 11:50:27 PM
I have a few ideas.  First idea is use Dream Portal on your site and it will look way better...lol.  But to each their own!

2nd idea I have is A.  I haven't tested this mod in SMF 2.0.5 yet, and B. What are your settings for the Boards?  Image of settings would be most appropriate and easier to debug.  and finally, C - 2 Part Question:  If you are using image paths, do the images exist?  Are you using Default Theme or Theme Specific for the select box?

Again, Image of settings would be most appropriate!
Title: Re: Board Icons
Post by: Burke ♞ Knight on August 28, 2013, 11:57:45 PM
The image I posted is where the mod is supposed to be finding the image, so yes, it does exist. (Even I wondered if this was case, with how servers are at times...LOL )

Attached is screeshot of settings for the one board that should be using the posted image.
Title: Re: Board Icons
Post by: SoLoGHoST on August 29, 2013, 12:25:45 AM
Use {$boardurl} in your situation.  Image attached of how to set it up.  Also, if the images do not exist upon saving of the form, it will not update the Board with those images, instead it will clear the Image Board Settings.

Also, it will work if you add http:// to the beginning of www.burkeknight.com/images/yourimage.gif

Just cause the select box says http:// in it, doesn't mean you should exclude that from the URL.  If it is http:// in the select box, you will need to also have it's value start off with http://
Title: Re: Board Icons
Post by: Burke ♞ Knight on August 29, 2013, 12:33:35 AM
Nope. Still only showing the default.

Guess it does not work with 2.0.5 for some reason.

Even tried to go with default theme to test, and that shows the default theme's image.

P.S. As for Dream Portal, would give it a try, but so used to SP, and it's pages....LOL

If include the http:// it auto-removes it.
Title: Re: Board Icons
Post by: SoLoGHoST on August 29, 2013, 12:38:55 AM
Yeah, I just installed SMF 2.0.5, and installed Board Icons on a FRESH INSTALL of SMF 2.0.5 and works PERFECTLY!  See for yourself here:  http://devs.dream-portal.net/smf205/index.php

You must have a mod installed that is interfering with Board Icons somehow... or possibly the theme itself.  If you switch to the Default Curve theme, does it than display the Board Icon?
Title: Re: Board Icons
Post by: Burke ♞ Knight on August 29, 2013, 12:44:25 AM
No mods that should have anything to do with this...
Hmm... Very strange, indeed....

Well, guess it just wont be possible on this site, then.
I'll have to check things out if can, but I don't see any mods that should affect this.

Even tried to go with default theme to test, and that shows the default theme's image.
Title: Re: Board Icons
Post by: Dream Portal Team on August 29, 2013, 12:47:23 AM
Did you install the Anecdota Theme before or after installing Board Icons?  You might try completely uninstalling Board Icons Mod, and than Re-Installing the mod.  That might fix your problem!

Make note of any errors that show in the Anecdota Theme (will be listed at bottom of mod installation page) upon re-installation of Board Icons Mod.
Title: Re: Board Icons
Post by: Burke ♞ Knight on August 29, 2013, 12:50:41 AM
Theme was installed before.
No errors on Board Icon install.

Looking over the mod's install files now, to see if anything I missed that may clue us in on what's wrong.
Looks nice and clean in those files, by the way, nicely done mod. :)
Title: Re: Board Icons
Post by: Dream Portal Team on August 29, 2013, 12:59:49 AM
This mod was created about 3 years ago, it is a poor excuse for a mod nowadays with SMF Hooks having been introduced into the mix.  But thanks anyways...

Anyways, you must have done something right, cause I see the icon on your site now.
Title: Re: Board Icons
Post by: Burke ♞ Knight on August 29, 2013, 01:01:17 AM
Bingo!

Found it!

Somehow, it did not do the edit to the BoardIndex.template.php file.

Had no errors on install, yet the edit was not done.
Very strange.

Works now, though. :)

This is most likely why it missed it without error:

Code: [Select]
<file name="$themedir/BoardIndex.template.php">
<operation error="ignore">
Title: Re: Board Icons
Post by: Dream Portal Team on August 29, 2013, 01:03:39 AM
Awesome.  Ok, I suppose that is a critical operation than.  Will get around soon to updating it without ignoring that operation on error.

Thanks :)
Title: Re: Board Icons
Post by: samborabora on September 23, 2013, 10:35:29 AM
I would love to have the board icons included in other pages, such as next to the message title of the Post New Topic pages, and embedded into some SimplePortal blocks. What code should I use to show the custom board icon next to the subject input box of the New Topic page for the relevant forum I'm posting in?
Title: Re: Board Icons
Post by: SoLoGHoST on September 25, 2013, 02:29:57 AM
Honestly, for blocks with Simple Portal, I don't know how you would do it.  With Dream Portal, you can add layouts per board (http://dream-portal.net/index.php?topic=1018.msg7374#msg7374), and than the modules (blocks) on that layout will only show for that board.  So, for this, you could use the "Custom Module" and have the image inserted into it with a Transparent Module Template (http://dream-portal.net/index.php?topic=1087.0) and will only show the image for that board and that board alone.

What might be better is to use a Custom Block in Simple Portal with PHP as the Code type (if possible) and have it show on the forum, and test it via the $_REQUEST['board'] variable.  You could than have it grab an image based on the board id returned within $_REQUEST['board'].

For example:

Code: [Select]
global $boardurl;
if (!empty($_REQUEST['board']))
    echo '
        <img src="' . $boardurl . '/images/boardicons/board_' . $_REQUEST['board'] . '" alt="" />';

So, this would output the image based on the following naming convention:  "board_{board id}"

Where {board_id} is the actual id value of the board that gets returned from $_REQUEST['board'].  If this variable is empty, it will not be shown.  Therefore this will be sure to display on all pages within the board (hopefully).  And you could use the same code within the Post.php and/or Post.template.php for when users are creating New Topics.  Ofcourse, you should probably check to be sure it is an integer value, but that I'll leave up to you.
Title: Re: Board Icons
Post by: jomaber on November 26, 2013, 08:13:12 AM
Anyone knows if this mod is compatible with 2.0.6 version?
Title: Re: Board Icons
Post by: SoLoGHoST on November 26, 2013, 07:49:19 PM
Yes, it is!
Title: Re: Board Icons
Post by: -Captain Ghost- on January 02, 2014, 05:53:11 AM
i am getting error while installing the mod.
Note:same error on fresh install (smf 2.0.6)
Title: Re: Board Icons
Post by: SoLoGHoST on January 02, 2014, 06:38:13 AM
Yes, this will always give error for all themes in any version of SMF that you install for.  Because it is performing the same edit twice due to SMF adding in an extra indent for that edit operation in SMF 2.0.6.  So instead of targetting a specific SMF version, I simply added in 2 operations of the same type, 1 with the indentation and another without it.  This makes sure that it will perform the correct operation and skip the other.  That is why it is set on IGNORE ERRORS.  There is nothing wrong with these operations, you can install and it should work just fine.

There are many reasons why people would do this, mainly because in different themes, different edits are required, if you ignore the operations where it is trivial and could possibly be different, than 1 of those operations will most likely catch and perform the necessary edit(s).  This is done, in this case, to support all themes that require theme edits... it is ignored if the operation is not found, and will continue with a found operation instead.
Title: Re: Board Icons
Post by: -Captain Ghost- on January 02, 2014, 06:51:13 AM
Yes, this will always give error for all themes in any version of SMF that you install for.  Because it is performing the same edit twice due to SMF adding in an extra indent for that edit operation in SMF 2.0.6.  So instead of targetting a specific SMF version, I simply added in 2 operations of the same type, 1 with the indentation and another without it.  This makes sure that it will perform the correct operation and skip the other.  That is why it is set on IGNORE ERRORS.  There is nothing wrong with these operations, you can install and it should work just fine.

There are many reasons why people would do this, mainly because in different themes, different edits are required, if you ignore the operations where it is trivial and could possibly be different, than 1 of those operations will most likely catch and perform the necessary edit(s).  This is done, in this case, to support all themes that require theme edits... it is ignored if the operation is not found, and will continue with a found operation instead.
so is it good to ignore the errors or not?
Title: Re: Board Icons
Post by: SoLoGHoST on January 02, 2014, 02:46:59 PM
Yes, you can install and ignore the errors.  What SMF does when there is an error detected and it is installed, SMF SKIPS that operation edit and continues on.  Since this edit says (IGNORE ERRORS) directly after the "Test Failed" text, it is safe to install.

If there were serious errors detected, it would say so at the very top of the page in BOLD RED TEXT.
Title: Re: Board Icons
Post by: Dream Portal Team on February 16, 2014, 08:24:21 PM
Can anyone tell me if this mod works for SMF 2.0.7?  I haven't installed a copy of 2.0.7 yet and am curious to know if this mod installs fine and works.
Title: Re: Board Icons
Post by: live627 on February 16, 2014, 08:50:20 PM
I'm fairly confident that it'll work. Most mod authors blindly update their mod pages to the latest point-release.

Having said that, it installs fine.Just now tested.
Title: Re: Board Icons
Post by: SoLoGHoST on February 17, 2014, 01:42:02 AM
Ok, awesome, thanks John.
Title: Re: Board Icons
Post by: GamePersia on February 18, 2014, 11:30:53 PM
Thanks buddy....
awesome,..perfectly worked with 2.0.7...... ;D
just tell me one thing,..that what is the role of "Redirect Image Path" ??
means if i add image link there,..what will change ?? :-\
Title: Re: Board Icons
Post by: Burke ♞ Knight on February 19, 2014, 08:35:23 AM
SoLoGHoST

I really do love this mod.
As can see, I have it running very nicely now, and have several different images for boards.
http://www.burkeknight.com/index.php?action=forum

I really like that it works great on child boards, too.
Did you ever update to do that edit without ignore?

Code: [Select]
<file name="$themedir/BoardIndex.template.php">
<operation error="ignore">

Thanks for such a great and useful mod, with terrific support!
Title: Re: Board Icons
Post by: kamili34 on February 21, 2014, 05:05:13 PM
Me too. Why it doesnt work on child boards. Why need to be change manually?
Title: Re: Board Icons
Post by: Burke ♞ Knight on February 21, 2014, 05:58:15 PM
Thanks buddy....
awesome,..perfectly worked with 2.0.7...... ;D
just tell me one thing,..that what is the role of "Redirect Image Path" ??
means if i add image link there,..what will change ?? :-\

That is in case you have the board set as a redirect board, and want to use a custom icon for it, instead of the default for the theme.
Title: Re: Board Icons
Post by: SoLoGHoST on February 22, 2014, 11:04:29 PM
SoLoGHoST

I really do love this mod.
As can see, I have it running very nicely now, and have several different images for boards.
http://www.burkeknight.com/index.php?action=forum

I really like that it works great on child boards, too.
Did you ever update to do that edit without ignore?

Code: [Select]
<file name="$themedir/BoardIndex.template.php">
<operation error="ignore">

Thanks for such a great and useful mod, with terrific support!

Thanks, and ouch, been so busy lately forgot about that edit.  Will do shortly.
Title: Re: Board Icons
Post by: kamili34 on February 23, 2014, 09:39:24 AM
There is something wrong, even mod install correctly. Icons set are for all boards, even you want only in specific one.
Title: Re: Board Icons
Post by: SoLoGHoST on February 24, 2014, 05:33:14 AM
hmmm, SMF version?  Other Mods Installed? Any errors in the SMF Error Log?  Your sites url?  I could go on and on...
Title: Re: Board Icons
Post by: GamePersia on February 26, 2014, 03:10:07 AM
one thing to ask that how to change the footer icons ??
means icons which tell that this icon means New Posts,..and this icon means Redirect Board...etc..
Title: Re: Board Icons
Post by: kamili34 on February 26, 2014, 03:08:25 PM
smf 2.0.7

Please check this file.
Title: Re: Board Icons
Post by: Dream Portal Team on March 02, 2014, 10:47:44 PM
one thing to ask that how to change the footer icons ??
means icons which tell that this icon means New Posts,..and this icon means Redirect Board...etc..


The output of these are in BoardIndex.template.php.  Change as needed, or remove them altogether from being outputted.  This mod does not change those images by default.
Title: Re: Board Icons
Post by: Bachian on May 26, 2014, 10:58:40 PM
This mod isn't working for me on 2.0.7 with theme Firox Multicolor by SMFSimple. If the icons are 120 x 120 will it not work?
Title: Re: Board Icons
Post by: TheListener on May 26, 2014, 11:24:24 PM
This mod isn't working for me on 2.0.7 with theme Firox Multicolor by SMFSimple. If the icons are 120 x 120 will it not work?

Helps if you tell us why it doesn't work on the theme you use.
Title: Re: Board Icons
Post by: Bachian on May 26, 2014, 11:35:40 PM
I don't know why it doesn't work.

Maybe this will help.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.imgwiz.com%2Fimages%2F2014%2F05%2F26%2FAUGap.jpg&hash=bc5cd340797176bf1079dd2ae3b2a5cc)
Title: Re: Board Icons
Post by: TheListener on May 26, 2014, 11:37:55 PM
Did you install the mod despite the test failed messages?
Title: Re: Board Icons
Post by: Bachian on May 26, 2014, 11:43:23 PM
Yes. And it didn't work.
Title: Re: Board Icons
Post by: TheListener on May 26, 2014, 11:45:35 PM
Yes. And it didn't work.

That's why it doesn't work.

Use the mods parser which is on the mods download page to see which files marked test failed need a manual edit.
Title: Re: Board Icons
Post by: Bachian on May 27, 2014, 01:15:48 AM
Did that. Still isn't working.
Title: Re: Board Icons
Post by: SoLoGHoST on May 27, 2014, 01:18:41 AM
Hello, so it isn't working in the default, Curve, Theme either??  According to your install log pic that you posted above, it should.

This mod does theme (template file) edits, so it is possible that the edits that it does, do not cater to your themes coding.  In that case, the edits will need to be done manually to that themes files... namely, "MessageIndex.template.php".  So, in that case, you can open up the zipped package and take a look at the xml file that modifies the "MessageIndex.template.php" file, and look at the operations in there, and alter them in your theme file to match according to your themes way of handling the output of Board Icons.
Title: Re: Board Icons
Post by: Bachian on May 27, 2014, 01:23:17 AM
Hello, so it isn't working in the default, Curve, Theme either??  According to your install log pic that you posted above, it should.  This mod does theme edits, so it is possible that the edits that it does, do not cater to your themes coding.  In that case, the edits will need to be done manually to that themes files... namely, "MessageIndex.template.php".

Yes, it does work on the Curve theme. But it won't work with Firox Multicolor by SMFSimple, which is the theme I like to use.
Title: Re: Board Icons
Post by: SoLoGHoST on May 27, 2014, 01:25:31 AM
You will need to edit the "MessageIndex.template.php" file manually, after installing the mod.  Already instructed on how to do this.  Cheers :)
Title: Re: Board Icons
Post by: Bachian on May 27, 2014, 01:26:32 AM
I have no idea how to do that... If I link the file here, from my theme could you modify it for me, or is it too much work?
Title: Re: Board Icons
Post by: SoLoGHoST on May 27, 2014, 01:28:16 AM
I am in the middle of releasing, yet another update for my Post Rating Pro mod, so, I've got my hands tied right now...  could possibly look at it another day... not sure.  Sorry...
Title: Re: Board Icons
Post by: Bachian on May 27, 2014, 05:24:47 PM
I figured it out. I had to make the same change to the boardindex.template.php as I did the messageindex.template.php in my theme's folder.

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

Replace with:
Code: [Select]
// If the board or children is new, show an indicator.
if ($board['new'] || $board['children_new'])
{
if ($board['new_img'] !== '')
echo '
<img src="', $board['new_img'], '" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
else
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
}
// Is it a redirection board?
elseif ($board['is_redirect'])
{
if ($board['redirect_img'] !== '')
echo '
<img src="', $board['redirect_img'], '" alt="*" title="*" />';
else
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
}
// No new posts at all! The agony!!
else
{
if ($board['no_new_img'] !== '')
echo '
<img src="', $board['no_new_img'], '" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
else
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';
}
Title: Re: Board Icons
Post by: samborabora on June 20, 2014, 06:39:37 PM
Honestly, for blocks with Simple Portal, I don't know how you would do it.  With Dream Portal, you can add layouts per board (http://dream-portal.net/index.php?topic=1018.msg7374#msg7374), and than the modules (blocks) on that layout will only show for that board.  So, for this, you could use the "Custom Module" and have the image inserted into it with a Transparent Module Template (http://dream-portal.net/index.php?topic=1087.0) and will only show the image for that board and that board alone.

What might be better is to use a Custom Block in Simple Portal with PHP as the Code type (if possible) and have it show on the forum, and test it via the $_REQUEST['board'] variable.  You could than have it grab an image based on the board id returned within $_REQUEST['board'].

For example:

Code: [Select]
global $boardurl;
if (!empty($_REQUEST['board']))
    echo '
        <img src="' . $boardurl . '/images/boardicons/board_' . $_REQUEST['board'] . '" alt="" />';

So, this would output the image based on the following naming convention:  "board_{board id}"

Where {board_id} is the actual id value of the board that gets returned from $_REQUEST['board'].  If this variable is empty, it will not be shown.  Therefore this will be sure to display on all pages within the board (hopefully).  And you could use the same code within the Post.php and/or Post.template.php for when users are creating New Topics.  Ofcourse, you should probably check to be sure it is an integer value, but that I'll leave up to you.

Sorry for the late reply, but I'm trying to incorporate a board icon on the "post reply" page, in place of the "Subject" txt. I have SimplePortal still installed (unfortunatly, not DreamPortal), so if you can suggest what would be the best way of, basically, calling the image the exact same way the board template does, just for the current board, I'd be most grateful! I tried that code you gave me last year, and it just gives a image with an url to the images folder, followed the board number, which is a start, but unfortunately my board names don't use that naming convention, although, if needs be, I suppose I could rename them all to cooperate with the code; it would just be far easier if I could get it to call for the names of the images that have been defined in Board Icons mod.

EDIT: I'm just going to rename all of my board icons sequencially, and use this code for my post.template.php:

Find:
Code: [Select]
// Now show the subject box for this post.
echo '
<dt>
<span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">', $txt['subject'], ':</span>

Replace with:

Code: [Select]
// Now show the subject box for this post.
echo '
<dt>
<span', isset($context['post_error']['no_subject']) ? ' class="error"' : '', ' id="caption_subject">
<img src="' . $settings['images_url'] . '/boardimgs/' . $_REQUEST['board'] . '.jpg" alt="" />
</span>
Title: Re: Board Icons
Post by: fiesty on August 15, 2014, 04:29:00 AM
cant get the images to show ?

being a noob at all this stuff, i struggle to get things up and running at times (most of the time actually  :-[ )

so for anyone like me who has had/having problems getting the images to show using this mod, maybe this will help :)

i had been trying to get this mod up and running for quite a while, the problem was that the images would not show up on the forum. instead of the image, i was getting a line of text like "no new posts" instead,

after several uninstalls and reinstalling the mod, and trying all the advice from this thread, without getting any nearer to solving it,

one bit of advice was to try and trace the route of the image to see if this was the problem,
it wasn't, the images were where they were supposed to be,  but it did provide the clue to where the problem lay,
as attempting to view the image got a error stating it could not be viewed as the image "had errors"

so i checked the images i had on the computer that i chosen for the boards, which all seemed to be ok,

but after downloading them back from the server to a folder on the desktop, and trying to view them again, they were indeed corrupt!
this pointed at this happening during the transfer to the server,
(i use Filezilla for the uploading of files to the server)

the more adept users here will probably have worked out the problem by now :)

anyhow, it seems that i had the transfer type set as "auto" on filezilla,
from a choice of ASCII/AUTO/BINARY,  and i seemed to remember something about using binary transfer for some types of file,
so i reset the type to binary, and reloaded the images, and gave it another go,

and success! the images were now showing as they were supposed to :)

in my case this solved the problem, so i hope this may help any fellow noobs to get this working :)

thanks for a great mod, it has certainly made our forum look a lot better for users :)

p:s this also worked for the rss feed icon mod too, which worked ok in default and core themes, but not on other themes, it was the "binary" bit again  ::)
Title: Re: Board Icons
Post by: SoLoGHoST on August 15, 2014, 11:29:45 PM
Great, glad you got it working.  Yes Binary Mode in Filezilla will be sure to transfer your files correctly.  Anytime I backup file, I always transfer them in binary mode.

Cheers :)
Title: Re: Board Icons
Post by: Joomlamz on October 08, 2014, 09:05:39 AM
Good Mod
when update dont forget portuguese files

Code: [Select]
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//
// Board Icons MOD Begin...Translte by Candidosa2
//

$txt['boardIcons_newPostsPath'] = 'Novos Postes Caminho da Imagem: ';
$txt['boardIcons_noNewPostsPath'] = 'N&atilde;o h&aacute; poste do Caminho da Imagem: ';
$txt['boardIcons_redirectPostsPath'] = 'Redirecionar Caminho da Imagem: ';
$txt['boardIcons_manage_caption'] = 'Deixe em branco para a imagem padr&atilde;o.';

// Filepath Selection Choices...
$txt['boardIcons_select_http'] = 'http://';
$txt['boardIcons_select_boardurl'] = '{$boardurl}';
$txt['boardIcons_select_scripturl'] = '{$scripturl}';
$txt['boardIcons_select_default_theme'] = 'Tema padr&atilde;o';
$txt['boardIcons_select_theme'] = 'Este tema';

//
// Board Icons MOD END! sUPPORT BY SMFPT.NET
//
]]></add>
        </operation>
    </file>
Title: Re: Board Icons
Post by: Bob La Londe on October 31, 2014, 01:16:16 PM
I installed this mod on three different 2.0.9 boards and it seemed to work just fine on all of them. 

The only issue I see right now, is that I would like to have an option to change and/or turn off the icon legend at the bottom of the screen. 
Title: Re: Board Icons
Post by: Cylent1 on November 01, 2014, 02:13:02 AM
I installed this mod on three different 2.0.9 boards and it seemed to work just fine on all of them. 

The only issue I see right now, is that I would like to have an option to change and/or turn off the icon legend at the bottom of the screen.

I am running this mod in 2.0.9 also, I cannot seem to get this to work either.
I'm glad there is confirmation of this working in this release of smf.
What files did you have to edit to get this to work?
did you run in emulation mode?
any advice to get this to work?
Title: Re: Board Icons
Post by: Dream Portal Team on November 02, 2014, 10:36:56 PM
I don't understand why people are reporting any problems with this mod.  This mod works flawlessly in every version I have tested.  I have just tested it now in 2.0.9 and works a charm.
Title: Re: Board Icons
Post by: Cylent1 on November 04, 2014, 06:00:24 PM
I was able to get it running with no problems by flushing the cache in forum settings, and also using the correct path format in the plugin settings.  Hope this helps a little bit...
Title: Re: Board Icons
Post by: valter071 on November 08, 2014, 02:25:54 PM
I don't understand why people are reporting any problems with this mod.  This mod works flawlessly in every version I have tested.  I have just tested it now in 2.0.9 and works a charm.

If you can, have someone make a step by step what can be done to work out and everyone would be happy and would not be asking unnecessary questions as well as the same is not working ...
Title: Re: Board Icons
Post by: Ninja ZX-10RR on November 08, 2014, 04:17:36 PM
I don't understand why people are reporting any problems with this mod.  This mod works flawlessly in every version I have tested.  I have just tested it now in 2.0.9 and works a charm.
+1 since it works like a charm on a clean install except that it doesn't work correctly with SimpleDesk :/ It doesn't detect it and there is no way to set an image for SimpleDesk "boards", shows a broken image link. It would be awesome if you could have a look at it and perhaps fix it...
Thanks in advance anyway SoLoGHoST :)
Title: Re: Board Icons
Post by: Arantor on November 08, 2014, 04:40:11 PM
Of course it doesn't. SimpleDesk tries to do a bunch of stuff to put its own image in without doing any edits to any templates.
Title: Re: Board Icons
Post by: Ninja ZX-10RR on November 08, 2014, 04:59:43 PM
That's why I am asking, it should be fixable, somehow...
Title: Re: Board Icons
Post by: Arantor on November 08, 2014, 05:02:41 PM
I'd say this one is entirely on this mod. SimpleDesk goes out of its way to avoid causing trouble, specifically to avoiding template edits and it is quite fixable from this mod's perspective, much much less fixable from SimpleDesk's perspective.

What happens is that the board index data is gathered, SimpleDesk injects its own into that list, which makes it render as a normal board, albeit with a special id (which is exposed in the template) and SD then fixes it after the template has run to put its own icon in. This mod breaks SimpleDesk - and I can't very easily (and certainly not without a huge performance hit) fix it in SimpleDesk to detect this mod and let this mod's handiwork get involved.

(To SoLoGHoST or anyone else: to determine if a board exposed to the board index is SimpleDesk, look for the board's id beginning with 'shd')
Title: Re: Board Icons
Post by: Ninja ZX-10RR on November 08, 2014, 05:16:49 PM
Well thanks for the tip I guess he will find that useful :)
P.s. I knew that wasn't really easy to be fixed on SD side (didn't know it was that hard but I knew it somehow due to the edits and the fact that the SD's icon seems to be called in another way entirely - now I know how it was done, too), that's why I posted here in the first place ;)
Title: Re: Board Icons
Post by: Arantor on November 08, 2014, 05:26:34 PM
Due to the edits? What edits? :P
Title: Re: Board Icons
Post by: Ninja ZX-10RR on November 08, 2014, 06:13:18 PM
That's what happens when you think about many things at the same time and different ways of saying what you are trying to say xD I meant that seeing what simpledesk does, or better, having somehow understood that the icons were being loaded in a different way I had also understood that it could have been hard to change the overall SimpleDesk side to fix its behaviour when used with this mod. Hopefully this time is a bit more clear >_<
Title: Re: Board Icons
Post by: Arantor on November 08, 2014, 06:39:18 PM
I was being facetious. The whole point is that edits are avoided where possible :P
Title: Re: Board Icons
Post by: Ninja ZX-10RR on November 08, 2014, 06:46:19 PM
I noticed that style, which is lovely - install in 2 clicks and working right after, no hidden BS :) I know it can't be done everywhere but where it's done is just awesome, I have to say it.
Still I am very impatient for this fix (even if I don't want to sound pushy huh!) because I would really like to make the forum more artistic-like ^^
Title: Re: Board Icons
Post by: SoLoGHoST on November 09, 2014, 02:56:54 AM
So, are you saying that if you select nothing for a board icon it shows a broken image link for Simple Desk boards?  This mod supports SMF only...  If you are getting broken image links when selecting nothing as a board icon for Simple Desk boards, than I would assume that this is a Simple Desk issue.  If you are trying to add images to Simple Desk boards and are getting broken image links, I would say that this mod supports SMF, it is not meant to support Simple Desk.  I won't rebuild this mod to support other mods, no offense to those other mods.  Mainly because, when we start going down that path, than it is expected to continue to go down that path with those Mod updates as well.  SMF Updates are enough, thank you!
Title: Re: Board Icons
Post by: Arantor on November 09, 2014, 05:13:17 AM
Or that might say you didn't read the posts as to what's going on and don't make any tests about things existing before use, and just assume that things work how you expect.
Title: Re: Board Icons
Post by: Ninja ZX-10RR on November 09, 2014, 06:24:49 AM
Or that might say you didn't read the posts as to what's going on and don't make any tests about things existing before use, and just assume that things work how you expect.
+1 :(
That's a bit uncool SoLoGHoST, arantor pointed you on where to slightly fix the behaviour to support SimpleDesk without a major overhaul to the code already, however he kinda said already what you did :/
Title: Re: Board Icons
Post by: Arantor on November 09, 2014, 06:29:50 AM
See, here's the thing: to me, such tests are not 'supporting other mods' but straight up defensive design. But then again I'm known for not making assumptions about things other people do.
Title: Re: Board Icons
Post by: SoLoGHoST on November 10, 2014, 01:02:15 AM
Yes, I have read all posts above Arantor.  I am not making this mod compatible for any other mods at this time, feel free to create a better mod than this one.  To me this is a piece of junk mod that I created on a whim.  I run tests for SMF on a clean install only.  The rest is out of my hands and quite frankly, not interested.  Honestly, I didn't expect anyone to get attached to it.  Thanks for your concern...

Sincerely,
Mr. Uncool
Title: Re: Board Icons
Post by: Ninja ZX-10RR on November 19, 2014, 11:12:32 AM
For anyone interested into a mod doing the same but without breaking SimpleDesk --> http://www.simplemachines.org/community/index.php?topic=126263.0 no comment on the reply instead, I will surely not install DreamPortal nor ever suggest it.
Title: Re: Board Icons
Post by: SoLoGHoST on November 20, 2014, 07:45:51 PM
It's all good, ask me if I care?
Title: Re: Board Icons
Post by: Bruce the Shark on December 20, 2014, 03:42:59 PM
After reading all this, i feel that the boat has sail out with me.
Still very hard to comment as it isn't working for me so i cant see or say what changes that have made to my theme with the icons.
But i must say the first 2 pages here have been some very interesting reading with the codes being adjusted.
Even though i am new to coding its sort of straight forward the way other member's have explained it including you Sologhost.
Make me want to give it a go myself.
Title: Re: Board Icons
Post by: Burke ♞ Knight on December 20, 2014, 05:45:48 PM
You do realize, SoLoGHoST, there are a lot of people who use this mod, and those people ARE going to use other mods, and will tend to pop in here, to ask for support to try to get things working smoothly.

Attitude like your last few posts, go to show that you are very self centered, caring only about the mods you make, not about how the "customers" use them, and it they have issues.

Sure, you may have answered and helped some, but since it seems that you don't like someone, you decide you are not going to make a fix for this mod, so the 2 mods can work together.

Well, that lowers my respect for you, that's for sure. I also use Simple Desk, and would love to have it's departments showing on my board index, but I can't, due to your mod messing up the images it places via hooks. The maker of the mod, even told you how to do a fix, and since you know the coding of your mod better than anyone else (one would hope), then all we are asking, is maybe to make up a fix and post the edits here. We are not saying you need to update the mod, just do like many of us modders do, and post the edits.
Title: Re: Board Icons
Post by: SoLoGHoST on January 18, 2015, 04:56:29 AM
I just want to say, I am a Mod Author, I am not a SMF Author!  I am not on the SMF Team, nor do I ever wish to be.  I do not have to give support for other mods if I choose not to.  Telling me that I am rude because I do not care to support other mods that are installed on your SMF Forum, is ignorant of you to expect that of me!

Please don't bother me with outrageous accusations or name call me.

Customers are defined as
Quote
a person or organization that buys goods or services from a store or business.

You are all certainly not customers.  You have received this product for FREE.

Thank you.
Title: Re: Board Icons
Post by: gaswigg on February 09, 2018, 12:38:24 AM
Hi I have a dumb question about this mod im trying to run it on SMF 2.0.15 will it first off and the dumb question the directions don't say anything as to where you put the photos or icons and how you label them I have been trying little bit of everything to get it to work it installed fine I have tried it in the default theme and also in the theme called Sunset no matter what I do I can't get my photos to show I only get the default icons so can you please show me the Dir for the photos in both for default and This theme and what they are called if other then on off and redirect and do they go into a folder named the same as the board or what and much thanks
Title: Re: Board Icons
Post by: SaltedWeb on February 09, 2018, 12:45:15 AM
I don't think the Mod creator is supporting it much based on above postings.
There is this one I've used http://www.simplemachines.org/community/index.php?topic=126263.0 (http://www.simplemachines.org/community/index.php?topic=126263.0)
Title: Re: Board Icons
Post by: Rock Lee on February 12, 2018, 05:04:41 PM
Hi I have a dumb question about this mod im trying to run it on SMF 2.0.15 will it first off and the dumb question the directions don't say anything as to where you put the photos or icons and how you label them I have been trying little bit of everything to get it to work it installed fine I have tried it in the default theme and also in the theme called Sunset no matter what I do I can't get my photos to show I only get the default icons so can you please show me the Dir for the photos in both for default and This theme and what they are called if other then on off and redirect and do they go into a folder named the same as the board or what and much thanks

Did you have a problem installing it? Emulate the version to install it? What other mod do you have installed?


Regards!
Title: Re: Board Icons
Post by: SoLoGHoST on February 25, 2018, 10:25:39 PM
Hi I have a dumb question about this mod im trying to run it on SMF 2.0.15 will it first off and the dumb question the directions don't say anything as to where you put the photos or icons and how you label them I have been trying little bit of everything to get it to work it installed fine I have tried it in the default theme and also in the theme called Sunset no matter what I do I can't get my photos to show I only get the default icons so can you please show me the Dir for the photos in both for default and This theme and what they are called if other then on off and redirect and do they go into a folder named the same as the board or what and much thanks

Have you looked at the images that are posted up where you download this mod from?  You have to defined the images for each board.  You need to edit the board, and in there is where the images go.
Title: Re: Board Icons
Post by: SilverKnight on August 05, 2018, 10:04:10 PM
I have done a small update to this mod for anyone who is interested. The original version was developed when SSL support wasn't prevalent but is now a modern day requirement, so i added https support for icons/links etc.



Feel free to absorb code into original if this mod ever gets updated.


Edit - removed link, please remove from github, the mod license does not allow you to redistribute the mod with or without modification