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
-
- 1 follower
- 5 replies
- 288 views
How do we do custom database hooks when a record is saved, deleted, or edited? I was able to do this in 3.x but can't find it in 4.2. Thanks
Last reply by Ryan Ashbrook, -
- 4 replies
- 287 views
Hello! Possible do it? When i compiling my JS, IPS remove comments and spacers and for highcharts.js it's do broke script. I don't want minimize JS why IPS do it for me? Any ideas how i can disable it or maybe any ideas how i can use highchart with CDN, now i include it like this: \IPS\Output::i()->jsFiles = array_merge(\IPS\Output::i()->jsFiles, \IPS\Output::i()->js('admin_highcharts.js', 'observer', 'admin'));
Last reply by Fosters, -
- 1 follower
- 7 replies
- 698 views
Hi there, I am new to creating plugins/applications are there any auto complete plugins for PHPStorm? If so can you link me please. Do you have any DO's and don't specifically for IPS development?
Last reply by theblackelk, -
- 1 reply
- 204 views
Is there any documentation regarding creating a custom editor button? I want to provide users with the ability to reference player stats from an API by adding a custom button that takes the variable of username.
Last reply by bfarber, -
- 1 follower
- 2 replies
- 326 views
Hello! I have weird problem with this code: {{foreach $user['general'] as $key => $array}} <h3 class="ipsType_sectionHead ipsSpacer_bottom ipsSpacer_half">{lang="api_{$key}"}</h3> <table class="ipsTable"> <tr> <th>Name</th> <th>Description</th> </tr> {{foreach $array as $param => $value}} <tr> <td> <code>{$param}</code> </td> <td>{$value}</td> </tr> {{endforeach}} </table> {{endforeach}} when I'm try to use {lang="api_{$val}"} - its working for <h3> element and I see translated text, but next foreach doesn't…
Last reply by Aiwa, -
- 1 follower
- 4 replies
- 230 views
Is there a(n IPS-approved) way to programmatically create a code hook? I'm developing an application that I'd like to optionally add a hook to a 3rd party app, if installed. I can't work out how I can achieve this. Normally I would use the ACP development console to add a hook, but if the 3rd party app isn't installed, I can't add a code hook to its class, because the ACP will tell me that class doesn't exist. And though I haven't tried it, I assume that if I do install the 3rd party app, build my code hook, compile and download the app, then try and install it on an IPS4 install that doesn't have that 3rd party app installed, the install will fail because …
Last reply by wohali, -
- 3 replies
- 554 views
Hi -- I have followed the instructions in AdminCP > System API: downloaded htaccess uploaded and renamed to .htaccess When I hit continue I an error which I can't get past: Going to https://community.renovare.org/api/core/hello returns: { "errorCode": "2S290\/6", "errorMessage": "NO_API_KEY" } I am using SSL through Cloudflare if that makes any difference. Any ideas? Thanks in advance, Brian (renovare)
Last reply by bfarber, -
- 1 follower
- 2 replies
- 277 views
I need to add a new column in core_members tables. In the developer center I only find create new table. thanks in advance
Last reply by bfarber, -
- 2 followers
- 2 replies
- 251 views
It's late and I'm going cross-eyed staring at the IPS4 CSS/JS source. Is there an easy way to trigger an IPS-native confirmation popup dialog on a button push before taking action? Just a simple JS "Are you sure?" sort of thing, preferably with customizable text. I'd rather not code my own jQuery thing.
Last reply by wohali, -
- 1 follower
- 1 reply
- 187 views
Hi, I'm having trouble accessing a remote API - the response tells me to enable cookies, like so: Is there a simple setting that I may be missing? Thanks for the help in advance
Last reply by teraßyte, -
- 1 follower
- 3 replies
- 323 views
As per title ^, in the default options for the class you have this line: 'orderResults' => NULL|array // NULL or array( field, 'asc' ) where field is a mappable content item field (date, title, etc) Unfortunately that option has effect ONLY when displaying values passed to the field. In my case I have an autocomplete field that allows only 1 item in it but I want to sort the autocomplete results by the same field/direction. That is not possible currently because you automatically sort based on the LENGTH of the field in MySQL on line 98: foreach( $class::getItemsWithPermission( $where, 'LENGTH(' . $field . ') ASC', array( 0, 20 …
Last reply by Marcher Technologies, -
- 1 follower
- 4 replies
- 319 views
Hello, is there any way to create a topic except via the REST API? I checked the internals and the part about "Content Items" but however I seem to be too bad at PHP to get it done. Best Regards
Last reply by Niko Belger, -
- 3 followers
- 8 replies
- 317 views
this is a new one for me, SELECT * FROM `pro_babble_rooms` AS `babble_rooms` LEFT JOIN `pro_core_permission_index` AS `core_permission_index` ON core_permission_index.app='babble' AND core_permission_index.perm_type='rooms' AND core_permission_index.perm_type_id=babble_rooms.rooms_id WHERE (( FIND_IN_SET(2,perm_) ) OR perm_='*' ) Unknown column 'perm_' in 'where clause' this is cause by line 201 in /applications/core/extensions/core/sitemap/Content.php: $select = new \IPS\Patterns\ActiveRecordIterator( \IPS\Db::i()->select( '*', $nodeClass::$databaseTable, array( '(' . \IPS\Db::i()->findInSet( "perm_{$nodeClass::$permissionMap['read']}", array( \IPS\Set…
Last reply by Daniel F, -
- 1 follower
- 1 reply
- 222 views
I can't seem to correctly iterate through the rows of a db query. Am i doing something wrong with the below example? try { $posts = \IPS\Db::i()->select('*', 'forums_posts', array('topic_id=?', $topic))->first(); } catch( \UnderflowException $e ) { // Query failed } foreach ( $posts as $post ) { // not working? }
Last reply by CodingJungle, -
- 2 followers
- 2 replies
- 254 views
I am running into a bit of a weird issue that I cant seem to solve. When using the pages application to create a database, with a field of type member. I can;t seem to output the string of id's correctly due to a weird occurrence where there is a line break between each ID. Usually when working with IPS it stored the arrays with the delimiter of comma, but in this particular case, it doesn't seem to be doing so. Is this a bug? Is my database incorrectly setup? Example database with id 2 and 1 stored in a field of type members. +---------+ | field_6 | +---------+ | 2 1 | +---------+
Last reply by bfarber, -
- 1 follower
- 2 replies
- 219 views
Gateway timeout - from the CP Like this
Last reply by bfarber, -
- 1 follower
- 4 replies
- 301 views
From a remote server I wish to see if a user is logged in to the application. I have set up the REST API but I don't know what method to call to simply check if a user is logged in or not.
Last reply by bfarber, -
- 6 replies
- 296 views
Bare with me here, I haven't touched IPS in a long time... So I'm not even sure if I'm doing it right, however some clarification would be greatly appreciated; So I'm assuming that adding the FrontNavigation default's for the application is done with defaultFrontNavigation() but I'm more than likely completely wrong.. public function defaultFrontNavigation() { return array( 'rootTabs' => array( array( 'key' => 'Multimart', 'children' => array( array( 'app' => 'core', 'key' => 'Menu', 'title' => 'frontnavigation_multimart_complaints', 'children' => array( array( 'key' => …
Last reply by TheOnlyDroid, -
- 1 reply
- 205 views
I noticed there ain't a widthheight setting for the front end, can you make it so we can have it? all you gotta do is copy and paste the one from applications\core\dev\html\admin\forms\ to applications\core\dev\html\front\forms\ and it works fine. Or is there a way to get it on the front end and I am missing it?
Last reply by bfarber, -
- 3 replies
- 237 views
Hello, In api controllers you have /** * Class */ protected $class = 'IPS\forums\Forum'; but in some places you use $class = static::$class; Examples - applications/forums/api/forums.php method POSTitem - applications/calendar/api/calendars.php method POSTitem - applications/downloads/api/categories.php method POSTitem
Last reply by bfarber, -
- 1 follower
- 2 replies
- 245 views
If anyone of you have an .editorconfig-file that you use for your Invision Community-repo, could you please share it here?
Last reply by TSP, -
- 1 follower
- 2 replies
- 273 views
Hi, I wrote a theme hook to add info in topic theme and then I edited the corresponding hook file as follows to add $my_content in the theme: class covers_hook_topics_header extends _HOOK_CLASS_ { /* !Hook Data - DO NOT REMOVE */ public static function hookData() { // CODE TO produce $my_content HERE return array_merge_recursive( array ( 'topic' => array ( 0 => array ( 'selector' => '#elClubContainer > div.ipsColumns > div.ipsColumn.ipsColumn_fluid > div.ipsPageHeader.ipsClearfix', 'type' => 'add_inside_start', 'content' => $my_content ), ), ), parent::hookData() ); } Although this works, …
Last reply by Valtasar, -
- 2 followers
- 3 replies
- 279 views
Hello! I have two databases: Movies Actors There is also a set of fields: Movies (database) Actors (database) Actor name (Template Key="actor_name") Actor Age (Template Key="actor_age") In addition, I created a field type "database relation" to specify what actors star in the movie. And now the question: As for the movie page to display the cards of the actors who starred in it? Do not understand. Help, please.
Last reply by DReffects2, -
- 7 replies
- 638 views
So I am trying to add a $table->quickSearch function to a table on the front end but it don't show, I have tried loads of different ways but can't get it there, The filters / sort and advanced search are all working it's just the quickSearch that isn't, It works fine on the admin panel though, Is it not made for the front end of am I missing something obvious right in front of me?, I have decompiled loads of IPS files and only really found the $table->quickSearch on the admin panel files
Last reply by bfarber, -
- 1 follower
- 2 replies
- 229 views
I am trying to add member(s) to the bulk mail being sent out, but users that arent in that group. I am building the extension, but the query join still limits the query to the users in the selected group. I am trying to find a good way to do this without having to rewrite the query on every email and wondering if anyone has already done this? Thanks
Last reply by FNDN Admin,