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
-
- 1 follower
- 4 replies
- 1.1k views
I have a web application that I wish to use my Invision Community as an OAuth2 server/service provider for. I have it mostly implemented and am receiving a proper response on callback. However, the response returns an empty resourceOwnerId, which blocks me from continuing with the implementation as I cannot pull any user information. Could you tell me why the forum software is returning this value empty? I have included a sample response below: League\OAuth2\Client\Token\AccessToken Object ( [accessToken:protected] => 735f8af921fcc07e60eeba86e337296e_1f045d3869e6c77e3cc99236af0368d7d96e5889a8024fd6a27328761dbb8e4b [expires:protected] => 1649852825 [refreshToken…
Last reply by Stuart Silvester, -
- 2 followers
- 1 reply
- 1.2k views
In ips.ui.infiniteScroll.js you have this method: _getPageURL = function (pageNo) { return elem.attr('data-ipsInfScroll-url') + '&' + options.pageParam + '=' + parseInt( pageNo ); }, This does not respect friendly URL. The UI widget attempts to load: https://example.com/articles/&page=2 (Error 404) It should be: https://example.com/articles/page/2/
Last reply by Stuart Silvester, -
- 1 follower
- 1 reply
- 661 views
updating one of my apps, i decided to give the the JS a good dusting to see where i could improve it cause it was a bit long in the tooth. I noticed i was using my own $.Deferred code to know when the animation was done executing (i'm using ips.utils.anim.go() for some of the animation and jquery ui for some of the others). I couldn't exactly remember why i had setup my own defer, so i tested it out. i removed mine, placed a .promise().done() on the jquery ui effects i was using, worked as expected, then i moved onto the IPS ones and it was not working as expected. the promise is returned instantly, long before the animation is done executing. i tested out a few things, …
Last reply by Stuart Silvester, -
- 2 replies
- 835 views
I was sure I had reported this earlier, but I can’t find any similar topics. In the Marketplace, the release dates of the different file versions are wrong. It seems the release date is set to the date of the next version uploaded: If version 1.0.0 is uploaded on January 1, the “See changelog” dropdown displays no release date. When version 1.0.1 is released February 1, version 1.0.0 is suddenly showing a release of February 1. See this picture for an example: The list of versions show version 2.0.0 as released December 27. This is wrong, as this version was released in March. December 27 is the date I submitted the new version (2.0.1). Also, the …
Last reply by Stuart Silvester, -
- 1 reply
- 616 views
Last reply by Stuart Silvester, -
- 2 followers
- 3 replies
- 488 views
This issue is both an annoyance and a bug, one affects the other imo. Application: CMD/Pages Bug: Renaming a template can cause duplicate of a Database template when it's imported via Themes Designer Mode or when creating another the Database Template with the same name. Not only does this bug break your own naming guidelines, but it can cause duplicates of the same database template which will lead to issues when deleting one of the duplicates within Database Templates window. How to reproduce. Create a Pages Database Template: Go to Themes ACP and click on the Designer Mode button, Enable Designers' Mode and Click Next and wait unt…
Last reply by Stuart Silvester, -
- 1 reply
- 785 views
Hello, IPS allows adding "non-standard" emoticons that might be much bigger than line-height. I'm developing a chat application with default scheme where newer messages appears at the bottom of chat window. I've dealt with inserting images, resizing and lazy-loading, but I can't deal with content reflow which apperas when "non-standard" emoticons are being used. Video of page loading in "Slow 3G" mode: Video_2022-02-07_234532_Trim.mp4 <p> <img alt=":ouch:" data-emoticon="" src="<fileStore.core_Emoticons>/emoticons/ouch.png" title=":ouch:" /> </p> The <img /> tag hasn't height attribute, which produces content re…
Last reply by Stuart Silvester, -
- 2 followers
- 3 replies
- 1.1k views
I was updating some notifications options and noticed one that doesn't work: Followed Content > Automatically follow content The option has 2 checkboxes with an "or All / None" option below them. Clicking either of these 2 options does nothing in updating the checkboxes to automatically follow new content/replies. There's no JS error/warning logged in the browser console, it just doesn't work.
Last reply by teraßyte, -
- 2 followers
- 4 replies
- 626 views
I noticed that sometimes the YesNo widget settings in the app developer center don't work. To reproduce follow this steps: Let's use the CORE application, open the developer center and go to the WIDGETS tab. Click the edit button for the activeUsers widget (or any other really). Try editing the Allow widget re-use? or Embeddable by Pages app settings; they'll work just fine. Close the settings modal popup without saving the changes (either clicking the X button or clicking somewhere else in the page). Click the edit button for the stats widget (or any other really). Try editing the Allow widget re-use? or Embeddable by Pages app setting…
Last reply by Matt, -
- 2 followers
- 3 replies
- 856 views
After the upgrade WYSIWYG editor has disappeared. An attempt to reset the editor toolbar failed. Clicking on Editor -> Toolbars in AdminCP ends with:
Last reply by Matt, -
- 1 follower
- 1 reply
- 773 views
If a Page database uses a Number field, then we see a Whoops unless we edit the field configuration in AdminCP and re-save it.
Last reply by Daniel F, -
- 3 replies
- 626 views
Hello! Can I use api invisioncommunity to get all activity, as in section All Activity?
Last reply by Stuart Silvester, -
- 2 followers
- 2 replies
- 676 views
I am asked again and again, why my app FX Pages changes the theme. And if it is safe to confirm new versions on the screen below. And if it will break their theme... This is due to the message the users see when an upgrade for Pages templates is there. The message says the new version of the theme (there is no new theme!) has changed the templates they have edited (they do not have edited any!). Can we have a message that states what really happens? E. g. Some templates have been changed in the new version of the application. Please confirm the changes. It would be also nice to have the message formatted as a warning (ipsMessage_warning) instead…
Last reply by Stuart Silvester, -
- 3 replies
- 443 views
I'm afraid to ask but need to. Applications with custom API code (so we make an API directory under our application and add in our whatevers) - works a treat on self-hosted. Am I going to have a good time installing said-application on CIC or is this a brick wall staring back at me? Given how CIC is structured and the hullabaloo about the interface directory awhile back...
Last reply by Daniel F, -
While the board is IN_DEV mode I clicked to reactive a purchase on frontend and the url throws an exception because of the csrfKey parameter in it: Example URL: https://localhost/clients/purchases/19-new-test/extra/?act=reactivate&csrfKey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX === Whoops\Exception\ErrorException thrown with message "An 200 response is being sent however the CSRF key is present in the requested URL. CSRF keys should be sent via POST or the request should be redirected to a URL not containing a CSRF key once finished." Stacktrace: #8 Whoops\Exception\ErrorException in /system/Output/Output.php:810 #7 trigger_error in /system/Output/Output.php:810 #6 IPS…
Last reply by teraßyte, -
- 1 follower
- 0 replies
- 362 views
In the product form, inside the Product Settings TAB, there is a setting named Show purchases in client area and Admin CP? which hides the Association header/message/setting when disabled. The message If you have multiple products which are related to each other, you can allow them be associated with one another to form parent/child relationships. is currently not being hidden properly because the ID for it is wrong in applications/nexus/sources/Package/Package.php on line 1126: $form->addMessage('package_associations_desc'); The addMessage() method doesn't use the language key as ID but generates an md5() hash of it which will never matc…
Last reply by teraßyte, -
- 1 follower
- 3 replies
- 759 views
@Rikki In the view template: {{if $event->rsvp || $address || $event->map( 270, 270 ) }} <div class='ipsColumns ipsColumns_collapsePhone'> <aside class='ipsColumn ipsColumn_wide'> <div> {template="eventSidebar" group="view" params="$event, $attendees, 'Mob', $address"} </div> </aside> <div class='ipsColumn ipsColumn_fluid'> {{endif}} Happens that the same conditions are also checked in the eventSidebar template: {{if $address || $event->map( 250, 150 )}} and {{if $event->rsvp }} So it won't have any issue if you remove the condition from the view template. Leaving it …
Last reply by Adriano Faria, -
- 1 follower
- 11 replies
- 941 views
I'm trying to move away from accessing the custom databases directly since I discovered APIs. I find the API useful for creating a new record, but I need help with the terminology for what I need to do or use for the following scenario. I have a custom table that hosts a schedule. I'd like to be able to request a task from that schedule. Using API I would send off request for all records, calculate the task myself, then send an API back to the schedule to lock it so it's not given again. There may be several parsers accessing this table, so I don't want the same two tasks sent out. Is there a way I can move the process from my parser to the forum? Send of…
Last reply by Elon Report, -
- 1 follower
- 1 reply
- 559 views
To reproduce, enable security questions in the account security menu. The URL is /settings/account-security/&act=enable&type=questions&_new=1&csrfKey=(omitted)
Last reply by Daniel F, -
- 1 follower
- 0 replies
- 354 views
When enabling the Post Approval option for normal topics a Post Approval Enabled warning badge icon is shown while viewing a forum or the topic itself. If the same option is enabled in a questions forums however the icon is shown only while viewing the question itself but not in forum view. Both questionRow and popularQuestionRow templates need an update.
Last reply by teraßyte, -
- 1 follower
- 0 replies
- 351 views
It all started with this plugin: After seeing it I was asked if I could do the same for the solved/poll/pinned/featured icons but there's no reliable way to target only those icons (not that I can see at least) with a theme hook: {{if $row->isSolved()}} <span><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_positive" data-ipsTooltip title='{lang="this_is_solved"}'><i class='fa fa-check'></i></span></span> {{endif}} {{if $row->mapped('poll')}} <span><span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_neutral" data-ipsTooltip title='{lang="topic_has_poll"}'…
Last reply by teraßyte, -
- 3 followers
- 5 replies
- 727 views
Hi there, I'm developing a new section in my website through Databases' system. Currently we always have two views: Listing and Records. I'd like to extend this functionality and have different Listings. I usually manage to do this via query string parameters. Like $mode=user&user=123 or $mode=default... Is there any better approach to do this? Is it possible to create custo FURLs for this idea? For instance: /mydatabase/ -> default listing /mydatabase/user/123-theuser -> I'd use this to show some user's posted content /mydatabase/234-thepost -> record default view Cheers, Ibai
Last reply by Sonya*, -
- 1 follower
- 16 replies
- 1k views
Hey guys, currently trying to post an Image to a upload field of a database. Getting the following error : 1S306/E UPLOAD_FIELD_NOT_OBJECT Field of type Upload was supplied without being set as an object RestRequest restRequest = new RestRequest("/api/cms/records/" + DatabaseID.ToString() + "/" + "1"); restRequest.Method = Method.POST; restRequest.AddHeader("cache-control", "no-cache"); restRequest.AddHeader("Authorization", $"Bearer {Token.GetValue("access_token")}"); byte[] FileContent = File.ReadAllBytes("C:\\Users\\UserName\\Desktop\\Capture1.png"); var Mydate = new { …
Last reply by InfinityRazz, -
- 2 followers
- 2 replies
- 561 views
I have two databases: info and news. The news database has a couple of categories (features, which has two subcategories [reviews and interviews], games and comics). I want to be able to call the prefix tag of the 'info' page that a user is currently browsing, and use that tag to seek and return a list of records from the 'news' database that is also tagged with the same prefix tag (the news record does not need to have the tag as prefix, just as a regular tag). I want to display this list of records in three different ways: A 'related news' section, which returns all records in the 'news' database with the exception of any records in the 'features' category (and it…
Last reply by Dreadknux, -
Having updated my local dev environment to PHP 8.0, I'm now getting PHP Fatal error: Cannot use "parent" when current class scope has no parent in /var/www/html/ips_themes/system/Theme/Theme.php(2633) : eval()'d code on line 29 during the multiredirect, causing it to fall back to the manual redirect (and succeed due to the lock in compileTemplates still being held by the dead request). This is being caused by a theme hook that is manually overriding one of the template methods public function userReputation($member, $types, $currentAppModule, $currentType, $table, $reactions) { // ... my logic return parent::userReputation($member, $types, $currentAppM…
Last reply by Daniel F,