Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,680 topics in this forum
-
-
- 3 replies
- 525 views
Support for a prefix was added in the template \applications\core\dev\html\global\forms\number.phtml but the code to display the prefix is checking the wrong variable on line 5: {{if \is_string( $suffix )}} {$prefix|raw} {{endif}} The IF should check $prefix rather than $suffix: {{if \is_string( $prefix )}} {$prefix|raw} {{endif}}
Last reply by teraßyte, -
-
-
- 1 follower
- 1 reply
- 557 views
Loading the alerts list is taking a lot of time as it's checking the mt_alert for every single alert that is owned by the current user. As all our alerts are pretty much sent from the same account that's ~25 queries, each taking 2.5-3 seconds. Looks like there should be an index for alert_enabled in core_alerts as well. And why's an alert sent to a single user still active after the alert is viewed (and replied to when required)? AFAIK there's no way for the user to see this again. # Time: 221116 8:34:55 # Query_time: 3.358027 Lock_time: 0.000015 Rows_sent: 1 Rows_examined: 6017771 SET timestamp=1668587695; /*database::username::IPS\core\Alerts\_Alert::member…
Last reply by Daniel F, -
-
-
- 1 follower
- 5 replies
- 765 views
Hi all, we need to know why the webhook present in the webhooks Reference "\IPS\nexus\Transaction object" (System->Site Features->API->Webhooks Reference->Commerce) it is not available when I try to create it in the Webhook section.
Last reply by Daniel F, -
-
- 2 followers
- 2 replies
- 518 views
@Adriano Faria I've read the other topic from @CodingJungle where you guys were discussing the infamous parent error with PHP8: Our install has several custom-made apps and plugins, and the developer @newbie LAC is MIA since the beginning of the Covid pandemic (and I fear for the worst, as I tried, unsuccessfully, contacting him via email a few times). Since we want to preserve all these plugins, I have to fix all of these errors myself before moving to PHP8 in production, which is quite annoying. I will post below the issue I am having with one specific plugin, so maybe you guys can help me out fixing the issue and, hopefuly, once I understand how to fix th…
Last reply by Gabriel Torres, -
- 1 follower
- 0 replies
- 242 views
I have a class that I use for generating a form that has the \Form\Matrix element. I use this form in both locations(the admin and the front locations). it works on the admin module but doesn't work correctly in the front location. in the front location, just shows rows. the add row button, the delete row button, and the sortable function don't work. what should I do to use the Matrix form element in the front location? (i guess JS and CSS files don't load for the front location )
Last reply by ReyDev, -
- 1 follower
- 1 reply
- 292 views
Just found another bug with Custom Products (which I heavily use). Here are the steps to reproduce: Add a paid invoice to any random account in ACP and add a Custom Product with it. In the Client Area Display tab insert some text and an attachment. Now go to the user's account and edit the custom Product (pencil button) from there: add some more text, delete the attachment, and upload a new file. After saving the changes go back and edit again the custom product: nothing has changed except for the fact that the old attachment and the new one are both there now. Now try adding another invoice with a NEW Custom Product and you'll …
Last reply by teraßyte, -
- 0 replies
- 385 views
Invision has SearchAction implemented, but the search box does not appear in Google results. According to Google's documentation, it should be like this: <script type='application/ld+json'> { "@context": "http://www.schema.org", "publisher": "https://invisioncommunity.com/#organization", "@type": "WebSite", "@id": "https://invisioncommunity.com/#website", "mainEntityOfPage": "https://invisioncommunity.com/", "name": "Invision Community", "url": "https://invisioncommunity.com/", "potentialAction": { "@type": "SearchAction", "target": { "@type": "EntryPoint", "urlTemplate": "https://…
Last reply by SeNioR-, -
-
- 2 followers
- 3 replies
- 688 views
If you turn off this setting on any Moderators group, this group wouldn't be able to lock any topic.
Last reply by Marafa, -
-
-
- 5 replies
- 435 views
Has no one noticed that these icons are crooked? I mean, they're not centered 😛 @Ehren A simple code does the trick: .ipsBadge.ipsBadge_icon.ipsBadge_small i { vertical-align: middle; }
Last reply by Afrodude, -
-
- 1 follower
- 5 replies
- 487 views
As you can see below, the Posting Machine icon has no background. Strange because after opening the icon in a new window it displays correctly. Browser: MS Edge. ===Edit=== I found a related topic:
Last reply by Afrodude, -
- 1 follower
- 0 replies
- 287 views
I have my own hooks to add additional spam filter rules, and I imagine I'm not alone. I want them to be able to take advantage of showing the reason that the post got mod queued, but there's no easy way to do that, because the post ID is only available after it's saved, and there's no suitable hook point in \IPS\Content::checkProfanityFilters between saving and constructing the approval entry. It would make me much happier if you replaced the switch statement on line 773 with either: A method call that we can hook Or fall back to setting $log->held_data = ["match" => $filtersMatched["match"]] Or just always do that, and drop the logic to choos…
Last reply by Colonel_mortis, -
- 1 follower
- 0 replies
- 631 views
Hello, I was wondering if there is a way to access or retrieve the embedded image attached in the last post of a topic. Similar to the getNewComment function that can be added to a topic's URL. Website.com/topic/topic_name?do=getNewComment Thanks
Last reply by OptimusBain, -
- 1 follower
- 0 replies
- 456 views
hi my lords When I enabled the birthday, I noticed that, users cannot edit it on their profile: But when I set the local option to English (united State) in the language settings, everything works fine: What is the problem????
Last reply by ArashDev, -
- 1 follower
- 3 replies
- 569 views
What is the $form reference in the following code for streamWrapper? I have one site showing the streamOverview blurb and another that isn't but unclear what setting is influencing this? <div class='ipsFlex-flex:11 sm:ipsMargin_bottom:half'> <h1 class='ipsType_pageTitle'> <span data-role='streamTitle'>{$stream->_title}</span> </h1> {{if $form}} <p class='ipsType_reset ipsType_normal' data-role='streamOverview'> <span data-role='streamBlurb'>{$stream->blurb()}</span> </p> {{endif}} </div>
Last reply by Clover13, -
- 1 follower
- 2 replies
- 489 views
If you have a user avatar size limitation on your site, it's easy to bypass! I originally noticed this on the trial version: If the site has an image gallery - open any picture (any size) and assign it as your profile picture (avatar). Is it a bug/mistake or what?
Last reply by LastPlay, -
- 0 replies
- 228 views
Instead of "display: inline;" <span class="ipsReact_count ipsHide ipsAreaBackground_positive" data-role="reactCount" style="display: inline;"> <a href="xx" data-ipsdialog="" data-ipsdialog-title="See who reacted to this"> 0 </a> </span> there should be "display:none;" <span class="ipsReact_count ipsHide ipsAreaBackground_positive" data-role="reactCount" style="display: none;"> <a href="xx" data-ipsdialog="" data-ipsdialog-title="See who reacted to this"> 0 </a> </span>
Last reply by SeNioR-, -
- 1 follower
- 2 replies
- 431 views
I am seeing system log errors which point to an attempted hack. It that a possible attack vector or can I ignore that?
Last reply by SeNioR-, -
-
- 2 followers
- 3 replies
- 361 views
https://invisioncommunity.com/4guides/themes-and-customizations/css-framework/miscellaneous-r99/ Not used much anymore, but I also saw it failing on my site in the downloads app.
Last reply by Ehren, -
-
-
- 1 follower
- 2 replies
- 428 views
Moderating with personal alerts working on Hide, Lock, and Move. If you decided to send an alert on locking the topic, and you toggled "Send an Alert to member" on After that you decided to Hide or Move it instead, you cannot toggle the "Send an Alert to member" on Hide or Move on unless you go back to Lock or any option you toggled on first to turn it off or refresh the page.
Last reply by Afrodude, -
-
- 1 follower
- 0 replies
- 245 views
After upgrading the server of one of our communities from PHP 7.4 to 8.1 I found the following error message popping up a lot: TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /www/system/Data/Cache.php:151 This was caused by some custom code being referenced in a custom theme which requested a value with \IPS\Data\Cache::getWithExpire. This is how that function looks currently: <?php public function getWithExpire( $key, $fallback=FALSE ) { if ( !isset( $this->$key ) ) { throw new \OutOfRangeException; } $data = $this->$key; if( \count( $data ) and isset( $data['value'] ) and isset( $data['expir…
Last reply by TSP, -
-
- 0 replies
- 536 views
Hi all, Just a note to say that the October developer's blog is out now. It has a little information about our holiday release schedule and a new developer working with us!
Last reply by Matt, -
-
-
- 1 follower
- 7 replies
- 959 views
4.6 and 4.7 same results. After creating a database and you want to add a widget on the homepage. This widget doesn't show if the topics there are hidden or not like any other widget for the staff members For example Articles is a custom widget using Pages custom blocks widget. Topic 02 at that database is hidden, yet it shows like it's not like other widgets. A question in here there was a little Preview screen on pages plugins why it was removed on version 4.7?
Last reply by Afrodude, -
-
- 1 follower
- 0 replies
- 330 views
I activated the \IPS\CACHING_LOG to debug some issues, but I noticed that I could only open the dialog/modal for the top ones, the cache entries near the bottom I was unable to open the dialog for. Looking into the HTML, the issue seems to be caused by a sudden change in the naming style of the div that's referenced by data-ipsDialog-content. See the attached image: For the working items (that brings up the dialog) the form of the name is #elCachingLog<timestamp>_<id>_menu, but then it suddenly changes to #elCachingLog<timestamp>,<id>_menu (It uses , instead of _ between the timestamp and id)
Last reply by TSP, -
-
- 2 followers
- 7 replies
- 781 views
Hello guys, im working on a plugin on my localhost, and when its in dev mode, when going to the profile I got this error But when I turn off dev mode it is fine, any idea? Thanks --Allan
Last reply by Gary, -
-
-
- 1 follower
- 3 replies
- 619 views
Getting lots of logs for classes I have that extends global classes, such as \Exception, \DateTime, etc. You would have seen this yourself if you hadn't excluded your own code from being scanned 🙂 The class \Braintree\Transaction\AddressDetails extends \Braintree\Transaction\Instance, but the parent class couldn't be loaded. The class \IPS\core\api\GraphQL\Types\ProfileFieldGroupType extends \IPS\core\api\GraphQL\Types\ObjectType, but the parent class couldn't be loaded. A class in an app extends the class \IPS\Node\Api\GraphQL\ObjectType for which no file /home/sites/dev/www/473b3/system/Node/Api/GraphQL/ObjectType/ObjectType.php exists! The method scanner skip…
Last reply by Martin A., -