Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: dougiefresh on March 01, 2016, 03:48:19 AM

Title: Drag and Drop Board Management
Post by: dougiefresh on March 01, 2016, 03:48:19 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=4083)



DRAG AND DROP BOARD MANAGEMENT v1.9
By Dougiefresh (http://www.simplemachines.org/community/index.php?action=profile;u=253913) -> Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=4083)



Introduction
This mod adds the ability to drag and drop individual boards to new positions either within the category it resides, or within a new category. 

This mod is based on the Manage Boards UI of the ElkArte (http://www.elkarte.net) fork of SMF (which is licensed under a 3-clause BSD License (http://opensource.org/licenses/BSD-3-Clause)), which has this functionality built in.

Related Discussion/Development Threads
o Discussion: Drag and drop board management (http://www.simplemachines.org/community/index.php?topic=510051.0)
o Development: Need help with new Drag and Drop Board Management mod.... (http://www.simplemachines.org/community/index.php?topic=543486.0)

Compatibility Notes
This mod was tested on SMF 2.0.11 and SMF 2.1 RC2, but should work on SMF 2.0 and up.  SMF 2.1 RC1 and before, as well as SMF 1.x is not and will not be supported.

Changelog
The changelog can be viewed at XPtsp.com (http://www.xptsp.com/board/free-modifications/drag-and-drop-board-management/?tab=1).

Special Thanks Goes Out To:
o Antes (http://www.simplemachines.org/community/index.php?action=profile;u=183330)

License
Copyright (c) 2016 - 2019, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Title: Re: Drag and Drop Board Management
Post by: Sesquipedalian on March 05, 2016, 06:16:15 AM
Very nice! Thanks, dougiefresh. :)
Title: Re: Drag and Drop Board Management
Post by: dougiefresh on March 07, 2016, 05:05:22 PM
Uploaded v1.2 - March 7th, 2016
o Added support for SMF 2.1 Beta 2.  No functionality change for SMF 2.0.x branch.
Title: Re: Drag and Drop Board Management
Post by: dougiefresh on March 23, 2016, 04:03:55 PM
Uploaded v1.3 - March 23rd, 2016
o Moved BoardOrder function from Sources/XML.php into Subs-DragDropBoards.php.
o SMF 2.1: Converted all XML.php operations into proper hooks.
Title: Re: Drag and Drop Board Management
Post by: GL700Wing on April 18, 2017, 06:02:56 AM
Quote from: dougiefresh on March 23, 2016, 04:03:55 PM
Uploaded v1.3 - March 23rd, 2016
o Moved BoardOrder function from Sources/XML.php into Subs-DragDropBoards.php.
It seems the BoardOrder function was renamed to DragDrop_XML when it was moved into ./Sources/Subs-DragDropBoards.php because I get the following error messages in the log when I use this mod: Call to undefined function BoardOrder() in ./Sources/Xml.php on line 44

Two possible solutions:
1.  Either rename all DragDrop_XML references in Subs-DragDropBoards.php to BoardOrder; or
2.  Change the second edit to ./Sources/Xml.php as follows:
'jumpto' => array(

'boardorder' => array(
'function' => 'DragDrop_XML',
),

Title: Re: Drag and Drop Board Management
Post by: dougiefresh on April 19, 2017, 11:06:07 AM
Uploaded v1.4 - April 19th, 2017
o Fixed undefined function error found by GL700Wing (https://www.simplemachines.org/community/index.php?action=profile;u=112942).




@GL700Wing:  Thank you for reporting and solving this bug!  It's been included in this version!
Title: Re: Drag and Drop Board Management
Post by: dougiefresh on July 07, 2017, 09:57:13 PM
Uploaded v1.5 - July 7th, 2017
o Added support for SMF 2.1 Beta 3.
o Removed support for SMF 2.1 Beta 2.
o SMF 2.1: Fixed bug where source code was copied and deleted during uninstall.
o SMF 2.1: Fixed undefined function error in Sources/Xml.php.
o Fixed language XML operations for both SMF 2.0.x and 2.1 compatibility.
Title: Re: Drag and Drop Board Management
Post by: dougiefresh on October 12, 2018, 09:39:55 PM
Uploaded v1.6 - October 12th, 2018
o No functionality change.
o Updated documentation to point to new website.
Title: Re: Drag and Drop Board Management
Post by: -Rock Lee- on October 13, 2018, 05:19:30 PM
In passing I leave the translation, I did not see this mod before :P I leave the translations to Latin Spanish as usual!


Regards!
Title: Re: Drag and Drop Board Management
Post by: dougiefresh on October 15, 2018, 12:09:59 PM
Uploaded v1.7 - October 15th, 2018
o Added Spanish Latin translation, courtsey of Rock Lee (https://www.simplemachines.org/community/index.php?action=profile;u=322597).
Title: Re: Drag and Drop Board Management
Post by: ORIONzitos on October 17, 2018, 10:44:08 AM
PT-BR translation...  8)
Title: Re: Drag and Drop Board Management
Post by: dougiefresh on October 17, 2018, 11:45:20 AM
Uploaded v1.8 - October 17th, 2018
o Added Brazilian Portuguese translation, courtsey of ORIONzitos (https://www.simplemachines.org/community/index.php?action=profile;u=598068).
Title: Re: Drag and Drop Board Management
Post by: Bigguy on October 17, 2018, 04:55:22 PM
Could this be done on a per user basis, so they can re-arrange the forum the way they want. ??
Title: Re: Drag and Drop Board Management
Post by: dougiefresh on October 17, 2018, 05:24:12 PM
 Hmmm....  Probably, although I personally wonder how much impact such a mod would have on forum performance.
Title: Re: Drag and Drop Board Management
Post by: Bigguy on October 17, 2018, 05:59:47 PM
Yeah I figured performance would take a hit. It was just a question I thought I would ask. :)
Title: Re: Drag and Drop Board Management
Post by: dougiefresh on October 18, 2018, 03:37:33 AM
Quote from: Bigguy on October 17, 2018, 05:59:47 PM
Yeah I figured performance would take a hit. It was just a question I thought I would ask. :)
Well, it might not be a bad hit, and who knows, it might be negligible....  Users wouldn't be able to change if a board is a child of another board, as that adds too much complexity to a drag-and-drop system for users.  However, the process of building an "admin-styled" board rearrangement UI, plus drag-and-drop management, for users is not a simple task....

I'm not sure if the benefits outweigh the effort to mod the forum like that.   Let me think on it some....  I can see the utility in such a mod, though....
Title: Re: Drag and Drop Board Management
Post by: Bigguy on October 18, 2018, 04:26:53 AM
It was just an idea I got when staring at this thread for a second or two. seems the logical direction for this mod though, lol.
Title: Re: Drag and Drop Board Management
Post by: Arantor on October 18, 2018, 05:03:16 AM
I'm curious, how is it "the logical direction"? I could see it being logical as part of a much larger refit of the entire system to focus on an individual user's wants over the community's (which implicitly comes at the price of making your community less of a community, a la Facebook)

On a practical note, if you did do it for all users individually, you'd also need to update the loading of boards for breadcrumbs which would be a small but annoying change.

Drag and drop for hierarchies and child boards isn't particularly icky for users, at least not the users who arranged albums inside albums in LevGal.
Title: Re: Drag and Drop Board Management
Post by: Bigguy on October 18, 2018, 05:18:45 AM
Well you have the functionality of it that only the admin gets to use. Why not try and extend that to the users. It seems to me that if this mod was going to be extended that this would be one of the only ways to do it. Like I said it was just a thought. No real harm done here.
Title: Re: Drag and Drop Board Management
Post by: dougiefresh on May 22, 2019, 10:09:37 PM
Uploaded v1.9 - May 22nd, 2019
o Added support for SMF 2.1 RC2.
o Removed support for SMF 2.1 Beta 3.
o Fixed language XML files to properly skip non-existant files.




@Bigguy:  I've given this idea very little thought over the last few months.....
Title: Re: Drag and Drop Board Management
Post by: Arantor on May 23, 2019, 05:19:19 PM
Quote from: dougiefresh on May 22, 2019, 10:09:37 PM
@Bigguy:  I've given this idea very little thought over the last few months.....

Making it user choice continues to be a bad idea. Also, good luck dealing with people who've rearranged the boards and have no idea how different their experience is from the admin's, who will then be expected to fix the situation.

A forum is a shared space by design, a space given form by the admin, and part of the point is that everyone collectively shares in it and has a consistent experience.
Title: Re: Drag and Drop Board Management
Post by: dougiefresh on May 23, 2019, 08:25:06 PM
Quote from: Arantor on May 23, 2019, 05:19:19 PM
Making it user choice continues to be a bad idea. Also, good luck dealing with people who've rearranged the boards and have no idea how different their experience is from the admin's, who will then be expected to fix the situation.

A forum is a shared space by design, a space given form by the admin, and part of the point is that everyone collectively shares in it and has a consistent experience.
b]@Arantor:[/b]  Both are good points.  I'm really not feeling this idea....
Title: Re: Drag and Drop Board Management
Post by: Bigguy on May 31, 2019, 06:06:50 PM
Hey it's fine. Like I said it was just something that hit me when looking at this. No problems here. ;)
Title: Re: Drag and Drop Board Management
Post by: Gunstra on July 22, 2024, 03:02:04 AM
Says package is corrupt no matter what browser or connection I try.
Title: Re: Drag and Drop Board Management
Post by: GL700Wing on July 22, 2024, 04:48:12 AM
Quote from: Gunstra on July 22, 2024, 03:02:04 AMSays package is corrupt no matter what browser or connection I try.
@Gunstra What version of SMF are you trying to install it on?