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
-
- 2 followers
- 8 replies
- 745 views
Hi, in earlier versions of the board there was a list of the top-posters of all time. The users of my board asked for it and I assumed there is a block of the block manager, but negative report. The only way I found is to make a customized search in the ACP for users with 'content > 10,000' for example, but this is not an option for the standard user and it is not exactly the same (content vs. posts). Is there a simple way to create new blocks by my own? Or does anyone have another idea? Thanks in advance, Peter
Last reply by Kazhal, -
- 2 replies
- 336 views
Hi, I am incredibly novice when it comes to PHP and usually I am able to solve most issues by research/trial & error, but this has currently stumped me: How do I load this database record array as a content object? $record = \IPS\Db::i()->select('*', 'cms_custom_database_2', array('record_topicid=?', $content->tid))->first();
Last reply by bfarber, -
- 5 replies
- 446 views
Hello, I have one iframe and I want to show the content in that iframe or iframe itself in the Invision Community popup using ips.ui.dialog. I have written the below code but after loading for sometime, the modal window showing the error message like " The page you requested does not exist ". Refer : <a href='elementWithDialog' data-ipsDialog data-ipsDialog-url='elementWithDialog'>Launch dialog</a> <div id='elementWithDialog' data-ipsDialog> testing... </div>
Last reply by Maulik, -
- 2 replies
- 341 views
Hi there ! I want to show "About Me" tab of the user to even the Guest user. Currently as per the Invision Community code[as below], I couldn't able to find any condition based on which the "About Me" tab is not showing to Guest users. Could you please let's know where we can find the actual code coming for "$mainContent" variable ? So that we can remove the condition to show the "About Me" tab to not only logged in users. <section class='ipsColumn ipsColumn_fluid'> {$mainContent|raw} </section> Thanks in advance!!
Last reply by Maulik, -
- 2 replies
- 336 views
I am trying to change default itemResult template with my custom template but it seem not work because \IPS\Helpers\Form\Item::html don't follow itemTemplate option. $template = NULL; if ( $this->options['itemTemplate'] === NULL ) { $template = array( \IPS\Theme::i()->getTemplate( 'forms', 'core', 'global' ), 'itemResult' ); } /* Are we getting some AJAX stuff? */ if ( isset( \IPS\Request::i()->_itemSelectName ) and \IPS\Request::i()->_itemSelectName === $this->name ) { /*.....*/ foreach( $class::getItemsWithPermission( $where, 'LENGTH(' . $field . ') ASC', array( 0, 20 ), $this->options['permissionCheck'] ) as $item ) { $results[] = array( …
Last reply by Daniel F, -
- 1 follower
- 7 replies
- 385 views
im wondering how you did it ive got everything to work up to the checkout button i use my checkout link and i get error
Last reply by Tactical Geeks, -
- 1 follower
- 5 replies
- 389 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
- 385 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
- 983 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
- 289 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
- 583 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
- 314 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
- 785 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
- 355 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
- 356 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
- 254 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
- 407 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
- 397 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
- 427 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
- 312 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
- 335 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
- 318 views
Gateway timeout - from the CP Like this
Last reply by bfarber, -
- 1 follower
- 4 replies
- 471 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
- 379 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
- 299 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,