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 reply
- 639 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
- 846 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
- 509 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
- 1.2k 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
- 472 views
Tested on a fresh install, for some reason 'app' is being replaced with the domain
Last reply by Sly_Ripper, -
-
-
- 2 followers
- 2 replies
- 2.7k 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
- 687 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
- 1.2k 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
- 579 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
- 565 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
- 1.4k 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, -
-
-
- 1 follower
- 1 reply
- 592 views
Not a huge issue but the menu isn't active when you're browsing any page of an app development: Plugins is active when you're on a plugin development:
Last reply by Marc, -
-
-
- 1 follower
- 6 replies
- 761 views
Hi. Community question. Is ips.utils.cookie.get also not working for you? I enter a value and after refreshing the page it shows me "false" when I try to fetch. I have the latest version of IPS 4.7.11 with patches installed.
Last reply by psychol., -
-
-
- 3 replies
- 731 views
Is it possible to get the current forum view method (table, fluid etc.) in code? I notice that the URL to set the method contains these parameters so was hopeful they could be easily retrieved somehow in JS: do=setMethod&method=fluid
Last reply by Nathan Explosion, -
-
-
- 1 follower
- 5 replies
- 854 views
I noticed that this ips.utils.cookie.set('cookieName', value, true); isn't working anymore on the last version, why? I'm working on a theme and it has a customization panel for background changer and color changer, the script that I'm using rn works just fine on 4.7.6 and so on, but on 4.7.11 the latest version it doesn't work, I need some answers please ASAP.
Last reply by Stuart Silvester, -
-
- 0 replies
- 607 views
This should also be listed in Release Notes -> Changes affecting third-party developers and designers. It would avoid us to look for in core files when our resources stop working. Thank you.
Last reply by Adriano Faria, -
-
- 1 follower
- 10 replies
- 958 views
Hello there, I already contacted support over this but they told me I should post it here. Creating a webhook with the following triggers: member_create and member_registration_complete will return incomplete data. Happens with both json or x-www-form: { "slug": "23-webhook-listener", "token": "dVA0Oa1", "{\"id\":null,\"name\":\"Invitado_danfelbm12345\",\"title\":null,\"timeZone\":\"UTC\",\"formattedName\":\"Invitado_danfelbm12345\",\"primaryGroup\":{\"id\":9,\"name\":\"Miembros\",\"formattedName\":\"Miembros\"},\"secondaryGroups\":": [ "" ] } another attempt: { "slug": "23-webhook-listener", "token": "dVA0Oa1", "{\"id\":1…
Last reply by Daniel F, -
-
My apologies, I'm not sure where best to post this. One of the ad companies we use informed me recently that when someone clicks on the page number from the bread crumbs, even though a new page of content loads - it doesn't trigger a page view/refresh - and the ads that require a new page don't load. So I looked into the Google tag integration in the AdminCP and I see where it mentions something about adding code there to trigger a "page view" when loading dynamic content. I spent some time on the Google Tag page...and I'm stumped. Is there a setting I'm overlooking? Why would clicking the breadcrumb navigation not trigger a page view/refresh? I've confirmed this to …
Last reply by AlexWebsites, -
-
- 1 follower
- 8 replies
- 604 views
Hi I just updated my local dev sites and noticed that whether using my own themes or the default IPS theme, none of the Table/Grid/Fluid display mode buttons are working. I cleared the cache and logged out and back in again, but still not working.
Last reply by Stuart Silvester, -
-
data-ipsLightbox-group='g{$indexData['index_id']}' Elasticsearch never returns that in the $indexItem array. IN_DEV this will Whoops with missing array element when using Streams or Search. Live it functions but image groupings are broken. Quoting @Martin A. "meat mixed with stats" (lamb chops with hard drive metrics to be precise) The images will display correctly in the snippet, but when you lightbox them out and navigate through them, with a data-lightboxgroup="g" value instead of "g12345" its grabbing all the images on the page and you can navigate through them all. Apparently, (@Martin A. looked here as we troubleshot this just now), MySQL is c…
Last reply by Marc, -
-
- 2 followers
- 4 replies
- 948 views
Hi Team, I think there is a bug in the Commerce app for the Package->upgradeDowngrade() method. When upgrading or downgrading, you check if the new Package has a longer initial term, and then modify the current $purchase->expire date accordingly. In \IPS\nexus\Package, in upgradeDowngrade(), at line 3533: /* Initial Term, apply the difference if the new package has a longer initial term */ if( $term and $newPackage->initial_term ) { $initial = new \DateInterval( "P{$newPackage->initial_term}" ); /* If we're still in the initial period of the new package */ $diff = \IPS\DateTime::create()->diff( $purchase->start->add( …
Last reply by Marc, -
-
-
- 2 followers
- 12 replies
- 1.6k views
I come again with struggles using the API. I can use the API to post Topics and a few other things, but when it comes to POSTing... I get pretty aggravated because on one app we have to send data one way, but in another app, we have to send the exact same file in a different form, this makes things VERY complicated! I apologize, as I usually wait until I exhausted all my resources before coming here and asking for help, and by this point I realize im just angry, and I try not to show it, but I still vent a little. The issue... So I am making an App for my website, which hosts video games and Mods for games. I made a "Uploader" tool that can be installed in a game…
Last reply by Marc, -
-
- 1 follower
- 1 reply
- 617 views
Whenever someone send a PM with attached and embedded image, the popup window notification display like this on this site.
Last reply by ZakRhyno, -
- 1 follower
- 6 replies
- 1k views
Hi all, has anyone got any experience with ai moderation or chat gpt something like that? Is this even possible, can anyone develop such a system. Is this planned on the invision feture list, consider it sort of a semi automated moderation. Thoughts?
Last reply by Mark Round, -
- 1 follower
- 1 reply
- 580 views
Hello, issue is as old as my story with IPS, starting with IPB 3.3. I was customizing my templates and decided to post the the issue again for your attention. Last time posted it like 6-7 years ago. Downloads > Front > View > View template <li class='ipsToolList_primaryAction'> {{if !$file->isPurchasable( FALSE )}} <span class="ipsType_light ipsType_blendLinks ipsResponsive_hidePhone ipsResponsive_inline"><i class="fa fa-info-circle"></i> {lang="purchasing_disabled"}</span> {{else}} <a href='{{if !$file->container()->message('disclaimer') OR !\in_array( $file->container()…
Last reply by PatrickRQ,