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
-
- 3 replies
- 188 views
Ok so in my test app I am trying to get the ACP tab to show, I have done it a thousand times before but for some reason I can't do it now, I created the module and controller and nothing shows, Not even in the Admin CP menu bit The only time it show's is if I choose to put the controller in say the Community or Core tab, If then I try to create my own via the Admin CP menu all it gives is a whooops error and I have to disable in dev and uninstall the app, delete it then start over, I am about to smash my computer up over this as it's beginning to really stress me out, Any help would be nice and also probably save my computer from dying
Last reply by TheJackal84, -
- 1 follower
- 1 reply
- 267 views
hello. I have button like <a href='' id='' class='class A'></a> and I need to change this class if user is using mobile version. What is the best way to do it? <a href='' id='' class='if mobile then class A else class B'></a> regards
Last reply by Sonya*, -
- 1 follower
- 4 replies
- 326 views
hello, I am trying to configure my ide (eclipse pdt) with ips 4.1. Unfortunately I can deal with errors about namespaces. screen below: What should I do?
Last reply by CodingJungle, -
- 1 reply
- 184 views
Hello, I need some help with adding notification to one of my applications(Topic Reviews). I have followed this guide here: So far so good. The user receives the notifications when one of their topics is reviewed. However, the option in their notification settings is blank. How can I make it so that the notifications options appear there, and only the inline one is enabled. Whereas the email notification setting is disabled and con not be selected by the user. Here is an screenshot of how it appears to me.
Last reply by Faqole, -
- 10 replies
- 260 views
When I try to put say a block in the members profile, There is only 1 way I found to do it and that's to hook into #elProfileInfoColumn > div.ipsPad And to set it to show at the top or bottom etc, But I really want to place the hook say above the followers or the about user block, the problem is they all use the same divisions like shown below, <div class="ipsWidget ipsWidget_vertical cProfileSidebarBlock ipsBox ipsSpacer_bottom"> So if I try to place the hook around one of them divisions it will just loop the hook and place it under/over all 3 blocks, Even adding a class to it, adds the class to all divisions, The only way I found to do it is to re…
Last reply by TheJackal84, -
- 1 follower
- 6 replies
- 292 views
Hi, Can someone point me in the right direction or explain briefly how to create hooks to redirect registration to my 3rd party application? I also need hooks for password and email changes if possible. Thank you!
Last reply by Cirrus Soft, -
- 1 follower
- 1 reply
- 211 views
I have a test installation which is put behind http authorization. However, this means I cannot access the API-area of the admin CP, because I get the following error: The API endpoint is not giving the expected response. Check you followed the instructions correctly. The URL being tested is: removed.com/api/core/hello I have configured nginx to handle /api/ like it should, so that's not the problem. The problem is that IPS tries the requests and gets a 401 http header in response, which it's unable to handle. When a 401 is encountered on such requests, at least in the admin control panel, could you please let us be able to provide the http auth inform…
Last reply by bfarber, -
- 1 follower
- 5 replies
- 256 views
I have a custom app, and I set up a custom menu tab in the ACP in my development environment. My acpmenu.json file looks like this: { "machines": { "versions": { "tab": "posts", "controller": "versions", "do": "", "restriction": null } }, "directory": { "settings": { "tab": "posts", "controller": "settings", "do": "", "restriction": null } } } and in my lang.php file, I have 'menutab__posts' => "Posts", 'menutab__posts_icon' => "laptop", Works perfectly in my dev environment. I build the app, install on the cus…
Last reply by HeadStand, -
- 1 follower
- 1 reply
- 273 views
In regards to: People are beginning to ask when automation rules will be updated to work with the new reactions system. I have had to tell them that I cannot hook into the new functionality to connect a rules event because it uses traits. Is there any internal dialog going related to the choice to encapsulate functionality in traits? I'm concerned that you're beginning to close the system off to extensibility.
Last reply by Lindy, -
- 3 replies
- 313 views
I used this example below to allow users who have logged in to a third party application to be automatically logged in to the community. I created the hook, but specifically this part I can't seem to get working: /* If our check was successful, we create the member if he does not exist, otherwise we load the member. We then set $this->member to the member object we've loaded */ I coded this and confirmed $username and $email are collected: try { $member = \IPS\Member::load( $username ); } catch ( \OutOfRangeException $e ) …
Last reply by Cirrus Soft, -
- 1 follower
- 3 replies
- 275 views
I am using a custom table to show data that is pulled from an API. The problem is that the API does not tell me how many how many records I'm going to get, only whether another page exists. Can we get a flag on the table class to trigger simple pagination? Right now the output is buried in \IPS\Helpers\Table::__toString \IPS\Output::i()->json( array( 'rows' => $rowHtml, 'pagination' => \IPS\Theme::i()->getTemplate( 'global', 'core', 'global' )->pagination( $this->baseUrl, $this->pages, $this->page, $this->limit, TRUE, $this->paginationKey ), 'extraHtml' => $this->extraHtml ) ); Since it calls the json method, there is no roo…
Last reply by bfarber, -
- 2 followers
- 25 replies
- 673 views
I want to add a attribute to a certain class but I only want to add if it the user wants it there, is there any way to add a {{if}} statement to it, I tried adding it just before the attribute but it give a whoops error and if I add a if statement before the class with a endif after it it hides the whole section. I got a feeling the only way to do it is to replace the whole code and add the statement in there that way? does any one know how I can add it without replacing the whole code?
Last reply by HeadStand, -
- 3 replies
- 343 views
Is the any way to use the 'toggleson' and 'togglesoff' feature using the select or checkbox form settings For example $form->add( new \IPS\Helpers\Form\Select( 'My_Setting', \IPS\Settings::i()->My_Setting, FALSE, array( 'app' => 'core', 'key' => 'Admin', 'autoSaveKey' => 'My_Setting', 'options' => array( 1 => 'TogglesOn$FormX', 2 => 'TogglesOff$FormY' ), 'multiple' => FALSE ), NULL, NULL, NULL, 'My_Setting') );
Last reply by TAMAN, -
- 1 follower
- 5 replies
- 283 views
Hallo I've created an application that contains only one widget to show the online users on a rocket.chat server. This does work locally but after I downloaded the application from the adminCP und installed it on the live board the blocks don't show up Working locally in DEV Mode the new Widget shows in the content blocks and adding the widget also works nicely. The installation in the live board using the .tar file downloaded from the local setup worked fine, no errors shown or found (yet). I also cleared the caches in the support section of the adminCP. Also tried the default theme and language - just to be safe. But no luck. The new block does not appear…
Last reply by Daniel F, -
- 1 follower
- 0 replies
- 201 views
I am extending \IPS\Member and I need to define more bit options. How do I do this? Specifically, I assume I need to extend $bitOptions to add the new bit option values. How do I do this? My new bit options will be stored in a new column (not members_bitoptions or members_bitoptions2). My app requires 5 profile completion steps so I need to store the completed steps in bitoptions to keep from having to create separate columns for each completed step. My app also requires around 7 other bit options to be tracked for each logged in member.
Last reply by KT Walrus, -
- 1 follower
- 3 replies
- 299 views
Hi, I use ips.ui.alert.show({type:'alert', icon:'warn', message: formattedMessage}); To show a warning message. In 40-50% of all cases it works fine, the other times it prints a javascript error in my console.log: jquery.js?v=4409548e1d:3 Uncaught TypeError: Cannot read property 'style' of undefined at Sa (http://***.com/dev/js/library/jquery/jquery.js?v=4409548e1d:3:27454) at Function.css (http://***.com/dev/js/library/jquery/jquery.js?v=4409548e1d:3:30895) at La (http://***.com/dev/js/library/jquery/jquery.js?v=4409548e1d:3:24665) at Ma (http://***.com/dev/js/library/jquery/jquery.js?v=4409548e1d:3:24749) at cb (http://***.com/dev/js/library/jqu…
Last reply by bfarber, -
- 1 reply
- 225 views
Hello I am newbie IPS developer. I create a Plugin with Developer tool in my IPS installation. I have in my plugin the method public function configuration( &$form=null ) { if ( $form === null ) { $form = new \IPS\Helpers\Form; } $form->add( new \IPS\Helpers\Form\Text( 'example_var_1', isset( $this->configuration['example_var_1'] ) ? $this->configuration['example_var_1'] : '', FALSE) ); return $form; // $$form->add( new \IPS\Helpers\Form\XXXX( .... ) ); // return $form; } I have in render method public function render() { $this->configuration['example_var_1'] = isset($this->configur…
Last reply by newbie LAC, -
- 2 replies
- 229 views
I am trying to create a app/plugin what ever it turns out to become and I am stuck on the stack settings, I basically have set it to have font awesome icons in the primary and secondary nav bars along with the users bar and create bar, everything is fine there but my problem is if someone has their own tabs with text what is not in my plugin so I thought if I add a stack text setting where they could add there own and insert it into the css file, I have tried loads of different ways to get it to work but I failed in all attempts, I can get the first one to show but when I add another it breaks the css because it will add a , at the end of each stack code I know I could ad…
Last reply by TheJackal84, -
- 1 reply
- 210 views
Hi all, I'm working on a migration from IPB3 to 4, and a lot things have changed. I'm struggling to work out where the most appropriate place to add a post-post hook is (yes, I'm aware of the awkward overloaded language). I tried following the code from the API implementation, but that quickly diverted me ff down to the database layer or the generic comment classes, so I'm a bit confused. Any pointers would be greatly appreciated. Thanks, Chris
Last reply by Ryan Ashbrook, -
- 1 follower
- 1 reply
- 252 views
I have clients complaining that the ACP sessions are way too short. I can't figure out how to make them longer.... any suggestions would be appreciated.
Last reply by Ryan Ashbrook, -
- 7 replies
- 353 views
You check for theme settings but not for regular app/plugin settings. Just splash this in after the theme setting check. if ( isset( \IPS\Settings::i()->$data ) ) { $data = \IPS\Settings::i()->$data; } Works great. You'd be a lot cooler if you did...
Last reply by Flitterkill, -
- 1 follower
- 3 replies
- 243 views
Is there a way to toggle on a $form->addHtml(' '); in the settings, for example $form->add( new \IPS\Helpers\Form\YesNo( 'ShowHTMLForm', \IPS\Settings::i()->ShowHTMLForm, FALSE, array('togglesOn' => array( 'The_setting_below' ) ) ) ); $form->addHtml('I want this to display if ShowHTMLForm = 1 ');
Last reply by TheJackal84, -
- 1 follower
- 4 replies
- 255 views
Let's say I have several PHP classes (each one in a separate file, located in the '/myPlugin/libs' directory) and I'm using those classes in the plugin hooks (after including them with require_once). However, the external .php files are not included in the plugin's .xml file. Since those external classes are used in several hooks, I would really like to avoid hardcoding them into each of the hooks. For now, I have to manually upload the 'libs' catalogue via FTP everytime I install the plugin... not very user-friendly, is it? What is the most elegant and convenient way to include a 3rd party library within a plugin?
Last reply by Chatwee, -
- 1 follower
- 6 replies
- 305 views
Hello, I've recently created a plugin and it works as expected - as long as I test it in my local enviroment (dev mode enabled). After installing it on the actual community site, it seems that I have to disable the plugin and then enable it again for any changes in the 'edit' section to take effect. Do you guys have any suggestions on what might be causing this issue and how I can fix it? Thanks
Last reply by Chatwee, -
- 1 follower
- 2 replies
- 257 views
Hey, it seems like \IPS\cms\modules\admin\databases::form() (the form creation) is not extendable atm. Could you guys please move the form creation to its own function so we can extend it? Thanks.
Last reply by Daniel F,