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
- 0 replies
- 317 views
If you have Club Forums on the main forum index in Grid View, they are all stacked vertically with no margin spacing between them. (Default IPS Theme) Normal Grid View Club Forums that are shown at the bottom of the page:
Last reply by The Old Man, -
- 1 follower
- 9 replies
- 1.1k views
Hello I am trying to insert a Regular Expression in a text filed that will check the value inserted by user and will validate the following: Only numbers allowed only 1 dot allowed minimum value is 1.4 Can you please help me with the expression? Many thanks 🙏
Last reply by LiveG, -
- 1 follower
- 2 replies
- 443 views
I use a patchwork list in the listing template for the database. It works. The only issue I have is when I use table sorting the patchwork items disappear. I have to reload the page to see them. See the video below: screencast-localhost-2022.04.17-12_22_57.webm The template for the database listing I use is attached. Is it an issue with sorting and ipsPathwork UI? How can I solve it? patchwork_listing.xml
Last reply by Sonya*, -
- 2 followers
- 5 replies
- 418 views
I accidentally upgraded while in Designer Mode (localhost). There was no warning like for IN_DEV. As a result, I have lost some templates customizations. They were on disk, but not in the database. I know, that I should not upgrade in Designer Mode 🙂 But I wish the software would warn me about it in case I am not aware Designer Mode is still on. 🙂
Last reply by teraßyte, -
- 2 followers
- 7 replies
- 708 views
Hi, I want to change the title and text of the output modal of the confirmedDelete() method . I used this structrue but doesn't work \IPS\Request::i()->confirmedDelete( 'new_title', 'new_text' ); \\Doesn't work
Last reply by ReyDev, -
- 1 follower
- 0 replies
- 332 views
While the board is IN_DEV mode clicking the ignore url in hovercards throws an exception: Example URL: https://localhost/ignore/?id=4&csrfKey=XXX === 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\_Output:sendOutput in /init.php:913 #5 IPS\toolbox_hook_Output:sendOutput in /system/Dispatcher/Dispatcher.php:173 #4 IPS\_Di…
Last reply by teraßyte, -
- 2 followers
- 9 replies
- 660 views
I try to display flag icons in Page templates. E. g. for German <i class="ipsFlag ipsFlag-de"></i> It does not work and displays nothing. The reason is, that I do have only one language installed. In system/Dispatcher/Standard.php you do not load a CSS in this case: if ( \count( \IPS\Lang::languages() ) > 1 ) { \IPS\Output::i()->cssFiles = array_merge( \IPS\Output::i()->cssFiles, \IPS\Theme::i()->css( 'flags.css', 'core', 'global' ) ); } What is the reason for not loading this CSS on the projects with only one language installed?
Last reply by Sonya*, -
- 1 follower
- 0 replies
- 403 views
Hi, I noticed via GTMetrix/Pagespeed that my Club Icons waaay down the page of my forum are not being deferred/lazy loaded when they could/should be. Forums > Front > Index > forumGridItem (lines 33 and 35) {{if $club}} <img src="{{if $club->profile_photo}}{file="$club->profile_photo" extension="core_Clubs"}{{else}}{resource="default_club.png" app="core" location="global"}{{endif}}" alt='' class='cForumGrid__icon-image'> {{elseif $forum->icon}} <img src="{file="$forum->icon" extension="forums_Icons"}" alt='' class='cForumGrid__icon-image cForumGrid__icon--custom'> {{else}} Fixed by adding the lazy …
Last reply by The Old Man, -
- 2 replies
- 880 views
It should be a language bit so we can properly translate it in our packages.
Last reply by Randy Calvert, -
- 1 follower
- 0 replies
- 276 views
This code below is from applications/nexus/sources/Package/Group.php (lines 348-379): //<?php /** * [ActiveRecord] Duplicate * * @return void */ public function __clone() { if ( $this->skipCloneDuplication === TRUE ) { return; } $oldImage = $this->image; parent::__clone(); if ( $oldImage ) { try { $icon = \IPS\File::get( 'nexus_PackageGroups', $oldImage ); $newIcon = \IPS\File::create( 'nexus_PackageGroups', $icon->originalFilename, $icon->contents() ); $this->image = (string) $newIcon; } catch ( \Exception $e ) { $this->pg_image = NULL; } $this->save(); } } The na…
Last reply by teraßyte, -
- 1 follower
- 1 reply
- 590 views
I've been using the PWA on my iPhone and the number 1 usability issue is the lack of the browser's Back/Forward buttons. I went to your competition to see how this issue was addressed by their developers and found that they implement Back/Forward buttons in Javascript when the user is using the PWA on iOS. Go to https://try.discourse.org on your iOS device and Add to Home Screen to check out their solution to this problem. Discourse is open source so you can even look at how they chose to implement this. The Back/Forward buttons are hidden until you scroll the page (which is a nice touch). If you fix this one issue, I will encourage my users to use the PWA.…
Last reply by KT Walrus, -
- 1 follower
- 3 replies
- 728 views
screencast-2022.04.02-21_10_22.webm
Last reply by Stuart Silvester, -
- 1 follower
- 0 replies
- 333 views
Just noticed this while I was updating the file description after I submitted the new version for this file: The file has 7 screenshots uploaded but editing the file I get 14 screenshots listed instead (I uploaded 7 new images updated with the 4.6 theme). It should show only the ones for the currently approved version.
Last reply by teraßyte, -
- 1 follower
- 1 reply
- 381 views
This bug has been around for a while but is still broken in 4.6.11. Using an iPad, any OS version, you can't select a dark theme because the menu won't stay open to display the light and dark options. There is a workaround. You can hold down on the Theme option, the pop up context menu will open... Then tap anywhere else to just cancel it, and the theme menu stays open, allowing you to select auto, light or dark...
Last reply by Randy Calvert, -
-
- 3 followers
- 7 replies
- 883 views
I'm trying to add additional logic to my site to better track logged in users vs non logged in user activity. If you set a gtag with the user_id name, it will tie that session to a specific account. If I add the Analytics code to the Global Template in a theme, I can use something like: <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXXX-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('set', {'user_id': '{member="name"}'}); gtag('js', new Date()); gtag('config', 'UA-XXXXXXXXXX-1'); It wo…
Last reply by Randy Calvert, -
-
Here's the steps to reproduce the issue: 1) Create a simple form with the following code: $form = new \IPS\Helpers\Form; $form->add( new \IPS\Helpers\Form\CheckboxSet( 'my_chekboxset_field', ( \IPS\Settings::i()->my_chekboxset_field ? ( \IPS\Settings::i()->my_chekboxset_field == '*' ? '*' : explode( ',', \IPS\Settings::i()->my_chekboxset_field ) ) : '' ), FALSE, array( 'options' => \IPS\Member\Group::groups(), 'multiple' => TRUE, 'parse' => 'normal', 'unlimited' => '*', 'unlimitedLang' => 'all_groups', 'impliedUnlimited' => FALSE ) ) ); 2) Now disable the setting (or Customize and deselect all options) and save the form; this will …
Last reply by teraßyte, -
- 1 follower
- 2 replies
- 355 views
This might not be a bug per se, but something that could be clarified via some comments in the code for addHeader maybe? I'm working on an app which would allow an entire section to be toggled on or off. Part of this involves hiding a section header (via a YesNo for example) by its assigned ID. When I tried doing: $form = new \IPS\Helpers\Form; $form->add(new \IPS\Helpers\Form\YesNo('yesno_toggle', FALSE, FALSE, array('togglesOn' => array('my_header', 'text_field',)), NULL, NULL, NULL, 'yesno_toggle')); $form->addHeader('my_header',NULL,NULL,'my_header'); $form->add( new \IPS\Helpers\Form\Text( 'text_field', NU…
Last reply by IPCommerceFan, -
- 1 follower
- 0 replies
- 649 views
This form helper doesn't seem to work with unlimitedToggleOn, since it is a child class of IPS\Helpers\Form\Select, setting up the unlimitedToggleOn option like i would for a Select doesn't seem to have any effect. the problem seems to be in the template of of cbs, i add this the unlimited checkbox template to test things out: {{if \count( $unlimitedToggles )}}data-control="toggle" {{if $toggleOn === FALSE}}data-togglesOff{{else}}data-togglesOn{{endif}}="{expression="implode( ',', $unlimitedToggles )"}" aria-controls="{expression="implode( ',', $unlimitedToggles )"}"{{endif}} it fixed the issue.
Last reply by CodingJungle, -
- 1 follower
- 0 replies
- 624 views
this isn't really a bug, but a suggestion. add in the ability to pass a join. I have greatly ignored this form helper in my apps mostly cause of this reason. there are times where being able to add a join is needed for returned results (not to display, but to validate them. like a use case for me, to check to see if item exist in a mapped table to see if it is being used by another app).
Last reply by CodingJungle, -
- 1 follower
- 0 replies
- 517 views
In Pages, we can create a field with a type Number. The field is created as VARCHAR in MySQL. This does not allow us to sort by this field with correct alphanumeric order. The sorting by this field results in: 1 10 2 42 9 You have to cast the values if ordered by this field SELECT * FROM table_name ORDER BY CAST(field_name as SIGNED INTEGER) ASC EDIT: I mean the sorting in record feed block or getItemsWithPermission.
Last reply by Sonya*, -
- 1 follower
- 2 replies
- 738 views
Hi, CKEditor4 is now at 4.18.0 recently released March 16th 2022. It includes some security fixes. https://ckeditor.com/blog/ckeditor-4.18.0-browser-bugfix-and-security-patches/ IPS 4.6.11 requires editor skins be compatible with 4.17.1. 4.17.2 was released 9th Feb 2022. Also, please can you confirm when/if you will be switching to Moono Lisa, the new default skin since 4.16? Many thanks!
Last reply by The Old Man, -
Hi all, Is there a list of companies that code on Invision somewhere? I need some work done on my forum. Thank you! Larkin NM. Found it! https://invisioncommunity.com/third-party/providers/
Last reply by Larkin, -
- 1 follower
- 0 replies
- 741 views
Edit a disabled Achievement Rule (example: app is disabled or requires a specific setting) and the WHEN field at the very top is NOT filled with the original action but with the first option in the select field. Either don't allow editing disabled rules, or still load the disabled actions when editing.
Last reply by teraßyte, -
Setup a new achievement with the following options: Reaction is given Add a location condition It is a Topic Add a forum filter Remove the "It is a Topic" location condition Click again "Add a location condition" The "Add a forum filter" option is now gone. Changing the location option does nothing to fix it either. Deleting first the "Add a forum filter" condition and only then the location condition still works. The issue only appears when you delete the location condition without removing the filter condition. You can reproduce with any any content item that adds a filter, not just topics.
Last reply by teraßyte, -
- 2 followers
- 2 replies
- 569 views
I am trying to generate a shorter preview text for a Commerce package in a plugin template, but I can’t figure it out. Doing a strip_tags on $item->description has no effect, since the product description is a translatable item. And $item->truncated(), which I see being used in some theme templates doesn’t seem to work from the plugin. (Call to undefined method IPS\nexus\Package\Product::truncated()) Anyone got any ideas?
Last reply by Adriano Faria,