Advertisement:

Author Topic: Board Icons  (Read 33364 times)

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Board Icons
« Reply #20 on: November 26, 2013, 07:49:19 PM »
Yes, it is!

Offline -Captain Ghost-

  • Jr. Member
  • **
  • Posts: 110
  • Gender: Male
Re: Board Icons
« Reply #21 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)

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Board Icons
« Reply #22 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.

Offline -Captain Ghost-

  • Jr. Member
  • **
  • Posts: 110
  • Gender: Male
Re: Board Icons
« Reply #23 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?

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Board Icons
« Reply #24 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.

Offline Dream Portal Team

  • Semi-Newbie
  • *
  • Posts: 89
    • Dream Portal
Re: Board Icons
« Reply #25 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.
This is the universal account for the Dream Portal Team. All messages sent to this account will be discarded.  Please visit us at:  Dream Portal dot net for support and extensions to Dream Portal.

Offline live627

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,275
  • Gender: Male
  • Cat: Destroy!
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: Board Icons
« Reply #26 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.
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Board Icons
« Reply #27 on: February 17, 2014, 01:42:02 AM »
Ok, awesome, thanks John.

Offline GamePersia

  • Jr. Member
  • **
  • Posts: 261
  • Gender: Male
Re: Board Icons
« Reply #28 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 ?? :-\

Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
Re: Board Icons
« Reply #29 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!

Offline kamili34

  • Jr. Member
  • **
  • Posts: 232
  • Gender: Male
  • noob
    • pilarki.org
Re: Board Icons
« Reply #30 on: February 21, 2014, 05:05:13 PM »
Me too. Why it doesnt work on child boards. Why need to be change manually?

Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
Re: Board Icons
« Reply #31 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.

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Board Icons
« Reply #32 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.

Offline kamili34

  • Jr. Member
  • **
  • Posts: 232
  • Gender: Male
  • noob
    • pilarki.org
Re: Board Icons
« Reply #33 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.

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: Board Icons
« Reply #34 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...

Offline GamePersia

  • Jr. Member
  • **
  • Posts: 261
  • Gender: Male
Re: Board Icons
« Reply #35 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..

Offline kamili34

  • Jr. Member
  • **
  • Posts: 232
  • Gender: Male
  • noob
    • pilarki.org
Re: Board Icons
« Reply #36 on: February 26, 2014, 03:08:25 PM »
smf 2.0.7

Please check this file.

Offline Dream Portal Team

  • Semi-Newbie
  • *
  • Posts: 89
    • Dream Portal
Re: Board Icons
« Reply #37 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.
This is the universal account for the Dream Portal Team. All messages sent to this account will be discarded.  Please visit us at:  Dream Portal dot net for support and extensions to Dream Portal.

Offline Bachian

  • Semi-Newbie
  • *
  • Posts: 46
Re: Board Icons
« Reply #38 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?

TheListener

  • Guest
Re: Board Icons
« Reply #39 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.