Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,679 topics in this forum
-
- 1 follower
- 2 replies
- 237 views
My furl.json entry is "status_view": { "friendly": "status/{#id}", "real": "app=statusupdates&module=status&controller=view", "verify": "\\IPS\\statusupdates\\Status", "seoPagination": true } but this causes a redirect loop when trying to access /status/1/page/2/ because it doesn't remove the page url correctly when normalising it to check that it matches the canonical version - normally the page part is matched in the {?} seo title variable when finding the furl to normalise with, but there isn't one available here. There must already be logic somewhere which copes with page path params because it does identify the furl template correc…
Last reply by bfarber, -
- 3 replies
- 229 views
Hello, \system\Poll\Poll.php /** * @brief URL to use instead of \IPS\Request::i()->url() */ public $url; $output = $template( $this, ( $this->url ?: \IPS\Request::i()->url() ) ); \applications\core\dev\html\global\global\poll.phtml \applications\core\dev\html\global\global\pollForm.phtml You're use the $url variable for all buttons but not for form action. <form accept-charset='utf-8' class="ipsForm {$class}" action="{$action}" It causes issues E.g. in the Forum Poll Widget you are use the $url. \applications\forums\dev\html\front\widgets\pollFormWidget.phtml <fo…
Last reply by bfarber, -
- 2 followers
- 6 replies
- 433 views
public static function inDevJs( $file, $app=NULL, $location=NULL ) { /* 1: Is this the magic plugin JS */ if ( $app === 'core' and $location === 'plugins' and $file === 'plugins.js' ) { $return = array(); foreach ( new \GlobIterator( \IPS\ROOT_PATH . '/plugins/*/dev/js/*' ) as $file ) { try { $plugin = \IPS\Plugin::getPluginFromPath( $file ); if( $plugin->enabled ) { $url = str_replace( \IPS\ROOT_PATH, rtrim( \IPS\Settings::i()->base_url, '/' ), $file ); $return[] = str_replace( '\\', '/', $url ); } } catch( \OutOfRangeException $e ){} } return $return; } /* 2: Is it a named grouped…
Last reply by bfarber, -
- 2 followers
- 2 replies
- 307 views
Not sure if any these have been fixed in 4.5, but these errors show up in the latest version of IPS with php 7.4 (all 3rd party plugins and apps have been disabled on the local, so i've ruled that out). Whoops\Exception\ErrorException thrown with message "Trying to access array offset on value of type null" Stacktrace: #19 Whoops\Exception\ErrorException in /home/michael/public_html/dogwell/applications/downloads/extensions/core/GroupLimits/Downloads.php:74 #18 Whoops\Run:handleError in /home/michael/public_html/dogwell/applications/downloads/extensions/core/GroupLimits/Downloads.php:74 #17 IPS\downloads\extensions\core\GroupLimits\_Downloads:IPS\downloads\extensions…
Last reply by CodingJungle, -
- 5 replies
- 607 views
Is it possible you can change the revision_date in cms_database_revisions from a varchar(13) to an int? And maybe index it? We are working on a working on a way of showing Wiki edits and this is a bit of a blocker without us changing it manually. Thanks.
Last reply by bfarber, -
- 1 follower
- 1 reply
- 290 views
Hi, I would like to execute some custom PHP after a new user registers. What would be the best way to implement that? It's important that it covers any new kind of signup. So whether they: 1. signup with usual flow 2. signup with social media 3. signup through checkout etc... I have no reservations to editing source code if that would yield the best result. Thanks
Last reply by Daniel F, -
- 4 followers
- 33 replies
- 1.3k views
How this works? Is this automatic? Or do we have to change something in image call in templates? I see you mention a setting to show a blank image in some places. Tks.
Last reply by bfarber, -
applications\core\modules\front\system\register.php line 556 $extension::formatFormValues( $values, $member, $form ); $form is not defined anywhere in `_createMember()`
Last reply by bfarber, -
- 0 replies
- 179 views
It shows files not yet approved: https://invisioncommunity.com/files/categories/ I got a 2D161/2 error which is when I have no permission to view the file. I'm not sure if I already reported this (I guess so)... sorry if it's duplicate. Tks.
Last reply by Adriano Faria, -
- 1 follower
- 2 replies
- 327 views
Hi IPS, Sorry if that question has already been asked a multizillion times – but I couldn't find it. Is the integration of CKEditor 5 something that you have planned? I know it's a big deal, but aren't there some improvements the Suite could use? Or maybe simply benefit from issues correction, as the v4 always gives me some troubles (I often can't move the cursor, for instance, even in the latest IPS). As you're upgrading the UX in IPS 4.5, modernising the interface could be great. The text editor is maybe the most important thing in the Suite – it's the central gateway with which users interact with everything. Thank you!
Last reply by LaCollision, -
- 2 replies
- 417 views
Hello, I got a 2S100/6 error when I submit my content item form. Printing the $e->getMessage() on dispatcher front, I got requested_route_404. Still no idea of what's wrong. Any idea?
Last reply by Adriano Faria, -
- 1 follower
- 2 replies
- 257 views
Hi Invision, Recently, the MultipleRedirect javascript (and CSS) has been modified: it now uses the CSS "content" property to display the MultipleRedirect progress label. However, it's a bit embarrassing, as we now can't display HTML in this progress label. The former method was simply using javascript .html() jQuery method to display this label, and we were able to use HTML. => Why such a change? Isn't it possible to go back to the previous method? Thank you!
Last reply by LaCollision, -
- 3 followers
- 6 replies
- 769 views
Hi guys, I want to use Lato font, but there is no Cyrillic version in Google fonts. Which folder on the server do I need to put the font in? At the moment I have created a folder in uploads/custom/fonts and connected the font via custom.css, but I'm not sure that this is the right solution. Sorry if such a question has already been asked. And sorry for my English 🙂
Last reply by sobrenome, -
- 1 follower
- 2 replies
- 298 views
Are there any technical limitations or reasons why you came to this decision?
Last reply by Hatsu, -
- 2 replies
- 244 views
Is there a way to use something like array_filter in a template of a block? I get an error with "unexpected $return" when using a callback. {{ $published = array_filter($records, function($row){ return ($row->fieldValues()['field_8'] == 0); }) ; }} Actually, I want to use it to filter the database index template. But I guess I will get the same error there, too.
Last reply by Hatsu, -
- 2 replies
- 274 views
I have 2 content item types in my app and one of them I don't need to send it to ModCP -> Deleted Content when a moderator deletes it; I want to delete it right away. Tried to return FALSE in logDelete() in this content item or even don't have a logDelete() method but both doesn't work. How can I do that? Thank you.
Last reply by Adriano Faria, -
- 3 followers
- 16 replies
- 518 views
Custom fields are a great feature but from what I understand they are used by frontend (Customers) when submitting an order. E.g. entering, an address, remark, checkbox etc... It would be useful to have this functionality as well for Admins, in order to create additional product fields. These product fields could then be used to be displayed on product page and during checkout process. It is an essential feature to run an ecommerce shop in Europe. E.g. Both, delivery time and availability of products must be indicated on product page. In addition, on the order review page during checkout, e.g. the main characteristics of the product must be named. Product custom fiel…
Last reply by Ole Martin Andersen, -
- 1 follower
- 1 reply
- 240 views
If I submit a file in Downloads, for example, it creates a topic and the topic is unread. Since topic is created dynamically with the same title/content of the file, it should be marked as read so it doesn't show up in the unread stream for the file submitter. Tks.
Last reply by Stuart Silvester, -
- 1 follower
- 0 replies
- 246 views
Very small change, but it'd be nice if after installing an application, a method was called that redirects back to the application overview page (by default), but which we can override ourselves to replace with a redirect to our applications setup wizard or so on. Simple change but would offer a nice usability improvement for users by letting us take them right to the configuration page for our applications after installing.
Last reply by Makoto, -
- 1 follower
- 3 replies
- 303 views
Whenever writing apps that support reviews or comments, it seems like we're supposed to just copy and paste our own template for what is really the same core logic throughout most of the suite. Specifically, this is what I mean: Every application has their own reviews.phtml template. Is there a specific reason for this? Couldn't this be standardized to just use one base reviews template that third-party applications can then reference instead of having to do the same thing within our own apps? There's a lot of logic in these templates that could break between versions and this likely could mostly be avoided by just maintaining a single base template fo…
Last reply by bfarber, -
- 1 follower
- 6 replies
- 295 views
in mysql 8.0.17 the width attribute for integer data types and zerofill for numeric are ignored. this forces the schema checker to throw an error about difference between the schema and what is on the DB, can you guys place a version check in there that will skip this check for 8.0.17 so we can keep them for older mysql versions? my current dev is 8.0.17 and it would be a pita to have to rollback to an earlier version for something so minor, but it might drive a client who is running the support tool a bit insane with "errors with the database", as schema and db can't be resolved. support tool: DevCenter:
Last reply by CodingJungle, -
- 1 reply
- 204 views
I implemented \IPS\Content\Ratings on my app but the data added to core_ratings table isn't removed on app uninstall. Tks.
Last reply by bfarber, -
- 2 replies
- 645 views
I am trying to get the group name from the group id but everything I have tried has not worked. I am doing this in the html templates to display all secondary usergroups but I want to exclude some groups from displaying like the Adminitrators and Moderators group
Last reply by Walrusking, -
- 1 follower
- 4 replies
- 238 views
i know they aren't popular with a lot of dev's, but i absolutely love them. i have a few marketplace apps and a lot of custom apps that use them, but there are somethings that don't work with them well. clubs: if you have a node/subnode setup, with the items on the subnode not the parent node, clubs don't work. requires a bit of hookfu to get it to work. Copying: for what ever reason when copying a parent node in the ACP on a node controller, if the children are subnodes, it wont clone them, it wont even see it has any cause the hasChildren() check for the children check has the 'subnode' param set to false. there are other issues, but they might …
Last reply by CodingJungle, -
- 1 follower
- 5 replies
- 325 views
Hi, I wonder whether it would be possible from IPS to share their Blog Front Index template (https://invisioncommunity.com/news), so we can contribute together as clients and bring similar blog page created within Pages to the community. @bfarber was kind to share a piece of guides section there, would be nice to get the front page blog template too. The template could be provided AS-IS, we can adjust it for general use. Thanks.
Last reply by PatrickRQ,