Jump to content
DevFuse Forums
Due to a family and medical emergency, support has been delayed and will be delayed for the next few weeks. I'm sorry for those who have been waiting and will try my hardest to reply to everyone as soon as possible.
Sign in to follow this  

[IPB 2.3.x] Export settings with postition order


Will show you how to group settings ordered by position instead of id
When you export groups settings, it exports it by ordering with conf_id. This tutorial will show you how to change that to conf_position, as it's a lot easier to review the settings.xml file later on.

Open sources/action_admin/settings.php

Find: (around line 2857)

[code] $this->ipsclass->DB->simple_select( '*', 'conf_settings', "conf_group = {$this->ipsclass->input['conf_group']}" );

Replace With:

[code] //$this->ipsclass->DB->simple_select( '*', 'conf_settings', "conf_group = {$this->ipsclass->input['conf_group']}" );

$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'conf_settings', 'order' => "conf_position ASC", 'where' => "conf_group = {$this->ipsclass->input['conf_group']}" ));

Save sources/action_admin/settings.php and your done. :)

Recommended Comments

There are no comments to display.

  • Create New...