Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,680 topics in this forum
-
- 2 replies
- 305 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
- 626 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
- 309 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
- 532 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
- 311 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,