Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,739 topics in this forum
-
-
- 1 follower
- 4 replies
- 994 views
Found a small bug which only seems to show when I have Whoops enabled. This happened when viewing a member's profile in the ACP and an applications Notification configurationOptions function does NOT explicitly set a return. Such as: public static function configurationOptions( \IPS\Member $member = NULL ) { if ( $member === NULL or $member->modPermission( 'can_view_hidden_content' ) ) { return [ 'my_notification' => [ 'type' => 'standard', 'notificationTypes' => ['my_notifiction'], 'title' => 'notifications__my_notification', 'showTitle' => FALSE, 'description' =&g…
Last reply by TDBF, -
-
- 1 follower
- 0 replies
- 977 views
Hi there, https://invisioncommunity.com/developers/rest-api?endpoint=core/members/POSTitem How can I register the birthday date? I've tested rawProperties[]=birthday:12/1/1980 But it doesn't work... Any advise?
Last reply by Colombia Humana, -
- 2 replies
- 929 views
Not sure if this is a thing, so I'm checking. Is there a list somewhere of Invision developers?
Last reply by BACG, -
- 1 follower
- 1 reply
- 643 views
The reported content doesn't show any moderated actions that applied to the reported topic or post. For example: If you hide the post/topic, the "Hide" word doesn't change to "Unhide" or even show the hidden eye icon next to the title in order to inform the staff that the post/topic is hidden. Also, that apply to delete action. It doesn't change to "Restore" or show that the post/topic was deleted.
Last reply by Afrodude, -
- 0 replies
- 454 views
Links do not have a discernible name. Elements with an ARIA [role] that require children to contain a specific [role] are missing some or all of those required children. List items (<li>) are not contained within <ul> or <ol> parent elements.
Last reply by SeNioR-, -
- 1 follower
- 1 reply
- 788 views
hi my lords, in Persian language, in profile, when I click on "community answers", URL display as topic title. Persian: English: with best regards!
Last reply by SeNioR-, -
-
- 1 follower
- 1 reply
- 817 views
Firefox console reports some unreachable code after return statement in root_front.js Around line 2221 when unminified, line 141 in minified version: _updateAttachmentImage: function (attachment, response) { return; if (!(attachment.is('img'))) { return; }
Last reply by Stuart Silvester, -
-
-
- 1 follower
- 3 replies
- 776 views
I have a print-on-demand account with a company in the UK who have an API for managing their processes with 3rd party storefronts. It works seemlessly with shopify for instance. Is there any such API two-way communication built into Invision's store front? Or any plans to do so in the future at all? Thanks, Evan
Last reply by Randy Calvert, -
-
-
- 2 followers
- 7 replies
- 1.2k views
The scheduled topic showing different dates everywhere. Some places it shows the time it was posted and scheduled, or it shows the time it was scheduled to be posted on, for example Forums viewing topics Viewing forums I believe it should show only the time that was scheduled to be posted on everywhere not the time you published and scheduled it.
Last reply by Gary, -
-
- 0 replies
- 480 views
Hey everyone! I need to generate an invoice with a subscription product. This creates everything just fine for any product, but never adds the renewals part. I can see there is a separate $recurrings variable on the checkoutAndPay page. Should I populate that somehow? A bit lost how renewals work. $invoice_new = new \IPS\nexus\Invoice; $invoice_new->member = \IPS\nexus\Customer::loggedIn(); $invoice_new->currency = "USD"; $package = \IPS\nexus\Package::load( 1 ); $item = $package->createItemForCart( $package->price() ); $invoice_new->addItem( $item ); $invoice_new->save(); I'm using a regular product that renews, not…
Last reply by Dominyka, -
-
- 2 followers
- 2 replies
- 856 views
http://localhost/ips/admin/?app=nexus&module=subscriptions&controller=subscriptions&do=convertToSubscription&id=1&csrfKey=3ed05127f5b65a77dcf8987de5da8e5c causes a whoops error because the CSRF key is left in (and is required).
Last reply by Marc, -
-
-
- 1 follower
- 1 reply
- 835 views
I'm not sure why, but recently the number of submissions with some issues related to guests and handling them increased a lot recently. Sometimes it's harmless, like showing some content and using \IPS\Member::loggedIn()->member_id in the where condition, but sometimes it's really dangerous because either you're allowing an attacker/or just random visitor to delete all the guest accounts,to spam the board as guest, to flood peoples member table with hundreds of guest accounts and and and... There are dozen of bad scenarios which I've seen in the last months. So, when working with the visitor object ( Member::loggedIn() ) in controllers, ask yourself=> Shou…
Last reply by Kirill Gromov, -
-
Hello, I've discovered a bug in how IPS' lazyloading works on dynamic elements. in ./dev/js/library/app.js, line 61, you define a hook/override for $.fn.html. This makes sure that if dynamically loaded HTML contains lazyload elgible content, you instate the lazyload handler on it. The problem seems to be instead of looping each lazyload element, ips.utils.lazyLoad.observe is called on the entire element. This then registers the IntersectionObserver on the entire element, causing each lazyloading element to be loaded straight away, defeating the point of the lazyload. The fix is to instead call ips.utils.lazyLoad.observe on each lazyload capable element…
Last reply by Stuart Silvester, -
- 1 reply
- 920 views
Just catch this on a test: Probably not included in the togglesOff or missing the field ID.
Last reply by Adriano Faria, -
-
- 2 followers
- 6 replies
- 804 views
First here a list of the plugins attached to this topic with a list of what they do in each upgrade step: 1.0.0 => Adds 1 setting (testing_upgrade_setting). The install script creates 1 table (aaaa_install) and updates the setting value to 3. 1.0.1 => The upgrade script updates the setting value to 4. 1.0.2 => The upgrade script creates 1 table (aaaa_upgrade). 2.0.0 => The upgrade scripts for versions 1.0.1 and 1.02 are removed (empty XML entries). The upgrade script for version 2.0.0 creates 1 table (aaaa_upgrade) and updates the setting value to 5. 2.0.1 => The upgrade scripts for versions 1.0.1 and 1.02 are restored (no empt…
Last reply by teraßyte, -
-
-
- 3 replies
- 829 views
Posting here since email support is no longer a thing. We noticed that L341 in the ips4.php requirements checker (ref https://invisioncommunity.com/files/file/7046-invision-community-requirements-checker/) attempts to communicate with the IPS licensing server through HTTP?? Is this not a security vulnerability by not using HTTPS - you're basically just transmitting the key in cleartext over unencrypted channels. The line in question: <?php if ( file_exists( 'conf_global.php' ) and isset( $mysql ) and $licensekey = @$mysql->query("SELECT * FROM core_sys_conf_settings WHERE conf_key='ipb_reg_number';") and $licensekey = @$licensekey->fetch_assoc() and …
Last reply by Aaron M, -
-
-
- 2 followers
- 2 replies
- 893 views
hi There is a responsive issue in all released versions on Firefox browser (android and desktop). I have checked most of the forums, but unfortunately this problem has not been solved yet! https://mega.nz/file/mENUwZbS#pS9Z8vM30rKHz69_sCYh4x2AcRi5yyx_v8GnAqScG6Y If you look at the video, you will see that there is no problem in LTR mode, but in RTL mode, the page has a responsive issue. please fix this problem in next release! thanks in advance.
Last reply by ArashDev, -
-
-
- 2 followers
- 2 replies
- 535 views
hi 1. In the Firefox browser in RTL mode, when the registration button is clicked, the registration form does not open correctly and has a responsive problem. https://mega.nz/file/6E0kXBrS#-tPQ2eeL_sFpgYYBvGxZTCAtS0tURuijY1X8uvBAKX4 2. In the Chrome browser in RTL mode, when the registration button is clicked, you cannot scroll and fill the registration form. https://mega.nz/file/TQFnmDba#_KIODtE-8XDA0G3f5kfCenj0nun0UH-drTpBBmGemBI I've checked this issue in different browsers and it happens in all of them. please fix these issues in the next release. thanks in advance.
Last reply by ArashDev, -
-
- 1 follower
- 2 replies
- 842 views
I am working on a custom php test app that validates the user for an API call using OATH2 with PKCE. I am able to successfully get the authorization_code from the invision server, but when I post that back to get the access_token to make the API calls I get the following error: "invalid_grant","error_description":400 For background I'm using the following code to get the authorization_code // Remove all previous session variables as they are not valid at this point session_unset(); // generate a random 16 digit string for the session $_SESSION['state']= bin2hex(random_bytes(16)); // Request the authorization code from the auth0 server $hr…
Last reply by Brian Peterson, -
- 0 replies
- 627 views
Hey there! I need to add an order bump to the final checkout process page (where the user enters payment info). (What is an order bump?) Basically, a button that edits the invoice currently displayed to add/remove a product. I can find a method "acpAddToInvoice", but that's for the admin side. Is there a method to edit the invoice? Or should I perhaps just alter the database record of the invoice and reload the page? Anyone encountered editing an invoice from the user side? Ty!
Last reply by Dominyka, -
-
- 1 follower
- 0 replies
- 1.2k views
One of the biggest benefits from IPS is also one of the most annoying things.. The Proxy Classes and full IDE support! I have related a small script which generates a file with class aliases. https://github.com/DanielFatkic/ipsaliases This can be installed global on the system via composer composer global require danielfatkic/ipsaliases and then just call vendor/bin/generatealiases . inside your IPS dev instance, or you can also pass the full path to an IPS installation, which will generate a file called aliases.php
Last reply by Daniel F, -
-
-
- 1 follower
- 3 replies
- 679 views
There is a new option to rotate images in 4.7.7, but when you click on it, you get an error. Error: Oops! Something went wrong. Please try again. Link: https://invisioncommunity.com/attachments/?do=rotate&id=159223&direction=left¤t=
Last reply by SeNioR-, -
-
- 2 replies
- 841 views
Hi Guys. On many websites, when registering an account, there are only two fields, e-mail address and password. The username is set based on the email address, usually in its entirety or set based on what comes before the @ symbol e.g. emial: olivia.johnson@coldmail.com Username: Olivia.johnson My primitive working code looks like this: $GetNameEmail = substr($values['email_address'], 0, strrpos($values['email_address'], '@')); $member->name = ucfirst($GetNameEmail); I need to check if username is already in the database. How can I achieve it? Something like when registering via the social media method where if the nick is taken, we have t…
Last reply by SeNioR-, -
- 4 replies
- 1k views
I'm attempting to upgrade to the latest version of the forum software, so I'm porting over some of our customizations, but for some reason I can't get the theme to load a custom template file. In forums>front>topics>postContainer, on line 92, I've added an else condition to load a template bit: {{if !$comment->isAnonymous()}} <li data-role='group'>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li> {{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }} <li data-role='group-icon'><img src='{file="$comment->author()->group['g_…
Last reply by Jyosua, -
- 0 replies
- 482 views
Since the topic author cannot mark his first post as solved, this code below should not show if there is no reply in the topic. {{if $topic->canSolve() AND ! $topic->isSolved() AND $topic->isNotModeratorButCanSolve()}} <div class='cContentMessage cContentMessage_color ipsMessage_success ipsMargin_vertical' data-controller='forums.front.topic.solved'> <h3 class='cContentMessage__header'>{lang="solved_did_it_tho_title" sprintf="\IPS\Member::loggedIn()->name"}</h3> <div class='ipsPadding'> {lang="solved_did_it_tho_desc"} {{if member.members_bitoptions['no_solved_reenage']}} <div class='ipsMargin_top'> …
Last reply by SeNioR-,