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
-
- 1 follower
- 7 replies
- 1.2k views
Hi, I look for a way to reverse array order directly in template and PHP but seems it does not work. I wanted to avoid plugins or direct file modifications for such simple things. Is it actually possible?, example code below. {{foreach $files as $k => $file}} {{$data = $files->data();}} <li class='ipsDataItem'> <div class='ipsDataItem_main'> <h4 class='ipsDataItem_title ipsContained_container'><span class='ipsType_break ipsContained'>{{if $data['record_realname']}}{$data['record_realname']}{{else}}{{$pathBits = explode( '/', \IPS\Http\Url::external( $data['record_location'] )…
Last reply by PatrickRQ, -
- 1 follower
- 3 replies
- 1k views
My site currently makes heavy use of IPB for logging users into other parts of the site via oAuth. This is okay, but it makes it incredibly difficult to keep data synced between forum and the rest of the site. It's resulted in a lot of duplication and I'm currently looking at options to improve it. Ideally I'd like to simply allow the user to login using their email and password, but I can't find any information as to where the salt to decrypt those passwords is. I know that before IPB4, hashes were stored alongside passwords, and I can see these in my members table. But from IPB4 and the encryption system moving to blowfish, I can't seem to find any record what…
Last reply by creativiii, -
- 3 followers
- 10 replies
- 1.1k views
Hello, I have strange (for me) problem with one of the widgets on PHP 8. On 7.4 was fine. Error code: #0 /.../plugins/sdstreamcontent/widgets/sdStreamContent.php(56): IPS\_Theme->getTemplate('plugins', 'core', 'global') #1 /.../system/Widget/Widget.php(103): IPS\plugins\sdstreamcontent\widgets\_sdStreamContent->init() #2 /.../system/Widget/Widget.php(396): IPS\_Widget->__construct('34y8hagzy', Array, NULL, 'vertical') #3 /.../system/Dispatcher/Front.php(626): IPS\_Widget::load(Object(IPS\Plugin), 'sdStreamContent', '34y8hagzy', Array, NULL, 'vertical') #4 /.../system/Dispatcher/Dispatcher.php(155): IPS\Dispatcher\_Front->finish() #5 /.../index.php…
Last reply by DawPi, -
- 1 follower
- 2 replies
- 712 views
app_now_updated and app_now_installed Used in applications/cms/modules/admin/pages/templates.php line 256
Last reply by Daniel F, -
- 2 followers
- 5 replies
- 798 views
Hi Can someone explain the difference of the last_visit and last_activity dates found in the member_details table? When viewing a members profile, there is a field titled "Last Visited" but is displaying the last_activity, is this a bug? Maybe both dates should be on the profile. Thanks
Last reply by Adriano Faria, -
- 1 follower
- 2 replies
- 606 views
This was a fun one! I have a client who uses Custom Packages fairly often. Today they created an invoice for a client with a custom package, same way they always do. The client received a notification, logged in to pay the invoice, and when they hit "Pay Now", they received the following error message: "Custom Enterprise License is not available for your account". Error code is 000/B. It seems that as of version 4.6.9, there was a new check introduced to \IPS\nexus\modules\front\checkout\checkout::_pay(), which verifies that the user has permission to purchase the items in the invoice. \IPS\nexus\Package\Product::memberCanPurchase if ( ! ( $this->mem…
Last reply by Stuart Silvester, -
This is the code in applications/core/widgets/achievements.php on lines 51-54: $form->add( new \IPS\Helpers\Form\CheckboxSet( 'achievements_to_show', isset( $this->configuration['achivements_to_show'] ) ? explode( ',', $this->configuration['achivements_to_show'] ) : [ 'badges', 'ranks' ], TRUE, [ 'options' => [ 'badges' => 'block_achievements_badges', 'ranks' => 'block_achievements_rank', ] ] ) ); The setting's key is achievements_to_show but the isset/explode instead use achivements_to_show (the first e is missing).
Last reply by Daniel F, -
- 4 replies
- 733 views
when I delete an item using the delete() method of conten\item class, the item is deleted but throws an exception with no message. why?
Last reply by Daniel F, -
- 1 follower
- 9 replies
- 1.1k views
I'm trying to show 2 tables in the same page, everything goes fine except for the pagination part, table reloads without changing contents... Even I use different paginationKey and different sortKey for both tables, but pagination is broken, is it a bug? or am I missing something? Code: /* First Table */ $table_1 = new \IPS\Helpers\Table\Db('first_table', \IPS\Request::i()->url(), array() ); $table_1->include = array( 'col1', 'col2', 'col3'); $table_1->mainColumn = 'col1'; $table_1->parsers = array( 'col2' => function ($val, $row) { return \IPS\DateTime::ts($val); } ); $table_1->sortBy = $table_1->sortBy ?: 'col2'; $table_…
Last reply by Adriano Faria, -
- 2 replies
- 857 views
In my app data\themesettings.json file, I have added one theme setting which supposed to be installed and show for all themes [ { "sc_key": "tadarkmode_colorscheme", "sc_type": "TextArea", "sc_multiple": 0, "sc_content": "[]", "sc_app": "darkmode", "sc_default": "", "sc_tab_key": "darkmode", "sc_show_in_vse": 0, "sc_title": "tadarkmode_colorscheme", "sc_order": 11, "sc_condition": null } ] can someone tell me why this doesn't work? the theme setting does not show anywhere in my themes. is there anything that needs to be configured in order for themesettings.json to work? clearing caches and e…
Last reply by TAMAN, -
- 1 follower
- 1 reply
- 771 views
I have an ActiveRecord table with a multi-column primary key. The ActiveRecord class has $databaseColumnId that appears to require a single Id key. My table doesn't need a single column key as it only adds another secondary index for the table (that wastes disk space, memory, and processor time). Is my only option to set $databaseColumnId to an auto-incremented column and define a secondary index for this column? This is a waste (to have an extra secondary index) when the ActiveRecord has a multi-column primary key. Seems to me the ActiveRecord class should support an array of column Ids for $databaseColumnId when the primary key is multi-column. I require …
Last reply by KT Walrus, -
- 1 follower
- 2 replies
- 757 views
I get the "Column 'member_received' cannot be null" error when I use the react() method. the query has the reaction parameter and the $item is an object which not null. $item->react(\IPS\Content\Reaction::load( \IPS\Request::i()->reaction ));
Last reply by ReyDev, -
- 2 followers
- 12 replies
- 795 views
Due to the requirements of the regulatory authorities , it became necessary: 1. change the text displayed on the cookies banner. Where can I correct this text? 2. Record in the logs clicking on the "Agree" button on the cookies banner. Is it being written to the log now and where can this log be viewed? 3. On mobile, the cookie banner disappears quickly when scrolling and does not appear anymore. Please fix it urgently. Thanks
Last reply by Julia Osipova, -
- 1 reply
- 295 views
Last reply by Daniel F, -
- 1 reply
- 478 views
Last reply by Daniel F, -
- 2 followers
- 2 replies
- 671 views
Hi, I had a spam attack on my site and I believe there is somewhere a glitch in Pages. I use the latest version of IPS I had turned on "Post before register" There are suddenly 8 pages on spam comments in nearby all records in all databases All comments are posted by Guest Guests are not allowed to comment in any of the databases I am subscribed to the records, but I have not got any notifications Comments are synchronized to the forum, but those spam comments have not been written into the forum, they only appear as comment in record. Why I believe it is a security hole in Pages? I have investigated some IPs and ca…
Last reply by Sonya*, -
- 0 replies
- 741 views
On this page: https://invisioncommunity.com/developers/rest-api?endpoint=forums/forums/POSTindex (and any others regarding permissions) I kept getting the following error when sending an object { "errorCode": "EX1364", "errorMessage": "UNKNOWN_ERROR" } It needs to be sent as an array: Also, "an array of group IDs", if you send an array "[3]" it will literally insert that into the DB, it still seems to function but is probably wrong:
Last reply by Sly_Ripper, -
- 2 replies
- 912 views
Hello, I have a new resource that adds a moderator permission and needs to send a notification to these moderators when a specific action happens. Item 1.1 of Marketplace Submission Guidelines says: It was already said to me in old ticket system that "there are things that can't be done in other way/there's only one way to do" or something like that, like methods from models, etc. So my question is basically in this part, for example, that can be found in \IPS\Content::report(): /* Send notification to mods */ $moderators = array( 'm' => array(), 'g' => array() ); foreach ( \IPS\Db::i()->select( '*', 'core_moderators' ) as $mod ) { $can…
Last reply by Adriano Faria, -
- 2 followers
- 8 replies
- 1.1k views
Hi community, I am currently developing my first widget in a plugin. I want to use a phtml template to render the output of the widget. Unfortunately, it seems as if the phtml template is not loaded. I also tried to debug it and as I see it it searches for the template in the database, but the template is not in the database. What can I do, to help the system find my template. Here are some details about my case. I created the plugin via the ACP. Then I used the developer center to create a new widget with the Key tpArticlesSearchHero I see that all the files are created in the backend When I test the widget with a static output str…
Last reply by HeadStand, -
- 1 follower
- 0 replies
- 690 views
Hello, I would like to add a secondary group to a user as a Zapier action. I think it may require use of the REST API but I don't know what that means. Whilst I'm usually up for learning new tech skills, I think this may be beyond me. Can anyone recommend an Invision developer who can do this? I will pay. Note to Moderators: I always sure where I can post this type of request. I apologise if this is the wrong forum. Thanks, Nigel
Last reply by nigeld27, -
- 7 followers
- 10 replies
- 1.7k views
I see Headstand and InvisionHQ have all their files deactivated. What’s going on?
Last reply by HeadStand, -
- 1 follower
- 8 replies
- 838 views
Scenario: Made a few test users which I deleted again, which results in missing UIDs and new members not having the "correct" one. Example: While this obviously won't matter to a lot of people, it does to me. I've been using another forum software in the past which didn't even have close to the amount of database tables IPS has, so it was pretty easy to just delete the user table and run the original SQL command to get the default table into the database again. After that I changed the few UIDs that were shared with other tables (like topics, posts, etc). IPS really has a lot of tables and I have no idea how widely spread UIDs are in the software, which resu…
Last reply by Ghost Face, -
- 2 followers
- 8 replies
- 929 views
Did you guys dogfood this with 3rd party stuff? Init.php, line 900 or so if( static::isThirdParty( $data['file'] ) and \IPS\Dispatcher::hasInstance() ) { \IPS\Dispatcher::i()->loadedHooks[] = $data['file']; } Fatal error: Uncaught Error: Class 'IPS\Dispatcher' not found in C:\laragon\www\dev45\init.php:900 Stack trace: #0 C:\laragon\www\dev45\init.php(874): IPS\IPS::monkeyPatch('IPS', 'Dispatcher', '') #1 [internal function]: IPS\IPS::autoloader('IPS\\Dispatcher') #2 C:\laragon\www\dev45\init.php(999): spl_autoload_call('IPS\\Dispatcher') #3 [internal function]: IPS\IPS::exceptionHandler(Object(Error)) #4 {main} thrown in C:\larag…
Last reply by Stuart Silvester, -
- 1 follower
- 1 reply
- 446 views
Some are not parsed in 4.6.10 Beta 2
Last reply by Daniel F, -
- 1 follower
- 1 reply
- 612 views
I am using UI Widget ipsSideMenu. It seems that I cannot have it nested and responsive at the same time. This is my template: <div class='ipsSideMenu' data-ipsSideMenu> <h3 class="ipsSideMenu_mainTitle ipsAreaBackground_light ipsType_medium"> <a href="#" class="ipsPad_double" data-action="openSideMenu"> <i class="fa fa-bars"></i> Menu Title <i class="fa fa-caret-down"></i> </a> </h3> <ul class="ipsSideMenu_list"> <li> <a href='#' class='ipsSideMenu_item ipsSideMenu_itemActive'>Link #1</a> </li> …
Last reply by Sonya*,