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
- 1 reply
- 416 views
My understanding is that modifications to the core_groups table is not allowed anymore. Does IPS have a best practice example or guide in what approach we should take now for apps that modified the core_groups table?
Last reply by Daniel F, -
- 1 follower
- 2 replies
- 431 views
I am trying to create an Invoice with a Regular Product Purchase (No Renewal, Lifetime Purchase, No Shipping Required) when someone calls an external php script however, it is failing due to My Script require $_SERVER['DOCUMENT_ROOT'] . '/community/init.php'; \IPS\Session\Front::i(); $member = \IPS\Member::loggedIn(); $package = \IPS\nexus\Package::load( 26 ); $invoice = new \IPS\nexus\Invoice; $invoice->member = \IPS\Member::load( $member->member_id ); $invoice->currency = "USD"; $invoice->title = $package->title; $invoice->total = $package->price(); $item = $package->createItemForCart( $package->price() ); $invoice-&…
Last reply by UrDrive, -
- 1 follower
- 0 replies
- 1.1k views
@Rikki @Ehren Safari 10 and 11 apparently have an issue with the use of rgb() / rgba() in combination with --css-variables within certain CSS properties like border and box-shadow. I found one specific bug in your default theme that you can fix, other than that I just want to make you aware of this, as I had to spend quite a lot of time debugging this myself. After an upgrade from 4.4 I got a number of complaints about how there was now a grey circle covering the reaction button and the number of likes. People reported having the issue on desktop, mobile and tablet. Initially I was unable to reproduce and started to ask for more details. One of the users provid…
Last reply by TSP, -
- 2 followers
- 6 replies
- 657 views
After an upgrade to 4.5 we experienced a significant number of queries against our reputation index table that slowed our performance. A number of users also started reporting that they could no longer view any forums, as they would never load. Please reply to my summary in the bottom of this post. Below you can see both an example of a very slow query and the explain result for that query. As you can see it needs to do a where-statement on more than 13 million rows. SELECT * FROM `ibf_core_reputation_index` AS `core_reputation_index` WHERE rep_class='IPS\\forums\\Topic\\Post' AND ( item_id IN(1427817,1422962,1256153,1427714,1283836,1427156,1326714,11023…
Last reply by bfarber, -
- 5 replies
- 474 views
Hello, I'm trying to add the toggles to built-in custom fields All works fine on the edit profile page But doesn't work on the registration page applications/core/modules/front/system/register.php if( $field->required and ( $values[ $field->name ] === NULL or !isset( $values[ $field->name ] ) ) ) { \IPS\Output::i()->error( 'reg_required_fields', '1C223/5', 403, '' ); } Any reason why you have added that code?
Last reply by bfarber, -
- 15 replies
- 1.2k views
When a widget is removed ,I am going to do some clean up on settings values, I've overridden the delete method , but It doesn't work. class _MyWidget extends \IPS\Widget . . public function delete(){ \IPS\Settings::i()->changeValues(['key'=>'value']); }
Last reply by ReyDev, -
- 1 reply
- 537 views
Hey all, I'd like to add an additional variable to a Form Helper - Ideally I would like achieve this using a plugin only. Example: Making the `IPS\Helpers\Form\Number` to be responsive as the input currently have the `ipsField_short` class hardcoded for some reason making the handling of this field quite difficult. It's completely out of sync with the rest of the form helpers/elements. Approach is with a New Plugin: - Code Hook into `IPS\Helpers\Form\Number` to replacing the `html` method adding `$this->options['class']` to the very end (making it compatible with official version) - Same Code Hook redefining `$defaultOptions` with additi…
Last reply by bfarber, -
- 2 followers
- 7 replies
- 537 views
Hi I have a plugin that uses the IPS\Text\Encrypt class descrypt and encrypt methods to store client login data. After moving to a new server the data can no longer be decrypted. Is is possible to transfer the encryption key to the new server to allow this to continue working? Thanks
Last reply by JReviews, -
- 1 reply
- 378 views
Hi, Does the REST API allow for the creation of members and to assign the new community members to a private club? Thanks!
Last reply by bfarber, -
- 1 follower
- 1 reply
- 411 views
Hi I am looking for some guidance please. I have a production site on 4.4.3 and upgraded a dev site to v4.5.4 and most of the custom plugins I have are not working. I created these a couple of years ago and don't have the original files. These are mostly using hooks. On the dev site when I enable IN_DEV, one plugin complains about the template file not being there. I am assuming that when on IN_DEV it tries to read the actual files instead of getting the info from the database. Since I don't have the original files, is there a way to re-create the files from the production site? Where would i find the template file? Just trying to understand the basics…
Last reply by bfarber, -
- 3 followers
- 2 replies
- 401 views
Hello. I need to allow to post an attribute like data-customanchor="value", what is the correct way to do that? I've tried to play around with setting "Allowed javascript controllers" in editor's settings, but didn't figured out how to use it (also did not found any examples or docs on how to use this setting). Thanks.
Last reply by sobrenome, -
- 2 followers
- 7 replies
- 601 views
Hey, I want to add a field to the registration form, just a normal text field to add to the core_members table and I will use this field on my app, Its the first time Im using hooks for my app. I know I need to hook to this class \IPS\core\modules\front\system\register but I cant make it work. I dont know to which function adds the fields. Please help, Thanks.
Last reply by Adriano Faria, -
- 1 follower
- 0 replies
- 415 views
I discussed this briefly with @Daniel F and @Martin A. a week ago, but I'm creating this topic to make sure it's not forgotten and it can hopefully be added to some todo-list for a future version. I realize there might be good reason for why you've done something like you've done, but in that case I would happy to hear about the reasoning and maybe get some discussion on it. Example 1: Badges This is part of your template code in forums/front/topics/post.phtml: <div class='ipsResponsive_hidePhone ipsComment_badges'> <ul class='ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1'> {{if ! $comment->isFirst…
Last reply by TSP, -
- 9 replies
- 1.4k views
You allows to extend the moderator form (in my case, from FORUMS app) to add new permissions: But you "hardcode" the moderator permissions on templates (for all apps, AFAIK). Example for FORUMS: {{if $topic->canPin() or $topic->canUnpin() or $topic->canFeature() or $topic->canUnfeature() or $topic->canHide() or $topic->canUnhide() or $topic->canMove() or $topic->canLock() or $topic->canUnlock() or $topic->canDelete() or $topic->availableSavedActions() or $topic->canMerge() or $topic->canUnarchive() or \IPS\Member::loggedIn()->modPermission('can_view_moderation_log')}} <li> <a href='#elTopicActions_m…
Last reply by Adriano Faria, -
- 1 reply
- 330 views
Page 2 shows different situations in pagination: Above is right. Below is wrong: there’s no next page.
Last reply by bfarber, -
- 1 follower
- 3 replies
- 741 views
I'm new to this community And I'm developing an app. I have a few questions : 1. Can I use my own custom form inputs or I have to use the default helpers? 2. Can I use other editors such as Summernote or Quill instead of the default editor? 3- Can I use custom style in forms and tables, etc. with custom icons and colors? 4- And instead of using the Upload helper, can I use an input file tag and handle the upload myself, or must I use the default helper(Upload)? Of course I know that all of the above is possible (I've done for test).But I want to know if I have permission to do this or I must use the defined helpers (upload, editor, stack, etc.)?
Last reply by bfarber, -
- 1 follower
- 6 replies
- 480 views
According the docs, the Upload Helper form has a setting to toggle on Stock Photos to uploads, but it doesn't appear to be available when using an Upload image custom theme setting. if ( \IPS\Settings::i()->pixabay_enabled ) { $options['allowStockPhotos'] = TRUE; } I tried using a Code/Other type Theme Setting, but it kept throwing errors about the method not being allowed. How do I get it to show this optional stock photo picker in my image custom field setting? Many thanks!
Last reply by The Old Man, -
- 2 replies
- 492 views
I'm not able to add anything in this template via theme hook. It doesn't matter in which position, it simply won't show what you inserted. Thank you.
Last reply by bfarber, -
- 1 reply
- 310 views
You're missing the $commentClass::$databasePrefix in the topPosters() method: $commentItemField = $commentClass::$databaseColumnMap['item']; so I got the Unknown column 'xxxx' in 'where clause' error. Thank you. Same in popularDays(). I haven't tested it all. Probably there are more.
Last reply by bfarber, -
- 1 follower
- 1 reply
- 367 views
Hello, I created a new application - a very specific Awards system. I want to add an additional field for each poll choice. At the moment, we only have one text field - "Answer 1, Answer 2..." Is it possible to add an additional field - ideally with type "Member"?
Last reply by bfarber, -
- 1 follower
- 11 replies
- 612 views
Hi, I have a custom theme setting that works and I want to use the Condition field to only display if a previous custom (select type) theme setting isn't set to one of its key values, but I can't seem to get the right syntax: <?php if ( theme.my_other_custom_setting == 'value' ) return FALSE; I've tried with double curly brackets too. Also an ELSE returning TRUE. Many thanks.
Last reply by The Old Man, -
- 1 follower
- 0 replies
- 312 views
Is it possible to get this to also apply to Designers Mode? It only seems to work in Dev Mode // Disable ACP session timeout? // Disables the ACP session timeout check. Useful for developing where you may // get logged out of the ACP in between requests while working. // Has no effect if IN_DEV is FALSE 'DEV_DISABLE_ACP_SESSION_TIMEOUT' => FALSE, Many thanks! 😞
Last reply by The Old Man, -
- 1 follower
- 2 replies
- 894 views
Bug: [22-Oct-2020 18:33:05 UTC] PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /public_html/applications/calendar/widgets/upcomingEvents.php on line 153
Last reply by bfarber, -
- 1 follower
- 2 replies
- 465 views
Hello, Is it possible to prevent In_Dev Theme and Designer's Mode ACP sessions from timing out on localhost? I go off to read or check something switch tabs back and I can't save my changes as the session has ended. Many thanks!
Last reply by The Old Man, -
- 1 follower
- 2 replies
- 415 views
My users ask me to make widgets visibility control ( ips widgets topicFeed, imageFeed, etc ). I tried to do it in system/content/widget.php, but, apparently, everything is cached there and even the condition (if member_id = = 1) die; does not work. Any idea or is that impossible?
Last reply by bfarber,