Wolfie Posted July 10, 2009 Posted July 10, 2009 For being able to make new settings, someone may want to be able to list the different available applications as a menu selection. Much like #show_groups# and #show_forums#.
Wolfie Posted July 10, 2009 Author Posted July 10, 2009 Awesome, thank you. I thought it wouldn't happen until 3.0.2 or later.
Martin A. Posted July 12, 2009 Posted July 12, 2009 [quote name='bfarber' date='10 July 2009 - 04:51 PM' timestamp='1247237480' post='1823901'] Done How about a #show_modules# too, while you're at it?
Wolfie Posted July 12, 2009 Author Posted July 12, 2009 [quote name='m4rtin' date='11 July 2009 - 10:15 PM' timestamp='1247364924' post='1824639'] How about a #show_modules# too, while you're at it? How about some real fun.. #show_users#, to list ALL of the members on the board. I'm sure that would be way fun for boards with 1,000 or more members. :D Being serious though. #show_modules# and #show_hooks# could be helpful to those who make mods/apps/hooks.
Martin A. Posted July 12, 2009 Posted July 12, 2009 #show_topics# would be better/worse/w/e :P I think #show_modules# will benefit those who make hooks that are restricted to certain sections on the board. Global Forum Message and IP.Shoutbox, just to mention a some.
bfarber Posted July 13, 2009 Posted July 13, 2009 Will take a look in the next update, but show_modules is a little more challenging to have it "look" right. You'd probably want to section them off by application, which would mean the application would have to be in the options list (the apis to create the dropdowns can't do optgroups for example).
Wolfie Posted July 13, 2009 Author Posted July 13, 2009 Anything that helps out those who make hooks and applications. :)
Lewis P Posted July 13, 2009 Posted July 13, 2009 Now, I hate to be stupid. :P Everything suggested sounds like something that could be useful to me... but, how exactly do you access them? :blush:
Wolfie Posted July 13, 2009 Author Posted July 13, 2009 When you make a setting to use in the ACP in the System Settings, for the Extra to show to the Admin, you put in #show_groups# or #show_forums#, etc, and then it gives you a list when you see the setting in use. Like in Topis, Posts & Polls, the "Ignored Users: Protected Groups" setting, it shows a list of the different Member Groups. If you were to look at the data to make that setting possible, you would see #show_groups# Make a new setting to play with: Enjoy! :DSetting Extra? #show_forums#
Lewis P Posted July 13, 2009 Posted July 13, 2009 aaah, Very nice. That is exactly what I wanted for something I'm working on if I'm honest. :P
Wolfie Posted July 13, 2009 Author Posted July 13, 2009 [quote name='Putzу' date='13 July 2009 - 02:48 PM' timestamp='1247510903' post='1825617'] aaah, Very nice. That is exactly what I wanted for something I'm working on if I'm honest. :P Think you'll be able to make use of #show_applications# ?
Martin A. Posted July 14, 2009 Posted July 14, 2009 [quote name='bfarber' date='13 July 2009 - 04:57 PM' timestamp='1247497020' post='1825486'] Will take a look in the next update, but show_modules is a little more challenging to have it "look" right. You'd probably want to section them off by application, which would mean the application would have to be in the options list (the apis to create the dropdowns can't do optgroups for example).$this->DB->build( array( 'select' => 'm.sys_module_key, m.sys_module_title, m.sys_module_application', 'from' => array( 'core_sys_module' => 'm' ), 'order' => 'a.app_title ASC, m.sys_module_title ASC', 'where' => 'm.sys_module_admin=0 AND m.sys_module_visible=1', 'add_join' => array( array( 'select' => 'a.app_title', 'from' => array( 'core_applications' => 'a' ), 'where' => 'a.app_directory=m.sys_module_application', 'type' => 'left' ) ) ) ); $this->DB->execute(); $modules = array(); $modules['all'] = "All modules"; while( $r = $this->DB->fetch() ) { $modules[ $r['sys_module_application'] . '::' . $r['sys_module_key'] ] = $r['app_title'] . ':: ' . $r['sys_module_title']; }
Lewis P Posted July 15, 2009 Posted July 15, 2009 [quote name='.Wolfie' date='13 July 2009 - 08:39 PM' timestamp='1247513940' post='1825642'] Think you'll be able to make use of #show_applications# ? Not for anything I plan on releasing, but for something I plan on using on my board, yes. :P
Recommended Posts
Archived
This topic is now archived and is closed to further replies.