[mod request] Custom sorting of styles in admin control pane

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk
Contact:

[mod request] Custom sorting of styles in admin control pane

Postby steve » 05 Feb 2010, 10:16

i would like to arrange my styles templates/themes and imagesets by moving them or or down under in ac panel like you can do with forums,smilies etc. :thumbup:
[img]http://www.djsimg.com/images/76842591_icon_hide.gif[/img]
Steve ©

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [mod request] Custom sorting of styles in admin control

Postby RMcGirr83 » 05 Feb 2010, 14:22

That may be doable...I'll take a look at it when I get some free time.

steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk
Contact:

Re: [mod request] Custom sorting of styles in admin control

Postby steve » 05 Feb 2010, 15:21

cool :)
Steve ©

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [mod request] Custom sorting of styles in admin control

Postby RMcGirr83 » 06 Feb 2010, 02:10

Steve,

What would be the purpose/what are you trying to accomplish by doing this?

steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk
Contact:

Re: [mod request] Custom sorting of styles in admin control

Postby steve » 06 Feb 2010, 11:22

Ive got 20 styles installed and the latest style im working on happens to be at the bottom of the list. Id like it at the top of the list as not to scroll down and not to refresh the template/theme for eg for a style above or below the one im working on by mistake.
Steve ©

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [mod request] Custom sorting of styles in admin control

Postby RMcGirr83 » 06 Feb 2010, 12:00

Thing is there are multiple tables, unlike with custom bbcodes or smilies, within the database that are in play when editing/manipulation a style

STYLES, STYLES_TEMPLATE, STYLES_THEME, STYLES_IMAGESET.

So you would be doing a lot of clicking for, IMHO, very little gain.

So I will have to say "Pass" on this one.

Good luck! :)

steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk
Contact:

Re: [mod request] Custom sorting of styles in admin control

Postby steve » 06 Feb 2010, 16:55

Ok ,cheers anyways m8 :)
Steve ©

Me Myself and I
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [mod request] Custom sorting of styles in admin control

Postby Me Myself and I » 21 Feb 2010, 05:27

You could change the sort order to descending.

in includes/acp/acp_styles.php

Find, (to get the position for the next find)
'L_CREATE' => $user->lang['CREATE_' . $l_prefix],

Find, (Should be line 596)
FROM $sql_from";

Replace with,
FROM $sql_from
ORDER BY style_id DESC";

This will reverse the display of the styles, so the last ID will be at the top.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Modders MOD support”

Who is online

Users browsing this forum: No registered users and 44 guests