Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,736 topics in this forum
-
- 1 reply
- 436 views
I need to hook into Downloads settings form (.../applications\downloads\modules\admin\downloads/settings.php) to update a hook but I can't because it isn't returning the form itself: ... \IPS\Output::i()->title = \IPS\Member::loggedIn()->language()->addToStack('settings'); \IPS\Output::i()->output = $form; } It should return $form. Due to that, I got the error: It was like that on Forums app too but it was changed in early days of 4.0 at requests. Thank you.
Last reply by bfarber, -
- 1 follower
- 3 replies
- 747 views
I've spent a good deal of time trying to get the Wizard helper to work correctly in a new application I'm building. A lot of wasted time was caused by this, The error here is not that no file was provided in the above field. This is the error that always ends up being displayed for me when an exception is thrown anywhere during the Wizard's code execution. So, this was the actual issue here, which I managed to trace down after a lot of die(var_dump())'ing, since the Wizard had no means of providing a real traceback to the issue, There was a very minor oversight in the above code, which should have been easily identifiable. The favicons static method w…
Last reply by Makoto, -
- 1 follower
- 1 reply
- 378 views
can we get added to the __constructor's phpdoc, that if you do bother to fill in the 8th parameter of it on a editor, that the $id and $name parameters be different, or the editor will eat up everything after it and put it is as editor content.
Last reply by Mark, -
- 1 follower
- 2 replies
- 455 views
on the activerecord, static method load(), for the $idField parameter, can we have it a bit more consistent? if i define a $idField it has be the full columns name, so if prefix of say "mine_", i have to pass it "mine_key", same with the static::$databaseIdFields, i would have to have "mine_key" there as well...when the rest of the class i would just call $this->key.
Last reply by CodingJungle, -
- 2 followers
- 5 replies
- 438 views
I have a custom app that uses Content Items without containers. Everything is great, until I added the ability to delete an item. I end up with a "We could not find the item you are trying to view" error. Eventually found the root cause in \IPS\Content\Controller, line 459. if( \IPS\Request::i()->action == 'delete' ) { \IPS\Output::i()->redirect( $item->container()->url() ); } Can we please stop assuming that everything follows the Container -> Item -> Comment structure? It's extremely frustrating. If containers are supposed to be optional, let's please try and keep them optional. I can provide other examples of where the structure i…
Last reply by CodingJungle, -
- 3 followers
- 13 replies
- 556 views
Honestly, I don't see any sense in doing this. You require us to inform a file name when creating a hook and when you install it, it goes away: I have nothing else to do but enter in each of those files to find the one I want to edit! You already stopped renaming the plugin folder, that's a HUGE step forward. Now please, stop renaming file names too. EDIT: other situation: sometimes we need to support a client and very often make some quick change in a hook while we don't release a new version. How to do that ? I don't know which file to edit!
Last reply by Stuart Silvester, -
- 2 replies
- 402 views
./applications/core/modules/front/members/profile.php \IPS\core\modules\front\member\profile::edit() Can you please abstract the form building and form processing for the member profile editing form to separate methods within the controller (or elsewhere)? One of my apps currently has to override/duplicate the entire edit() method of the controller in order to add in my own form elements and process them. There is no other way to do it.
Last reply by Mark, -
- 1 follower
- 5 replies
- 821 views
Since 4.1 is pushing a minimum of php 5.4, can we get the autoloader to work with traits? /* is it a trait? */ if ( function_exists('trait_exists') and trait_exists( "{$namespace}\\{$class}", FALSE ) ) { return; } add this to the init.php after the interface_exists check on line 274, allows traits to be loaded and used (and for whatever reason, if they are still able to use php 5.3 with 4.1, then it wont error out looking for a non existent function )
Last reply by CodingJungle, -
- 1 follower
- 2 replies
- 434 views
ips.ui.stack.js has a "maxItems" option, but the Stack form helper doesn't have a $defaultOptions to set one, it would be helpful if it was in the $defaultOptions.
Last reply by CodingJungle, -
- 1 follower
- 15 replies
- 648 views
I'm building an import script for one of my clients. Since it's dealing with thousands of entries, I've set up a multiple redirect using \IPS\Helpers\MultipleRedirect. Everything seems to be working, however: 1. It's really really REALLY slow. Painfully slow. And the script is doing almost nothing. Reads an email address, checks if it exists, otherwise creates a member account. It's not even sending emails (because this is a test run). I'm afraid that when I turn on the email notifications, it will take hours. 2. It's doing a full page refresh instead of that nice progress bar thing that happens when you install an app or a plugin. How do I make it behave l…
Last reply by HeadStand, -
- 1 follower
- 2 replies
- 435 views
create() method calls the buildCreateForm(), which you can overload in your item class, to define say the form's class (ipsForm_vertical is the default), say you want to switch it to ipsForm_horizontal or add additional class's, etc. However, in the content/controller.php, edit(), inits the form class, and there isn't an easy way to switch the form's style class, other than overloading the entire method and recreating it. it would be helpful if edit also used the buildCreateForm() method or another one that we can overload to do what we want with the form for edit.
Last reply by CodingJungle,