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
-
- 2 replies
- 366 views
Could we have the url to the licensed site for marketplace purchases either via the contributor center or via the API? We have no way of knowing which sites carry licensed copies of our software and which don't.
Last reply by Kevin Carwile, -
- 1 follower
- 5 replies
- 426 views
Hello, Add condition for photo checkbox. I have login handler without status/photo/etc. Please see my report
Last reply by Mark, -
- 1 follower
- 1 reply
- 426 views
So I utilize profile fields in one instance in a template hook and one instance in a widget. For the template hook I've created a select setting in the setting area for my app which lists all the profile fields of type URL. On the frontend this creates a link (if that URL profile field is set for the member) beneath their content with that target. For the widget (which is a list of members) I intend to do pretty much the same. I've created a widget setting that also lists all profile fields of type URL. If that widget setting is set, the idea is that instead of having the member name link go to their profile, it will go to the target of the profile field URL. …
Last reply by Mark, -
- 4 replies
- 410 views
Hi there. It was requested twice before Couldn't find the other topic but I participated on it. We need to add fields to the EDIT PROFILE form. We can't do this today: if ( \IPS\Request::i()->isAjax() ) { \IPS\Output::i()->output = $form->customTemplate( array( call_user_func_array( array( \IPS\Theme::i(), 'getTemplate' ), array( 'forms', 'core' ) ), 'popupTemplate' ) ); } else { \IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'forms', 'core' )->editContentForm( \IPS\Member::loggedIn()->language()->addToStack( 'profile_edit' ), $form ); } The only way out today is add a new tab on ACCOUNT SETTINGS, …
Last reply by Adriano Faria, -
- 2 replies
- 658 views
4.1.4 seems to include some changes to how grouping works with Db tables for strict mode, with the side effect that we can use multiple groupBy columns now. Awesome! But the row count doesn't account for grouping at all. Line 270 in \IPS\Helpers\Table\Db: <?php /* Count results (for pagination) */ $count = \IPS\Db::i()->select( 'count(*)', $this->table, $where ); That means with my data set, $count returns the total number of records (235, 10 pages), but the grouped table only has 19 rows. 9 empty pages. (Strangely, with only one group column, I seem to have the opposite problem--only one page, regardless of the grouped number of results.) Fi…
Last reply by Ryan H., -
- 1 follower
- 4 replies
- 752 views
Hello, how it works on your server? I'm living in Poland, tested it with ".de" mail on mine account and I was recognized as I'm from Germany. Maybe little show off yout backstage how it exactly recognizing the users? Thanks in advance.
Last reply by bfarber, -
- 3 replies
- 414 views
lang.php creates new translatable language strings in your language pack, but what does jslang.php actually do? Does it create a new language strings like lang.php or not? Can these two files have the same strings or not?
Last reply by teraßyte, -
- 2 replies
- 390 views
Hello, applications/core/modules/admin/membersettings/spam.php 'options' => array( 'none' => 'captcha_type_none', 'recaptcha2' => 'captcha_type_recaptcha2', 'recaptcha' => 'captcha_type_recaptcha', 'keycaptcha' => 'captcha_type_keycaptcha' ),
Last reply by newbie LAC, -
- 1 follower
- 1 reply
- 364 views
Hello, guys! Can you help me please? I tried to get access to $transaction->method->settings and to my custom $transaction->method->_sort() from /interface/gateways/mycustom.php. But I didn't do this. My script terminates without any errors and warnings. I tried to var_dump( $transaction ) and I haven't seen $transaction->method at all. What am I missed? The problematic code: $settings = json_decode( $transaction->method->settings, TRUE ); The var_dump: object(IPS\nexus\Transaction)#3 (5) { ["_url":protected]=> NULL ["_data":protected]=> array(16) { ["id"]=> int(321) ["member"]=> int(1) ["in…
Last reply by Mark, -
- 5 replies
- 674 views
Could we get a flag on this method that will allow it to return fields configured with "Member can see?" set to no? Right now, if I want to use such a field programmatically I am *forced* to issue an additional query, the field's value is not obtainable with this method, nor any method in \IPS\Member...
Last reply by Marcher Technologies, -
- 1 follower
- 6 replies
- 476 views
This isn't exactly a complaint, just more of a "why" question. I'm wondering why paginated responses don't return header data only instead of the full object. As someone who has worked with a fairly large number of APIs from various sources (and has written quite a few as well), I can say from experience that most of the time when you make an API call for a list of items, you aren't going to use ALL the information for ALL of the items. Most of the time you only need some basic properties and the rest you would retrieve by making an API call for the individual item. For example, if I'm calling /nexus/invoices, I get back the FULL INVOICE OBJECT for EACH RECORD. …
Last reply by Mark, -
- 1 follower
- 2 replies
- 312 views
I have some settings for certain modules where each member will be able to define their own. In IPS 3.4 I usually saved these in members_cache, but that's no longer used in IPS 4. I'm hesitant to add my own database columns to the members table, since it eventually might become quite a lot of them. So what's your suggested approach for this? Should I create my own settings table? And what about member settings I wish to be more globally available? (And not just in a certain area) I would love your input on the best practice on this.
Last reply by TSP, -
- 1 follower
- 5 replies
- 448 views
As per title. I overloaded the \IPS\Content class to always parse some things inside the content for items, comments, reviews and so on but because you are not always using the content() or mapped('content') functions I cannot make it a global replacement. Unless I add a single exception for each application... Here are some examples: Downloads > front > view > view.phtml template: you use {$file->desc|raw}, which bypasses everything, instead of calling properly {$file->content()|raw}. Calendar > front > view > view.phtml template: you use {$event->content|raw}, which bypasses everything, instead of calling properly {$eve…
Last reply by teraßyte, -
- 1 follower
- 1 reply
- 352 views
I want to retrieve the current login_type for the logged in member on pages with the recently browsing-widget, so I thought I could maybe retrieve it from \IPS\Session::i()->sessionData. But that array is protected, and I don't see a method that provides access to it either? So it seems I would have to do an extra query to the sessions-table for the member_id in order for me to retrieve their login_type. Do I really have to add an extra database query to achieve this, or is there some way to retrieve these session values that the system must've already worked out internally for the logged in member anyway? If not, could you maybe add it? Actually, I foun…
Last reply by Mark, -
- 1 follower
- 3 replies
- 469 views
So with the update to version 4.1.6, the decision was made to make breaking changes to function signatures that cannot be fixed with any coding wizardry or exception handling. Any thoughts for how you want app developers to deal with this? One Example 4.1.5.2 and prior /** * Hide * * @param \IPS\Member|NULL $member The member doing the action (NULL for currently logged in member) * @param string $reason Reason * @return void */ public function hide( \IPS\Member $member=NULL, $reason=NULL ) 4.1.6 /** * Hide * * @param \IPS\Member|NULL|FALSE $member The member doing the action (NULL for currently logged in member, FALSE for …
Last reply by Mark, -
- 2 followers
- 17 replies
- 662 views
HI there. I have a plugin that mimics the Promote to Article feature from IP.Content. It works fine but someone requested to article author to be the same user who made the post or give the option to the user choose. So I added a select on article posting screen listing the post author and the loggedIn member: The author saved is always the loggedIn member. I've already tried: /** * Process created object AFTER the object has been created * * @param \IPS\Content\Comment|NULL $comment The first comment * @param array $values Values from form * @return void */ protected function processBeforeCreate( $values ) { if ( isset( \IPS\Requ…
Last reply by Adriano Faria, -
- 1 follower
- 5 replies
- 427 views
I'm making a plugin, main logic of which is in the Javascript controller (dev/js/myscript.js). Is there any easy way to use language strings in this external Javascript file? Now I have to manually assign needed strings to Javascript variables in the template like this: var today = {lang="today"}; But I need a lot of language strings, and it's becoming too hard to use this approach. The same question with the other template plugins like {setting="$settingKey"}.
Last reply by bfarber, -
- 2 replies
- 359 views
I put simple JS code into a hook: <script type='text/javascript'> var a = "<div>"; var b = "</div>"; </script> But in the page it renders like: <script type="text/javascript"> var a = "<div>"; var b = ""; </script> Why?
Last reply by motomac, -
- 1 reply
- 358 views
When setting $joinContainer = TRUE and passing in some $joins that require the container to \IPS\Content\Comment::getItemsWithPermission(), the query fails because the join on the container is added to the END of the incoming $joins instead of to the beginning. It results in the following: I've reported the bug, the fix, the reason why its a bug, and about 5 different support ticket numbers (those are just ones that I know of) showing the bug in action. I'm really trying to work with you here and be patient. I understand there is a lot going on and things will get fixed in due time. My frustration is that IPS support technicians continue to get a signifi…
Last reply by Mark, -
- 1 follower
- 4 replies
- 332 views
Hi ,when creating an article/record using pages when i upload an image to display as the article image it shrinks it down to 200px.Is there a setting/template somewhere that i can edit to increase this size.The attachment upload size does not affect this.Any help is appreciated.
Last reply by Mark Round, -
- 2 replies
- 391 views
As per title, could you update the icon library to the latest 4.5.0 version? I wanted to use the new hashtag icon and then realized that the suite still uses the 4.4.0 version. I checked on 4.1.5.1 and it's still 4.4.0 on it too.
Last reply by teraßyte, -
- 2 replies
- 379 views
Downloading themes from acp sometimes doesnt complete for me,it can take up to ten minutes or more sometimes,no matter what size the xml is.Im not sure if there is a setting i can change in my file storage that can fix this any ideas? I really need a fix for this as it is halting my progress a lot.
Last reply by Mark Round, -
- 1 follower
- 1 reply
- 421 views
Just wanted to say thank you for this. I just upgraded one of my dev environments to 4.1.4 and tried it out. Works like a charm, and so much less of a headache than previous versions. Thank you!
Last reply by Mark, -
- 1 follower
- 7 replies
- 461 views
In the ACP, when we go to System -> Plugins. Can we get a "Download" option in the dropdown menu, like we have for applications? My environment is painfully slow in dev mode, so saving even one extra click is appreciated. Thanks.
Last reply by HeadStand, -
- 1 follower
- 2 replies
- 331 views
I may have other places where I would wish for a table and form object to be returned, rather than it just being sent straight to a template or returned as a string. But here is a concrete example: Some background: Since upgrading a community from 3.4 to 4.0, moderators and administrators have several times told me they need the ability to view the full post directly from the IP-tools page (/modcp/ip-tools/&ip=%3A%3A1&area=core_Content_forums_Topic_Post). Having a link to the post on the topic title is not enough and makes it incredibly cumbersome for them to view the post content that has been posted from the IP they wish to review. It's currently one of the…
Last reply by TSP,