News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Board color and icons

Started by oOo--STAR--oOo, August 19, 2011, 10:44:12 AM

Previous topic - Next topic

eleex

ield 'icon' doesn't have a default value
File: /var/www/html/Sources/Subs-Boards.php
Line: 779


785 to 816

// Change the board according to the given specifications.
   modifyBoard($board_id, $boardOptions);

   // Do we want the parent permissions to be inherited?
   if ($boardOptions['inherit_permissions'])
   {
      getBoardTree();

      if (!empty($boards[$board_id]['parent']))
      {
         $request = $smcFunc['db_query']('', '
            SELECT id_profile
            FROM {db_prefix}boards
            WHERE id_board = {int:board_parent}
            LIMIT 1',
            array(
               'board_parent' => (int) $boards[$board_id]['parent'],
            )
         );
         list ($boardOptions['profile']) = $smcFunc['db_fetch_row']($request);
         $smcFunc['db_free_result']($request);

         $smcFunc['db_query']('', '
            UPDATE {db_prefix}boards
            SET id_profile = {int:new_profile}
            WHERE id_board = {int:current_board}',
            array(
               'new_profile' => $boardOptions['profile'],
               'current_board' => $board_id,
            )
         );
      }

Steve

You might want to explain what your problem is and put that code between code tags. :)
DO NOT pm me for support!

eleex

Well, the problem is that I use SMF 2.0.10-and once I put this mode, since I can not create a sub forum
The above error of assessment

Siirist

Good Day,

Here is my situation. This works wonderfully when using the SMF Default Theme. forum
I am using SMF ver 2.0.11 with the following MODs
1.    Avatar Drop Shadows
2.    Advance Fake Guests n Users Online (fguo)
3.    NChat
4.    Avatar Rounded Corners
5.    Project Snow
6.    Enhanced Dropdown
7.    Topic Solved
8.    Menu_Icons
9.    SMF Gallery Lite
10.    SMF 2.0.11 Update
11.    Board-color-and-icons

It is amazing that it even works with 1028 (Fresh Looks {Green}) without any issues.

However, it does NOT work with the Fumes or Havvo themes.
If you care to see Havvo Theme you can login with UserName=Sample Password=showme
NOTE: This account is suspended, so you do NOT have a Menu, posting or reading permissions

My guess is to make modifications to each of the following files (for these themes)
~default/BoardIndex.template.php
~default/ManageBoards.template.php
~default/MessageIndex.template.php
~core/MessageIndex.template.php
~default/languages/Modifications.english.php

Does this make sense to you, the more experienced members?

Most Sincerely,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Siirist

Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Siirist

No worries, I have changed things around and got it working now.

Cheers,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Siirist

Hello,

Using SMF ver 2.0.11, with the following Mods installed:

  • Topic Solved 1.1.1
  • Copy Topics 1.6
  • Board Icons (little 20px x 20px) 1.0
  • SMF 2.0.11 Update 1.0
  • Default Membergroup 2.0
  • Welcome Topic Mod 2.2
  • Enhanced Dropdown 1.3
  • Board-color-and-icons 1.1
  • SMF 1.1.21 / 2.0.10 Update 1.0
  • Simply Menu Icons 1.0
  • audiablepm 1.5


Works on Default Core, and Ostara1, and Fresh Looks (green), HOWEVER, it does not function on Fumes which is compatible with 2.0.11.

Odd

Link to forum is in my Signature

I can PM a username and password

Thanks in advance.


Be Well,
Siriist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Siirist

Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Siirist

Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

oOo--STAR--oOo

I'm sorry about this, I'll help you fix this problem!

Are there any errors or anything when installing this mod? Parse errors? What are the actual effects of the mod when you install it?
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

Siirist

Quote from: aljo1985 on July 06, 2016, 11:05:51 PM
I'm sorry about this, I'll help you fix this problem!

Are there any errors or anything when installing this mod? Parse errors? What are the actual effects of the mod when you install it?

Thank you Alijo,

As I recall there were no errors upon installation.

Nor Parsing errors. By the way, the parse is not theme specific, ie when I looked through it everything was Themes/default or Sources and such.
You can see the parsing here -> http://custom.simplemachines.org/mods/index.php?action=parse[nofollow]

You can see what it is supposed to do in the attached screenshot

I can PM you a username and password for a regular member if you like.

Thank you again.

Be Well,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

oOo--STAR--oOo

Alright, do you need help fixing anything on this with your current forum?

When I finished doing some of my things I need to do, I will update this mod and have it parse for other themes.
I also wanna allow you to change the position of the icon, before or after the board text. On my old forums, I did actually have the icon before which I think looks better.

example!
http://www.uniquez-home.com

Its old and being redesigning.
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

Siirist

Quote from: aljo1985 on July 07, 2016, 02:13:24 PM
Alright, do you need help fixing anything on this with your current forum?

When I finished doing some of my things I need to do, I will update this mod and have it parse for other themes.
I also wanna allow you to change the position of the icon, before or after the board text. On my old forums, I did actually have the icon before which I think looks better.

example!
http://www.uniquez-home.com

Its old and being redesigning.

I will wait, thank you.

I think the icons in front do look better.

Be Well,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Cadilab

Hello, I recently installed these two mods.
The first one sorts childboards in columns and the second one is supposed to color them.
So the problem is, the boards(read parent) are colored, but the child ones are not, but when i remove Board color and icons they are.
So, does anyone know what could be the problem ? I've seen forums do this(read: changed color of child board).

Images:




oOo--STAR--oOo

Quote from: Cadilab on January 30, 2017, 12:00:31 PM
Hello, I recently installed these two mods.
The first one sorts childboards in columns and the second one is supposed to color them.
So the problem is, the boards(read parent) are colored, but the child ones are not, but when i remove Board color and icons they are.
So, does anyone know what could be the problem ? I've seen forums do this(read: changed color of child board).

Images:





Hey, the mod is not compatible with the child mod you have installed. This is why the colours are not showing on your child boards.
Sorry for the late responses I am very busy as I have many projects at once. SMF is just one of them.

It would require a rewrite for it to work with that modification and could take some time for me to look into it to provide a fix for you.
Currently working on so many things. Sorry about that.

When I get some spare time I will try and have a look at this for you.
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

Cadilab

Hey, no problem.
By any chance, do you have another mod for child boards that is compatible with your color mod ?
I have seen a forums that are using I guess your mod and child boards.
If you want I can provide a link for you in pm.

oOo--STAR--oOo

Quote from: Cadilab on January 30, 2017, 02:35:43 PM
Hey, no problem.
By any chance, do you have another mod for child boards that is compatible with your color mod ?
I have seen a forums that are using I guess your mod and child boards.
If you want I can provide a link for you in pm.

Where exactly does it not show you the colour of the child boards? Is it just the main forum page where the colour of the childboards are not changing? Do you see them coloured in other places within your website?
You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

Cadilab

Yes just on the main page. When i open the board they are in colors.

oOo--STAR--oOo

Are you using a paid theme because you are using a theme with a different layout the modification would need slightly different edits to display the colours. I can apply these edits for you, but if its a paid theme I am not sure if you are allowed to send me the template files I need to edit manually.

I need
/Themes/youtheme/MessageIndex.template.php
/Themes/youtheme/BoardIndex.template.php

I can possibly apply those edits for you.

You can't fool a sufficiently talented fool.

http://www.uniquez-home.com
In Design Phase!

Mods I am designing,  No refresh Collapse Categories , Poll Redesign , Pure CSS Breadcrumb , Profile Statuses, Profile Views.

Cadilab


Advertisement: