Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,734 topics in this forum
-
- 6 replies
- 385 views
Is it possible to have 2 domains using and running the same script of IPS? The only difference might be a logo change (if possible) depending on the incoming domain.
Last reply by BomAle, -
- 1 follower
- 7 replies
- 425 views
Hi, Is it possible to get other fields than the title from a Database Relationship field in Pages. For example, I would like to return the related field thumbnail image in the listings recordrow template. Thanks!
Last reply by TDBF, -
- 2 replies
- 275 views
So I am hooking into \IPS\core\modules\front\members\profile and trying to make a setting what a member will obviously edit but when I use the editor it throws a error Here's the setting $form->add( new \IPS\Helpers\Form\Editor( 'My_Setting', $this->member->My_Setting, FALSE, array( ) ) ); I have to use TextArea for it to work, $form->add( new \IPS\Helpers\Form\TextArea( 'My_Setting', $this->member->My_Setting, FALSE, array( ) ) ); is it because you can't use the editor in there, or is it something I am doing?, the error it gives is Undefined index: autoSaveKey
Last reply by TheJackal84, -
- 3 replies
- 259 views
Is there a way to make the first post in a topic a post you can pin? I also want to make that post show on every page but not have that post refresh. What I'm looking to do is embed a live video in the first post (sports for example) and have it where that post always shows at the top of the screen even if the user scrolls down. I want my users to be able to watch the game and discuss with other members without having to refresh the video each page.
Last reply by mwcboard, -
- 3 replies
- 270 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
- 358 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
- 394 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
- 255 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
- 334 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
- 366 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
- 281 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
- 340 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
- 365 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
- 485 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
- 360 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
- 998 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
- 506 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
- 368 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
- 270 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
- 393 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
- 298 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
- 336 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
- 288 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
- 330 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
- 448 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,