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
-
- 2 replies
- 516 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
- 458 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
- 362 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
- 1k 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
- 574 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
- 1k 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, -
- 1 follower
- 5 replies
- 453 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, -
- 1 follower
- 1 reply
- 413 views
When an ips.ui.editor instance is destroyed, you are following the answer from a Stack Overflow question and trying to manually destroy the CKE instance. Unfortunately, that manual destruction is not sufficient, and is leaving references to the editor and behaviour. Take ipsautosave as an example (and maybe the only example, I've not looked further) - it maintains a reference to `editor`, and runs autosave on it every two seconds. It attaches a `destroy` event handler, which would be triggered when calling editor.destroy(), to cancel the timeout and therefore release the editor reference, but because you never trigger the destroy event it's not sufficient. (I'm noticing t…
Last reply by bfarber, -
- 1 reply
- 419 views
I've developed an app and for the new version, I created a version (for example 1.1.0) and the corresponding query (creating a new table). When I try to upload a new version, everything goes well, but the query (create table) does not run.
Last reply by bfarber, -
- 1 follower
- 5 replies
- 513 views
When in Developer mode, if I upload a plug-in, the developer (Dev directory) files are created (Manual upload), however the css files are created in the css folder. However, the CSS styles can be found in the theme ACP. Also, I have found that sometimes the version files in setup don't always get created either on install..
Last reply by bfarber, -
- 1 follower
- 3 replies
- 591 views
I'm not totally sure about this, but will say anyway. I got Gallery and Blogs disabled on my live board. After upgrade to 4.5.4.1 yesterday, they got locked because they remained in 4.5.4: Now I have to downlload the package and upload both apps. I tested the upgrade on my dev board and worked fine because no app was disabled. As I said, not sure it is the cause. Just to let you know.
Last reply by bfarber, -
- 1 follower
- 2 replies
- 698 views
I submitted this as feedback last week, but it looks to be a bug. In any case you currently have javascript related to this behaviour that doesn't do anything in your default theme. In version 4.4, this was the HTML for the share link on posts in html/forums/front/topics/post.phtml: {{if $comment->mapped('first') }} <li><a class='ipsType_blendLinks' href='{$comment->item()->url()}' data-ipsTooltip title='{lang="share_this_post"}' data-ipsMenu data-ipsMenu-closeOnClick='false' id='elSharePost_{$comment->$idField}' data-role='shareComment'><i class='fa fa-share-alt'></i></a></li> {{else}} <li><a class='ip…
Last reply by TSP, -
- 1 reply
- 421 views
I couldn't figure out from reading this article: I created a simple dropdown menu using this format: <!-- The trigger --> <a href='#elMyMenu_menu' id='elMyMenu' data-ipsMenu>Open Menu</a> <!-- The menu --> <ul id='elMyMenu_menu' class='ipsMenu'> ... </ul> But I want to be able the listen to open and close events. How can I create an event listener using ips.ui.menu? As a side note, a lot of these articles lack an actual example which would save people from having to post to the forum.
Last reply by Martin A., -
- 1 follower
- 6 replies
- 539 views
I want to delete some data from DB using ajax , In normal case ,I use confirmDelete() to confirm but in ajax , it does not work. How can I do it, confirm and delete?
Last reply by bfarber, -
- 1 follower
- 4 replies
- 626 views
Hi, I've created a template hook for a plugin. Everything is ok when I'm in developer mode(IN_DEV = TRUE) but in production mode(IN_DEV = FALSE), I get this error : [[Template core/front/global/navBar is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
Last reply by ReyDev, -
- 1 reply
- 333 views
I've hooked a theme in my application, And I'm going to add a css file to this theme. I've added the css file ( here : myapp > dev > css ), but it doesn't attach automatically to the theme like plugins. How can I do it?
Last reply by bfarber, -
- 1 reply
- 320 views
I've developed an app, And I want to add menu items of this app to this section. How can I do it?
Last reply by Miss_B, -
- 5 followers
- 9 replies
- 2.9k views
PHP 8.0.0 has been released. Some bugs that I've found in a couple of minutes of testing: There are a bunch of deprecation warnings for required parameters following optional parameters - from my search with the regex function\s*\w+\s*\([^=)]*=[^)]*,\s*\$[^,)=]*[,)] there are 47 instances of this in the suite. It should be safe to remove all of the offending default parameters, since they can never be utilised. The cms lang key can_edit_item_message_record is invalid - it contains %S rather than %s, which causes the page to (randomly?) 500. Fatal error: Cannot make static method XMLReader::open() non static in class IPS\Xml\_XMLReader in .../system/…
Last reply by bfarber, -
- 1 follower
- 5 replies
- 650 views
There is a requirement (in Russia) to store personal user information on a server that is located in Russia. My server is in Germany, would like to understand the best way to solve this problem. And is that even possible?
Last reply by desti, -
- 2 replies
- 385 views
/** * Decode JSON * * @param bool $asArray Whether to decode as an array or not * @return array * @throws \RuntimeException * @li BAD_JSON */ public function decodeJson( $asArray=TRUE ) { $json = json_decode( $this->content, $asArray ); if ( $json === FALSE ) { throw new \RuntimeException('BAD_JSON'); } return $json; } You are testing for a return value of FALSE and that is not returned by PHP json_decode. If the content to be decoded cannot be decoded (malformed json, not json) that method returns null. null is returned if the json cannot be decoded or if the encoded data is deeper than the nesting limit. If you would rather n…
Last reply by All Astronauts, -
- 1 follower
- 2 replies
- 517 views
Having trouble finding this in the documentation - where can we adjust the task frequency? unlockmembers is set to run once an hour, while the lockout default is 15 minutes. Turns out, some folks sit there and wait!
Last reply by Stuart Silvester, -
- 1 reply
- 340 views
Last reply by bfarber, -
- 10 replies
- 882 views
I have developed an app and when working in developer mode everything goes well (IN_DEV = TRUE), but in production mode(IN_DEV = FALSE), JS doesn't work at all.
Last reply by ReyDev, -
- 1 follower
- 1 reply
- 401 views
My understanding is that modifications to the core_groups table is not allowed anymore. Does IPS have a best practice example or guide in what approach we should take now for apps that modified the core_groups table?
Last reply by Daniel F, -
- 1 follower
- 2 replies
- 420 views
I am trying to create an Invoice with a Regular Product Purchase (No Renewal, Lifetime Purchase, No Shipping Required) when someone calls an external php script however, it is failing due to My Script require $_SERVER['DOCUMENT_ROOT'] . '/community/init.php'; \IPS\Session\Front::i(); $member = \IPS\Member::loggedIn(); $package = \IPS\nexus\Package::load( 26 ); $invoice = new \IPS\nexus\Invoice; $invoice->member = \IPS\Member::load( $member->member_id ); $invoice->currency = "USD"; $invoice->title = $package->title; $invoice->total = $package->price(); $item = $package->createItemForCart( $package->price() ); $invoice-&…
Last reply by UrDrive,