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
-
- 8 replies
- 474 views
Are their any guides or tutorials on use of the Links Directory? I'm fairly new to the IPS system so everything is a mystery to me. I'm not sure how to: 1) Add the Links Directory to my site 2) Add links to the page As an alternative to the links directory, I'm wondering if there is a "news" plugin of some kind that I could use to link to news stories relevant to my site's subject (college sports recruiting). And if there was such a plugin, I probably wouldn't know how to install it or place it on the site, lol. Any guidance would be greatly appreciated! - Pat
Last reply by Admin 1, -
- 3 followers
- 17 replies
- 768 views
It seems that I have a lot of duplicate translation strings in my database. The following queries on the database with two languages returns 815 entries. SELECT word_key, COUNT(word_key) FROM `core_sys_lang_words` GROUP BY word_key HAVING (COUNT(word_key) != 2) Some strings exist only in one language (lang_id = 2), another are doubled, tripled and even more like "by": 4 I assume that this has happened because the translation has been started some versions ago. Unused strings have been never deleted and have been imported again and again while uploading a language file. This causes issues with translation, as strings with word_keys that are used multiple t…
Last reply by bfarber, -
- 2 followers
- 6 replies
- 1.7k views
Hi guys! I'm currently making a GameMode for one of GTA5 multiplayer platform (RageMP) And i'm trying to make an authorization with the same credentials as on IPS forum. It means that all credentials must be validated & checked on the servers side witch means it must be a C# method of some sort. Is there anyway to create that validation? Or is there other way around it? Thanks in advance!
Last reply by bfarber, -
- 2 replies
- 463 views
Hello, I'm trying to get a CMS record in a custom PHP script using: \IPS\cms\Records::loadFromSlug($id, false); But I am getting the following error: The problem seems to be when this gets executed: $this->container()->forum_override I don't know what the issue could be. Any ideas?
Last reply by Tom S., -
- 2 replies
- 499 views
Hello, I'm trying to create an extension following this guide: It says: But I don't fully understand it (maybe providing a quick example of setting one up might help 🙂 ). Am I suppose to create an extension as part of a plugin? And if so does that mean I have to create it as a hook? But I thought those are different so I'm confused. I want to create an extension for MemberSync so that I can run custom code when a user is created/deleted etc. Any guidance would be appreciated, thanks!
Last reply by Miss_B, -
- 2 followers
- 2 replies
- 457 views
\IPS\Lang : 654 if ( \in_array( $k, array_keys( $this->words ) ) ) Maybe it is better to use \array_key_exists? if ( \array_key_exists( $k, $this->words ) ) I get this error when using CheckboxSet with multiple = true and member groups as options:
Last reply by Ilya Hoilik, -
- 1 follower
- 9 replies
- 803 views
it's been awhile @bfarber, and i don't want you thinking i've forgotten about you, so i went out of my way to get you something!
Last reply by Martin A., -
- 1 follower
- 2 replies
- 337 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
- 326 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
- 586 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
- 404 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
- 866 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
- 375 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.6k 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
- 274 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
- 649 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
- 553 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
- 385 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
- 1.2k 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
- 399 views
Are there any technical limitations or reasons why you came to this decision?
Last reply by Hatsu, -
- 2 replies
- 343 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
- 406 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
- 653 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
- 355 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,