Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: ascaland on January 09, 2012, 08:20:28 PM

Title: AJAX Board Reordering - v2.0
Post by: ascaland on January 09, 2012, 08:20:28 PM
AJAX Board Reordering


Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3293) || Author (http://www.simplemachines.org/community/index.php?action=profile;u=164151) || Support Topic (http://www.simplemachines.org/community/index.php?topic=465013)


This modification allows membergroups with the permission to manage boards, rearrange the order of boards dynamically and without page load using the jQuery Javascript library.

Released under the GNU/GPL license.

Created by Anthony Calandra/Anthony`/Project Evolution - 2012.
Title: Re: AJAX Board Reordering
Post by: Matthew K. on January 09, 2012, 08:22:30 PM
Congratulations, very nice job. Keep it up bro.
Title: Re: AJAX Board Reordering
Post by: Antechinus on January 09, 2012, 08:38:05 PM
Tasty idea. :)
Title: Re: AJAX Board Reordering
Post by: mashby on January 09, 2012, 09:03:19 PM
Had to install this on a test site solely because it uses jQuery (when needed). Dig it!
Title: Re: AJAX Board Reordering
Post by: The Craw on January 09, 2012, 09:22:23 PM
Very very nice. I'm glad to see some more people using jQuery to its full potential, and not just for UI animation.
Title: Re: AJAX Board Reordering
Post by: Matthew K. on January 09, 2012, 09:23:25 PM
Quote from: The Craw on January 09, 2012, 09:22:23 PM
Very very nice. I'm glad to see some more people using jQuery to its full potential, and not just for UI animation.
Are you trying to tell me something? :P
Title: Re: AJAX Board Reordering
Post by: The Craw on January 09, 2012, 09:25:54 PM
Quote from: Labradoodle-360 on January 09, 2012, 09:23:25 PM
Quote from: The Craw on January 09, 2012, 09:22:23 PM
Very very nice. I'm glad to see some more people using jQuery to its full potential, and not just for UI animation.
Are you trying to tell me something? :P

Not you personally, no.
Title: Re: AJAX Board Reordering
Post by: Nibogo on January 11, 2012, 10:22:35 AM
Nice mod, if doesn't exists yet, you'd Add ajax to collapse boards
Title: Re: AJAX Board Reordering
Post by: Robert. on January 11, 2012, 11:42:58 AM
Great mod :)
Title: Re: AJAX Board Reordering
Post by: ascaland on January 11, 2012, 04:52:25 PM
Thanks for all the great comments!

Quote from: Nibogo on January 11, 2012, 10:22:35 AM
Nice mod, if doesn't exists yet, you'd Add ajax to collapse boards

Hopefully I can get to that soon, I got a bit of a TODO list but with exams coming up I might get a bit stalled in development. :)
Title: Re: AJAX Board Reordering
Post by: digit on January 23, 2012, 03:10:26 PM
I just installed it and don't understand what it is supposed to do. Any more screen shots?

I set up a user as a Global Mod - made sure global mods can manage the boards, yet I see no difference with that user.   :'(



WOAH.  Just reset the forum to the default theme and wow.

Pretty cool!   8)

I don't want to even test it it looks so cool. LOL

These changes will be permanent to all users? (just like re-ordering boards in the admin section, but way cooler looking?)
Title: Re: AJAX Board Reordering
Post by: ascaland on January 23, 2012, 04:17:06 PM
Quote from: digit on January 23, 2012, 03:10:26 PM
I just installed it and don't understand what it is supposed to do. Any more screen shots?

I set up a user as a Global Mod - made sure global mods can manage the boards, yet I see no difference with that user.   :'(



WOAH.  Just reset the forum to the default theme and wow.

Pretty cool!   8)

I don't want to even test it it looks so cool. LOL

These changes will be permanent to all users? (just like re-ordering boards in the admin section, but way cooler looking?)

Yes, they will. :)
It reorders the board and sends a query back to the server so it can modify the database.
Title: Re: AJAX Board Reordering
Post by: ormuz on January 26, 2012, 09:05:57 AM
demo, please...
Title: Re: AJAX Board Reordering
Post by: Arantor on January 26, 2012, 09:17:39 AM
Hard to give a *demo* of something in the admin panel. Why not try it out on a test site?
Title: Re: AJAX Board Reordering
Post by: ormuz on January 26, 2012, 01:40:10 PM
Quote from: Arantor on January 26, 2012, 09:17:39 AM
Hard to give a *demo* of something in the admin panel. Why not try it out on a test site?

Sorry, I thought this was a frontend feature. My bad...
Title: Re: AJAX Board Reordering
Post by: Matthew K. on January 26, 2012, 01:54:28 PM
It is a front-end feature...Arantor just didn't know :P
Title: Re: AJAX Board Reordering
Post by: Arantor on January 26, 2012, 02:00:47 PM
*shrug* Yes, yet another thing I got wrong.
Title: Re: AJAX Board Reordering
Post by: Matthew K. on January 26, 2012, 02:11:09 PM
You're fine :)
Title: Re: AJAX Board Reordering
Post by: Mikirin on March 26, 2012, 06:42:48 PM
Is there any way to make it per-user? For example, I have a General Discussion category and a Hobbies category, and I want users to be able to easily select which order they're in. Is that possible?

So User A can have...
General Discussion
Hobbies

and User B can have...
Hobbies
General Discussion
Title: Re: AJAX Board Reordering
Post by: Matthew K. on March 26, 2012, 06:44:12 PM
It's not possible with that mod, although I did have that idea a while back, decided to drop it because this mod, but I suppose I could do it sometime.
Title: Re: AJAX Board Reordering
Post by: Mikirin on March 26, 2012, 06:51:13 PM
Quote from: Labradoodle-360 on March 26, 2012, 06:44:12 PM
It's not possible with that mod, although I did have that idea a while back, decided to drop it because this mod, but I suppose I could do it sometime.
I would love to see it made. ♥
Title: Re: AJAX Board Reordering
Post by: ascaland on March 26, 2012, 09:04:18 PM
Quote from: Mikirin on March 26, 2012, 06:51:13 PM
Quote from: Labradoodle-360 on March 26, 2012, 06:44:12 PM
It's not possible with that mod, although I did have that idea a while back, decided to drop it because this mod, but I suppose I could do it sometime.
I would love to see it made. ♥

Possibly in the future. Maybe, maybe not.
Title: Re: AJAX Board Reordering
Post by: FrizzleFried on June 15, 2012, 04:23:04 PM
This mod is not compatible with the statistics in jquery mod.  Any way to make it so by chance?

Title: Re: AJAX Board Reordering
Post by: ascaland on June 18, 2012, 06:15:13 PM
Quote from: FrizzleFried on June 15, 2012, 04:23:04 PM
This mod is not compatible with the statistics in jquery mod.  Any way to make it so by chance?

Sorry I seemed to have made a mistake in my previous un-editted post.

It seems that the jQuery UI isn't being loaded due to some logic on my part. In BoardIndex.php, replace,
        <script type="text/javascript">
            !window.jQuery && document.write(unescape(\'%3Cscript src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"%3E%3C/script%3E%3Cscript src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"%3E%3C/script%3E\'));
        </script>


With,
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>

This means the jQuery statistics mod needs to be activated in order to have this work. I will hopefully get this fixed up for version 2 sometime tonight or tomorrow.
Title: Re: AJAX Board Reordering - 2.0
Post by: ascaland on June 19, 2012, 07:07:57 PM
This mod is now updated! It can now handle board re-arrangements to new categories.
Title: Re: AJAX Board Reordering - v2.0
Post by: ocmdiaz714 on August 27, 2012, 02:47:55 AM
How does it work? Do I hold down the forum name and drag?
Title: Re: AJAX Board Reordering - v2.0
Post by: ascaland on August 27, 2012, 01:22:44 PM
Quote from: ocmdiaz714 on August 27, 2012, 02:47:55 AM
How does it work? Do I hold down the forum name and drag?

Hold down the board block and drag it to the place you want it.
Title: Re: AJAX Board Reordering - v2.0
Post by: Snrj on April 09, 2016, 03:35:44 PM
turkish translate
Modifications.turkish-utf8.php or Modifications.turkish.php find
?>
after
$txt['reorder_boards_success'] = 'Bölüm Başarıyla Taşındı.';
$txt['category_confirm_text'] = 'Bu bölümü farklı bir kategoriye taşımak istediğinize emin misiniz?';
$txt['enable_ajax_reorder'] = 'AJAX Bölüm Sıralamayı Etkinleştir?';


can not see the modifications to the admin panel
Sources/Subs.php find
function integrateReorderBoardsSettings($config_vars)
replace
function integrateReorderBoardsSettings(&$config_vars)
Title: Re: AJAX Board Reordering - v2.0
Post by: -Rock Lee- on April 09, 2016, 09:46:28 PM
This had not ever seen ... let's try it!

Modifications.spanish_latin.php
$txt['reorder_boards_success'] = 'Foro movido con de &eacute;xito.';
$txt['category_confirm_text'] = '¿Est&aacute; seguro de que desea mover el foro para una nueva categoría?';
$txt['enable_ajax_reorder'] = '¿Habilitar AJAX reordenamiento de foros?';


and Modifications.spanish_latin-utf8.php
$txt['reorder_boards_success'] = 'Foro movido con de éxito.';
$txt['category_confirm_text'] = '¿Está seguro de que desea mover el foro para una nueva categoría?';
$txt['enable_ajax_reorder'] = '¿Habilitar AJAX reordenamiento de foros?';



Regards!
Title: Re: AJAX Board Reordering - v2.0
Post by: JerzyLS on May 28, 2016, 05:53:04 PM
It's still working?
I just installed it... and I can't see any enhancements. :(