Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
953 topics in this forum
-
- 2 followers
- 1 reply
- 88 views
Hi, I wanted to know if IPS uses any kind of solution such a kafka to listen/react to database changes and trigger events. Basically, I want to trigger certain actions when particular changes in the DB occur. But it's much cleaner to use a system like kafka to just wait for the changes, rather than have to manually trigger them all over the place in code. Does IPS have such a functionality in place? Thanks
Last reply by bfarber, -
- 6 replies
- 121 views
Is it possible in the acp to have all posted content in a list in chronological order with pagination and moderation options etc similar to the way it is in Wordpress ?
Last reply by Mark Round, -
- 1 follower
- 1 reply
- 73 views
I've been using constructLoadQuery to add table joins for member and group data without any problems but this won't work with the forums database. I assume due to the node permissions. Is there a work around for this or should I just use get_fieldname and cache my database queries? (I've got several fields in the table I want to join with forum data.) protected static function constructLoadQuery( $id, $idField, $extraWhereClause ) { /* Get parent contruct query */ $parentDB = parent::constructLoadQuery( $id, $idField, $extraWhereClause ); /* Add our custom join */ $parentDB->join( 'basicpoints_forums', 'basicpoints_foru…
Last reply by Matt, -
- 1 follower
- 1 reply
- 62 views
Something I've brought up previously in the Contributor Chat forum, but it drifted off into the ether...never to be seen again. I've recently gone back to the POC for something, and this behaviour is still there and it's frankly nonsense. Background: there is something in the POC application which will be relying on the order of entry being kept 'as is' as the setting is going to be used later to display things in the chosen order. My settings code - nice and simple, it works... //<?php $form->add(new \IPS\Helpers\Form\Item('tids', \IPS\Settings::i()->tids, TRUE, array('class' => '\IPS\forums\Topic'))); if ($values = $form->values()) { …
Last reply by Matt, -
- 1 follower
- 3 replies
- 60 views
Hi Invision, Something is bothering me with the new referral system on IPS 4.5. In /Session/Front: public function init() { /* Get cached page if available */ $this->checkCached(); […] /* Set a referral cookie */ if( \IPS\Settings::i()->ref_on and isset( \IPS\Request::i()->_rid ) ) { \IPS\Request::i()->setCookie( 'referred_by', \intval( \IPS\Request::i()->_rid ), \IPS\DateTime::create()->add( new \DateInterval( 'P1Y' ) ) ); } […] } Doesn't it look like that when a page is cached, the referral system doesn't work, as the page is sent before a cookie is set? Thank you,
Last reply by Matt, -
- 2 replies
- 46 views
Are there tests suites available for the core Invision code and functionality? We would like to know if our plugins and app potentially break key functionality in an automated way.
Last reply by bfarber, -
- 1 follower
- 1 reply
- 42 views
Widget ips.ui.drawer is not present here https://invisioncommunity.com/4guides/themes-and-customizations/javascript-framework/using-ui-widgets/ I want to know how can I catch on show event when the mobile menu becomes visible?
Last reply by bfarber, -
- 1 follower
- 1 reply
- 39 views
Custom field of type CheckboxSet has always multiple values. It cannot be used with type INT in database, or you get an error for wrong integer type '' if no value is selected. However, in the converter you set the field to the type INT if is not defined as multiple: case 'CheckboxSet': case 'Member': if ( $data['multiple'] ) { $columnDefinition['type'] = 'TEXT'; } else { $columnDefinition['type'] = 'INT'; $columnDefinition['length'] = 10; } break; It is not possible to save a record with field type CheckboxSet that is defined as INT. The type should be moved down to: case 'CheckboxSet': &l…
Last reply by bfarber, -
- 1 follower
- 1 reply
- 34 views
When I override the template's front end files, everything is fine. The modifications are applied. However, when I tried to change the admin files, I don't see any changes. For example, I want to customize a login page by editing the file ../theme/html/core/admin/system/login.phtml However, the website does not reflect my modifications. I tried to clear the cache, no success.
Last reply by Paul E., -
- 1 follower
- 1 reply
- 37 views
I'm working with Radio Helper with 'parse'=>'image' option in a widget . look at this please: $form->add(new \IPS\Helpers\Form\Radio("var_name", isset($widgetConfig['var_name']) ? $widgetConfig['var_name'] : 'val1', FALSE, array( 'parse' => 'image', 'options' => [ 'val1' => \IPS\Theme::i()->resource('display/filename.jpg', 'myapp', 'admin'), 'val2' => \IPS\Theme::i()->resource('display/filename2.jpg', 'myapp', 'admin') ] , 'descriptions' => [ 'val1' => 'Description', 'val2' => 'Description' ] ))); in the development mode, the code works and shows images with radio button but i…
Last reply by ReyDev, -
- 3 followers
- 11 replies
- 279 views
Hi, Tried in a ticket (#68225), but Rhett wants me to get developer assistance here instead. There is an issue with Community Map where one of your CIC clients is getting a 404 from all the files it's supposed to serve from the interface folder. This is where I store the LeafletJS files and plugins. I am not sure how I can debug this issues, which to me seems to be isolated to CIC customers only. There's currently 20 purchases of this file, where 19 of them work perfectly fine, not including all my local test installations. My initial thought on this was that it could be related to how you changed where application files are stored for CIC2 customers. …
Last reply by bfarber, -
- 1 follower
- 2 replies
- 41 views
I get error EX0 Bad Method Call Exception NO_TEMPLATE_FILE ../theme/html/core/front/moderationLog/table.phtml with Invision Community v4.5.4.2 when I try to look for moderation history/log at front end. The problem is that on my server the folder is called "moderationlog" instead of "moderationLog". I don't know exactly what version update of Invision Community caused this. Perhaps this information will be useful.
Last reply by bfarber, -
- 2 followers
- 12 replies
- 130 views
I am trying to create a custom conversion class and I am not sure what is the right approach. I have seen these two buttons inside the ACP conversion view when I am in developer mode: And I have used them to create Library and Converter class files, but I don't understand how they hook with the converter or with IPS framework. Also, is there any specific path I need to create these files into in order to be included? I tried searching for documentation related to these buttons and the classes they create, but did not seem to find any. Thank you!
Last reply by PurplePixel, -
- 1 reply
- 33 views
Other than online doc that is available, are there any other resources for plugin and app developers? Can we get official workshops/training sessions? I think we are happy to pay for a session as well.
Last reply by bfarber, -
- 1 reply
- 33 views
Can we get access to Invision's repo and make PRs for fixes/tidying? Eg: Wrong description from my point of view, because it is thrown when a dataset is empty as well.
Last reply by bfarber, -
- 1 reply
- 25 views
Is possible create custom conversion from mysql database to IPB database with custom fields?
Last reply by Paul E., -
- 1 follower
- 1 reply
- 68 views
When I delete a Page database via ACP, then the table for the records is just dropped: /* Delete records */ \IPS\Db::i()->dropTable( 'cms_custom_database_' . $this->id, TRUE ); There is no handling for record images stored in the record_image column. The files are never deleted and are orphaned in /uploads forever.
Last reply by bfarber, -
- 2 replies
- 36 views
Exetrnal rss feeds into topic and shows a snippet of the article and the following is produced Where can i remove these two items below Source Read full article
Last reply by Mark Round, -
- 1 follower
- 2 replies
- 61 views
This was also brought up in the following topic, but there was no answer from IPS there and I do believe it is solvable: In almost all places where Item::$containerNodeClass is used, there is an isset test before accessing it and graceful fallback when it's not present. However, that check is missing in a few places that affect following and tagging. For followable: \IPS\core\Followed\Table:99 - this join should actually be within the preceding if statement (since I believe it only makes sense when permissions are used) core/front/table/tables/rows.phtml:104 - the if should also check that method_exists, as it the pattern everywhere else (but this i…
Last reply by Colonel_mortis, -
- 1 reply
- 42 views
I want to create a new theme, but creating a new theme in Customization>Theme has limitations for working on DB, classes, custom forms, and so on. But in app development, you can overwrite the classes and the theme and you are free to work with everything. Is it common way to create a theme using app development? what is your suggestion?
Last reply by bfarber, -
- 1 follower
- 3 replies
- 107 views
HI, I am looking to apply the latest patch: https://invisioncommunity.com/release-notes/ I haven't updated this before, so just wanted to ask if there is anything I need to lok out for or do manually before pushing the 'Upgrade Now' button. Thanks in advance
Last reply by RMweb, -
- 1 follower
- 3 replies
- 62 views
Hello, is there a way to send multiple notifications from one extension module? For example, i have admin module to add updates in external database, i want to add AdminNotification every time an update is created, but for now i can only send one notification or remove old one and then send new one but is there a way to send multiple notifications using one module?
Last reply by bfarber, -
- 1 follower
- 5 replies
- 119 views
When a user goes to the store they can change the currency using this widget: How can I change it programmatically? I figured it's not a database setting as if I set the currency in one browser, it goes back to the default in a different browser. I also don't see any cookies about currency setting. Is it using $_SESSIONs? I just want to be able to manually change from the default currency if the user is from the U.K. for example.
Last reply by modman, -
- 2 followers
- 5 replies
- 107 views
Due to financial constraints my organization cannot support a self hosted option but I am still looking to develop additional features for our instance. Any advice on good ways to go about this? Right now I am using custom blocks but this requires a terrible conflation of HTML/CSS/JS into one file which is less than ideal. Another issue is there doesn't appear to be any way to utilize BE & FE code for one feature as custom blocks make you utilize just PHP or HTML. Is there a way to utilize ENV variable to hide my API keys in the custom blocks I make? I know this is a broad question and the answer may just be that I am SOL but I wanted to check in with all of you …
Last reply by bfarber, -
lang issue
by desti- 2 replies
- 52 views
After attach pdf to post we see attach block: In english all ok In russian - problem Fast solution: in file system/Lang/Lang.php replace $replacement = mb_substr( json_encode( $replacement ), 1, -1 ); to $replacement = mb_substr( json_encode( $replacement, JSON_UNESCAPED_UNICODE ), 1, -1 ); now all fine
Last reply by desti,
-
Recently Browsing 0 members
No registered users viewing this page.