desti Posted May 12, 2009 Posted May 12, 2009 1. Add to information.xml structure fields <langsgroups> </langsgroups> for deletion lang files (like <templatesgroups>). 2. Change id structure (member_form.php & group_form.php) to tabtab-MEMBERS|[app_name] (checked, it works, but?) 3. Place application tabs after already created system tabs.
bfarber Posted May 12, 2009 Posted May 12, 2009 [quote name='desti' date='12 May 2009 - 03:19 AM' timestamp='1242112780' post='1801052'] 1. Add to information.xml structure fields <langsgroups> </langsgroups> for deletion lang files (like <templatesgroups>). It's not needed. Language files need to be "(app)_(custom name).php" so we can already detect and remove language files by the application prefix. e.g. language files for the core application all start with "core_" - so when the application is removed we could just delete all language files starting with "core_". ;) [quote name='desti' date='12 May 2009 - 03:19 AM' timestamp='1242112780' post='1801052']2. Change id structure (member_form.php & group_form.php) to tabtab-MEMBERS|[app_name] (checked, it works, but?) This would not allow you to have more than one tab for the application, though it's arguable if that's a bad thing or not. For the record, the group tab integration stuff already supports methods to set the tab ID number properly, but the members tab integration does not presently. [quote name='desti' date='12 May 2009 - 03:19 AM' timestamp='1242112780' post='1801052']3. Place application tabs after already created system tabs. Errr, they already are. :unsure:
Michael Posted May 12, 2009 Posted May 12, 2009 For #3, I think he means add actual new tabs at the top, not just add new items to the My Apps dropdown. I think it's fine like it is, as more tabs could mean you'll run out of horizontal space for those tabs when you have more apps installed.
desti Posted May 12, 2009 Author Posted May 12, 2009 "Errr, they already are. " :( "Mods settings" - my tabs.
desti Posted May 12, 2009 Author Posted May 12, 2009 [quote name='bfarber' date='12 May 2009 - 06:08 PM' timestamp='1242133722' post='1801084'] 1. It's not needed. Language files need to be "(app)_(custom name).php"... just delete.... 2. For the record, the group tab integration stuff already supports methods to set the tab ID number properly, but the members tab integration does not presently. 1. And "just delete" application .js files from system js folder, coz app js folder only for ACP scripts? Sugg: add variable $this->settings['js_app_url'] for public mode, now it work in ACP only. 2. (groups) $tabUsed = 2, clean ipb install. Bug??? ;)
bfarber Posted May 12, 2009 Posted May 12, 2009 Sorry, I didn't understand what you were saying there. All of IPB uses one JS language file, and the applications don't use any. You can set JS variables in the HTML source if need be. If having a JS langauge file is a necessity for you, the uninstallation routines from the application management screen support running a custom uninstall script - so you can use that to delete the JS files yourself. As for the tabsUsed bit, the source code is encoded presently, but once it's not you can take a look at how we add the tabs. http://resources.invisionpower.com/index.php?appcomponent=cms&module=articles&article=7529 This may be of help as well.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.