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
-
- 1 follower
- 5 replies
- 820 views
4.7.2 Beta 3 { "3": { "method": "dropTable", "params": [ "core_members_features" ] }, "4": { "method": "dropTable", "params": [ "core_members_features_seen" ] } } During the update Error upgrade_error (1051) Unknown table 'core_members_features_seen': dropTable ["core_members_features_seen"] After updating trying to delete user
Last reply by SeNioR-, -
- 1 follower
- 0 replies
- 714 views
Clicking on Browse Categories in the Downloads (Marketplace) area the category icons are always shown as read despite me having several files marked as new/edited in them: https://invisioncommunity.com/files/categories/
Last reply by teraßyte, -
- 1 follower
- 0 replies
- 488 views
If you rename topic's title to something new and then you decide to merge it with another topic, the action of changing the title shouldn't be merged to the other one because the other topic has a different title.
Last reply by Afrodude, -
- 1 follower
- 2 replies
- 604 views
More of a curiosity, but why are you adding the SVG images directly in templates (in 2 different templates even; which makes it harder to keep updated) instead of adding the SVG images as resource files and using the {resources=""} tag instead? 🤨 <div class='cEvents__sidebarOnlineLogo'> <span>{lang="powered_by"}</span> {{if $event->online_type === "zoom"}} <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 224"><path d="M814.1856 67.3887c3.8225 6.595 5.073 14.0983 5.486 22.5337l.5427 11.2433v78.62l.5544 11.2551c1.109 18.3809 14.6646 31.9719 33.187 33.128l11.1961.…
Last reply by teraßyte, -
- 1 follower
- 3 replies
- 456 views
Hello, anyone has an idea what it might be? I'm trying upgrade board from 4.4 to 4.7, all files uploaded, PHP 8 is on and that error on admin/upgrade occured:
Last reply by Randy Calvert, -
- 3 replies
- 749 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
- 811 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
- 957 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
- 720 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
- 336 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
- 387 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
- 538 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
- 867 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
- 662 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, -
- 5 replies
- 569 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
- 405 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
- 755 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
- 577 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
- 886 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
- 652 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
- 357 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
- 573 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
- 460 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
- 597 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
- 360 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,