Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,678 topics in this forum
-
-
- 1 follower
- 4 replies
- 473 views
I've posted by Invision app template that I use to build applications to Github and turned it into a template for anyone interested. Feel free to use and pass along. Works well for many workflows. https://github.com/DeschutesDesignGroupLLC/invision-app-template
Last reply by Jon Erickson, -
-
- 0 replies
- 371 views
I'm opening up our OAuth to securely authenticate users and download files remotely from the site. In doing so, we have to store their OAuth access token locally. The problem is with the /downloads/files/{id}/download scope exposing the FQDN of the file itself. That's a bit of an issue since the FQND of the file never changes and anyone with the URL can download, regardless if they have access to it or not. The issue we're facing is the fact the user can get ahold of their token if they tried hard enough. That means they can run their own API call to fetch the FQND of any file they have access to. That's a bit dangerous. Sure it's no different than them just leaking …
Last reply by Daddy, -
-
- 1 follower
- 4 replies
- 538 views
Hello, I am working on adding members to our forum after the purchase of a specific product in WooCommerce. The very basics are working - new WooCommerce customer/order -> Add new forum member using name + email from WooCommerce. However I was hoping to be able to populate custom profile fields too - like address etc. I do not have the option to insert values into the custom profile fields in Invision. Is that something I am doing wrong, or is the functionality not available? If not, is it in the pipeline or can the same be achieved with a custom API? All the options i have when setting the new member fields. Whereas I have 7 custom profile fields setup for all memb…
Last reply by 700newtons, -
-
-
- 1 follower
- 15 replies
- 740 views
Hello, my app works fine on 4.7.11 but suddenly stopped being displayed on 4.7.12. Did you changed something in that extension?
Last reply by Adriano Faria, -
-
-
- 2 followers
- 4 replies
- 515 views
Hello, error: Undefined array key 0 Full track: #0 \applications\convert\sources\Software\Core\Invisioncommunity.php(692): Whoops\Run->handleError(2, 'Undefined array...', 'C:\\wamp\\www\\45\\...', 692) #1 \applications\convert\sources\Library.php(285): IPS\convert\Software\Core\_Invisioncommunity->convertMembers() #2 \applications\convert\modules\admin\manage\convert.php(559): IPS\convert\_Library->process(NULL, 'convertMembers', 100) #3 \system\Helpers\MultipleRedirect\MultipleRedirect.php(93): IPS\convert\modules\admin\manage\_convert->IPS\convert\modules\admin\manage\{closure}(NULL) #4 \applications\convert\modules\admin\manage\convert.php(57…
Last reply by Marc Stridgen, -
-
-
- 3 followers
- 5 replies
- 465 views
In 4.7.12 I’ve just noticed that you can drag and drop to add or remove editor buttons in Themes > Editor > Toolbars but when you refresh the page the toolbar reverts back to how it was. (Only tested via Safari using an iPad). Clearing the cache via Support Tool doesn’t resolve it.
Last reply by Marc Stridgen, -
-
- 1 follower
- 0 replies
- 245 views
I want to integrate the point system with my online courses. I see there is a way to award badges through the API, but is there a way to award points? The only thing I can see that might be able to do this is the rawProperties for the POST endpoint /core/members/{id}. But there's no information about it, so I'm unsure.
Last reply by Oyvind Dahl, -
- 1 follower
- 0 replies
- 205 views
I want to use $(document).trigger('updateTableUrl', ....) in a page that has 2 tables on it. so when the command triggers, 2 requests send to the server, the server returns 2 JSONs. but I want to use this trigger for one of them. how can I do it? (how should I specify the table )
Last reply by ReyDev, -
- 5 replies
- 455 views
Hello, I added a new theme template to store all my carousel information in it. ( Or any content in general ) Now I want this to show only in home page where it is the index for my forums. What is the condition to put that checks which template is now showing ( view ). my template is called: {template="mainsitecarousel" app="core" group="_mycustomtheme" location="front"} I want it to be visible when user is showing the "index" template from forums. Now I could write the previous code in side it, but I want it to be in different place ( under header ). My thinking is to add my code in the main globalTemplate with a conditio…
Last reply by TheAccountant, -
-
- 1 follower
- 11 replies
- 983 views
So I see there is another editor so to say where Header / Footer HTML is and I also want to use it but I can't figure out how. Examples. Invisioncommunity: Mine: I want to make it show exactly like Header and Footer editor. help? I think I can access it and make it show through Custom PHP, but I don't know where to select it. There is no documentation for it. If i use it as shown in my example it will display like this and that's why I want it like in Header/Footer.
Last reply by Alexandru, -
-
-
- 2 followers
- 6 replies
- 337 views
Hi, I’m looking to see if there is some built-in IPS code that allows me to check if a topic in a row is synced/connected to a Pages record. The use case I’m thinking of, is something like, on a Forum’s topic list: IF topic row is of a topic that has a connection to a Pages record (comments/topic replies are sync’d), THEN display [HTML] I’d also like to be able to pull a Topic’s original post content and display it somewhere else when using Copy to Database so that the original topic content isn’t lost when the Page Record and Topic is sync’d up… but I’m guessing that’s more of a Feature Request to make and that’s not something I can currently do in v4? …
Last reply by opentype, -
-
-
- 1 follower
- 6 replies
- 426 views
Hello, I have an existing application and I am trying to add some new features. I have added a new template to the theme.xml file and also created a new record in the core_theme_templates table, but when I try to use the new template I get the error below: ErrorException: template_store_missing (0) /public_html/community/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute() /public_html/community/index.php(13): IPS\_Dispatcher->run() What am I doing wrong? Thank you
Last reply by Jennifer Beadles, -
-
- 3 replies
- 401 views
What is a hook to catch when a Member is changing groups? \IPS\Member has set_member_group_id( $value ), but I need to know what group they are changing from and what the new group is. In the "Recent Activity" I have logs like "Expiring purchase "X" changed group from "Y" to"Z"." - I need to hook into this moment. How?
Last reply by Dominyka, -
I'm using an app that has a hook to an official app template to enrich the template with more code for its features. I am not seeing these hook code additions/features included the corresponding Plugin block's template referencing the same app template (i.e. Template = default template, use template as-is), should they not be? If not, is there a way to get them included if the default template?
Last reply by Adriano Faria, -
-
- 1 reply
- 385 views
@Stuart Silvester, I tried to find the topic/post where I asked you about this but didn't find it so I'm creating a new topic. This shows as FIXED in 4.7.7 but is still a problem on 4.7.11.1. That's how the app hook shows after the app install: /** * @mixin \IPS\core\Messenger\Message */ class messengerenh_hook_messageModel extends _HOOK_CLASS_ { use \IPS\Content\Reactable { try { \IPS\Content\Reactable::canReact as allowedToReact; } catch ( \Error | \RuntimeException $e ) { if( \defined( '\IPS\DEBUG_HOOKS' ) AND \IPS\DEBUG_HOOKS ) { \IPS\Log::log( $e, 'hook_exception' ); } if ( method_exists( get_parent_class(), __FUNCTION__ ) ) …
Last reply by Stuart Silvester, -
-
-
- 10 replies
- 489 views
For my app I never made a public page that lists content items for a specific node. I felt it didn't really need it and so I just listed all active content items together, regardless of node. So I commented out the various url properties in my node class, since there is nowhere for it to lead to, which would show a node's content items. Well, now it's causing someone's sitemap task to have an exception thrown since that is what function url() in Model.php does, since I commented out my url properties. So I guess I will have to add a page per node in? I just assumed that it wasn't a requirement to have per node content item listings. In this app, there's usually …
Last reply by Midnight Modding, -
-
-
- 1 follower
- 1 reply
- 338 views
Hi, In 4.7.11.1, I noticed 2 missing language strings in the AdminCP > Notification Settings (via bell icon):
Last reply by Stuart Silvester, -
-
-
- 1 follower
- 4 replies
- 910 views
Hello, maybe I'll show what I mean on video, here you are: 2023-04-06_11-18-41.mp4 Basically it's looping beetwen steps if I back to any step filles previously and can't finish wizard. What I'm doing wrong? If I won't back by clicking to any previous step then everything is fine. Any clues? The same situation in converter: 2023-04-06_11-22-19.mp4
Last reply by DawPi, -
-
-
- 1 follower
- 3 replies
- 299 views
Tested on a fresh install, for some reason 'app' is being replaced with the domain
Last reply by Sly_Ripper, -
-
-
- 3 followers
- 2 replies
- 1.5k views
Error: Call to undefined method ReflectionUnionType::getName() (0) #0 C:\wamp64\www\invisiondev4.7dev\applications\core\modules\admin\applications\developer.php(3578): IPS\Plugin\_Hook->editForm(Object(IPS\Http\Url\Internal)) #1 C:\wamp64\www\invisiondev4.7dev\system\Dispatcher\Controller.php(107): IPS\core\modules\admin\applications\_developer->editHook() #2 C:\wamp64\www\invisiondev4.7dev\applications\core\modules\admin\applications\developer.php(69): IPS\Dispatcher\_Controller->execute('do') #3 C:\wamp64\www\invisiondev4.7dev\system\Dispatcher\Dispatcher.php(153): IPS\core\modules\admin\applications\_developer->execute() #4 C:\wamp64\www\invisiondev4.7dev\a…
Last reply by Daniel F, -
-
- 2 followers
- 2 replies
- 402 views
Hello, I have a lot of ":emotikonshortcut:" in the oooold posts not converted. Is there any exists queue method to rebuild posts (imitate edit/save operation) to pare and display them in the old exists posts?
Last reply by DawPi, -
- 2 followers
- 6 replies
- 751 views
Hi, as you know text helper has placeholder option to be set. It works great. However it doesn't when you set this field as a autcomplete. How can I restore that to work with automplete field type? Thanks in advance, DawPi
Last reply by DawPi, -
- 2 replies
- 389 views
When I go to one of my categories for my app and I take away read permission within the category for admins, everywhere on the site gives the following error. I track it back to the following code from an ip.suite file: $reportCount = \IPS\Db::i()->select( 'COUNT(*)', 'core_rc_index', $where )->first(); So it's something related to report center, but 1. I don't enable anything related to report center for this app and 2. why would it only do it when i change a specific category permission? It doesn't even do it if I change another category's same permission.
Last reply by Midnight Modding, -
-
- 2 replies
- 283 views
When using $rootsPerPage for a Tree, it's still showing every root on the same page in acp. It shows the pagination correctly (ie, I have 88 rows, set it to 10, it shows there are 9 pages), but then every page simply lists all 88 roots. For this app, no subcategories are even allowed and it could have a lot of roots, so I figured I should have it broken into pages, especially since I don't see much reason for anyone to reorder them, anyway. I can't remember if I confirmed it working in the past or maybe it has just always been this way. I see the line in Tree.php that gets the rows and it sure seems like it's correct...
Last reply by Midnight Modding, -
-
-
- 12 replies
- 558 views
Fresh install, trying to add an API route but Member::load breaks any time I pass $idField, even default fields. works: $member = \IPS\Member::load(1); $member = \IPS\Member::load(1, 'member_id'); Returns { "errorCode": "EX0", "errorMessage": "" } System log says "InvalidArgumentException (0)", viewing the log shows OutOfRangeException from line 115 /app/system/Patterns/ActiveRecord.php Also, the docs need fixing: /** * Add our own column to default fields */ public function __construct() { static::$databaseIdFields = array_merge( static::$databaseIdFields, array( 'remote_id' ) ); } …
Last reply by Sly_Ripper, -