Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,693 topics in this forum
-
- 1 follower
- 7 replies
- 778 views
Does anyone know how I could hook into the 'Approve' button in Transactions? So when I click approve, it would also send a request to my payment api to approve it if set in review. Was hoping there would be an alternative to public function refund( \IPS\nexus\Transaction $transaction, $amount = NULL ) but for approval
Last reply by IPCommerceFan, -
- 2 replies
- 341 views
I am trying to use the /core/search Endpoint and want to search for things starting after a certain date. To do this, I think I should be using the start_after parameter. But the type of data passed in the documentation is just documented as string which is not very helpful at all. What format is this expecting?
Last reply by IPCommerceFan, -
- 4 replies
- 744 views
Is there any endpoint in the REST API to get clubs for a specific members? The other way around is mighty inefficient with lots of members per club…
Last reply by Roboko, -
- 3 replies
- 598 views
I own a license for IPS and have it installed on a Production Server. I wanted to try my hand at some plugin development, so I want to install a copy of IPS locally in development mode. So I installed XAMPP on my computer and put in a copy of IPS, added the development tools files and added my constants.php defining IN_DEV true. The installer requests my license key, which I enter, but then tells me an installation is already activated. I think it's a reasonable expectation that I should not need to purchase another license just to do some plugin development - Is there something I am missing here?
Last reply by Roboko, -
- 1 follower
- 1 reply
- 294 views
When viewing a nexus invoice on the front end for a physical product, Pending shipping items show the nexus pfield ID instead of the name: If we change this in nexus -> front -> clients -> invoice (line 220): <span class="ipsType_light"> {{foreach $item['details'] as $k => $v}} {lang="$k"}: {$v}<br> {{endforeach}} </span> To this: <span class="ipsType_light"> {{foreach $item['details'] as $k => $v}} {lang="nexus_pfield_$k"}: {$v}<br><br> {{endforeach}} </span> We get this: Thanks!
Last reply by Stuart Silvester, -
- 3 followers
- 14 replies
- 1.7k views
Hello, I'm trying my hand at setting up google tag manager and I wish to return as many useful values as possible. I had success with this code to determine member group by putting this {expression="\IPS\Member::loggedIn()->member_group_id"} I tried looking in templates for other things to gather using this way but I was only able to find rank score. That's it. Does anyone know any other values like rank title. Registration date and similar? using {expression="\IPS\Member::loggedIn()->some_value"} I'd take these variables that are returned and put them as variables in the dataLayer part of google tag manager script.
Last reply by Maxxius, -
- 6 replies
- 594 views
Hi all, I've been trying to make my own plugin that creates threads automatically when a new gallery image or album is posted for the last few days but I am stuck on the form for each category. For whatever reason that data does not load the data back onto the form but it does save onto the database. This is what I have for formatFormValues: public function formatFormValues( $values ) { $values = parent::formatFormValues( $values ); if ( $this->id ) { $save = array( 'threadgen_gallery_forum_on' => (int)$values['threadgen_gallery_forum_on'], 'threadgen_gallery_category_id' => $this->id, 'threadgen_gallery_forum_id' => $v…
Last reply by flashpoint, -
- 2 followers
- 1 reply
- 558 views
Is it possible to create such blocks with IPS onboard functions? Text and image should be customizable by someone who does not know any HTML or CSS. Ideally, the result should be importable into IPS like block templates. Note: I can HTML and CSS but, the user cannot. Additionally, he is on the Starter cloud and cannot import any custom plugins.
Last reply by opentype, -
- 1 follower
- 2 replies
- 1.2k views
In 4.6, it is removing the left sidebar from the profile if you go to a profile tab URL: In 4.5: It happens with any profile tab.
Last reply by Daniel F, -
- 2 followers
- 4 replies
- 587 views
Hi guys, I'm trying to create a quote of the day Pages block to show at the home page. I have a Pages database with many quotes already and I'm able to visualize on my home page one quote. However, the block refreshes whenever caching time is over and I want it to refresh the text and pull a random quote one time per 24 hours only. In previous versions of IPS it was possible to control the caching time per block, but now it is not as long as I see. Is this correct? How can I somehow make it refresh only one time per 24 hours / day? Any extra code to put in the template for the block or something? Or any other suggestions to make this work preferably via a b…
Last reply by Matt, -
- 1 follower
- 4 replies
- 662 views
Hi if anyone can help please. I've an urgent requirement to change file submit / updated detail of a file. So I thought it may be done from backend easily. But as I can see in db table the date is not in usual format. What is the mechanism to change this ?
Last reply by Pushpendra Singh Chauhan, -
- 1 follower
- 0 replies
- 393 views
I wrote News application, but can not find how I can add /news/* to sitemap. Pls help.
Last reply by Bazilisk, -
- 2 replies
- 362 views
Is there a way to create a fee that doesn't show in the store but is added to each order at check out?
Last reply by jderek01, -
- 3 followers
- 8 replies
- 1.1k views
I understand that Memcache will be depreciated in IPS 4.6. But what methods of caching are going to be available instead? From what I understand, only redis caching is available now. But you can't use redis with a MySQL database. I have Cloudflare... will that be enough? Advice?
Last reply by Terry Ellison, -
- 7 followers
- 10 replies
- 1.1k views
Hey there! I have several advertisements blocks and also blocks widgets that can load these advertisements. I was wondering... Can I use the {block="myblock"} or {advertisement="myad"} inside a page content? How do you resolve this thing? Cheers, Ibai
Last reply by 403 - Forbiddeen, -
- 1 follower
- 0 replies
- 314 views
Hi IPS, In the recent update update I noticed you upgraded CKEditor to v4.16.2, the latest version. That's great but it brings about some theming issues. I have previously included Moono Dark in my dark theme, but it's now outdated and no longer compatible. As part of the 4.16 series, they have changed their default theme to the much more modern looking Moono-Lisa. This means because it supports the internal chameleon code, it supports the hugely convenient uiColor config setting, to quickly change the color of the editor, either on the front end per user or globally. https://ckeditor.com/docs/ckeditor4/latest/examples/uicolor.html There is a butt…
Last reply by The Old Man, -
- 1 follower
- 1 reply
- 289 views
My app uses a map table for mapping containers to items. I'm trying to implement having an item be contained in multiple containers. I've got this mostly working by adding an INNER join of the map table when calling getItemsWithPermission(). But, I now want to select other columns in the joined map table and on return from getItemsWithPermission(), I want to access the joined map table column data within my Item Class. How do I access the map.* column data? $joins[ 'map' ] = array( 'select' => 'map.*', 'from' => array( 'myapp_forum_topic_map', 'map' ), 'where' => array( 'myapp_topics.tid=map.topic_id AND ' . \IPS\Db::i()->in( 'ma…
Last reply by KT Walrus, -
- 5 replies
- 616 views
Where would I use this, any sample code?
Last reply by OctoDev, -
- 1 follower
- 2 replies
- 460 views
Hi All, I have a custom PHP block that I'm working on. Question: How do I retrieve the user's Display Name from PHP? Thanks
Last reply by gigantor, -
- 0 replies
- 1.7k views
IPS 4.6.8 is going to remove following extensions: core/extensions/core/Sitemap/Applications.php core/extensions/core/Sitemap/Profiles.php So if your 3rd party applications or plugins hook into any of these files, please be warned. Everything else 3rd Party related from our changelog: I'm really excited about the last point. Now you're be able to set a member group as not deletable, to prevent that a group which is used for member promotions, or which is literally essential for your 3rd party code can be deleted by the admin. /** * Can this group be deleted? * * @param \IPS\Member\Group $group The group * @return void */…
Last reply by Daniel F, -
- 1 follower
- 4 replies
- 664 views
I have created Page CSS. It works on the page with database. Now I would like to include it into custom block (Plugin) based on this database. This does not work: {{\IPS\Output::i()->cssFiles = array_merge( \IPS\Output::i()->cssFiles, \IPS\Theme::i()->css( 'myfolder/general.css', 'cms', 'front' ) );}} And using a template plugin, I get 'ErrorException: template_store_missing (0)': {template="includeCSS" app="cms" group="myfolder/general" location="front" params=""} Is there any other idea of how to include Page CSS in the block or other templates? Note: I do not have any app or plugin. This is just a simple Pages database.
Last reply by Sonya*, -
- 3 followers
- 9 replies
- 715 views
Hi, I've been trying all week to get this to work, but it always shows as unparsed text. I have a custom theme setting with a list of radio options to choose from, each one is a font awesome icon. It works great but I'm trying to display the actual icon by each checkbox. I have tried using lang settings, tried adding a prefix, description, php in double brackets, targetting with CSS etc. The AdminCP won't parse anything I enter into the value fields for each key except as text. The individual fields don't have seperate ID's, they all have the same one. Can anyone please nudge me in the right direction, so I can display the actual icon next to each? …
Last reply by The Old Man, -
- 3 followers
- 4 replies
- 730 views
I have defined a multiple Upload field in a Pages database for images only. I would like to display the images in carousel and need thumbs and original locations. I have tried this: {{$images = $record->customFieldDisplayByKey('images', 'raw') and $thumbs = $record->customFieldDisplayByKey('images', 'thumbs');}} But this does not work as the order of thumbs and images does not match. This is the order of the images in cms_custom_database_3 in field_10 monthly_2021_10/lake-6641880.jpg.eb13d74004f9c2719eecf920c705eaea.jpg, monthly_2021_10/redwood-national-park-6667452.jpg.f024a0c23e256de59503715f6a5809db.jpg, monthly_2021_10/forest-6631518.jpg.18a05d8e1196c48…
Last reply by opentype, -
- 1 follower
- 2 replies
- 779 views
Hi, I need to ask if possible and how to put the login username variables in a custom html page. I can't find how to do this? Any help?
Last reply by Daniel F, -
- 6 followers
- 18 replies
- 2.6k views
On my localhost, with php 7.4 i have E_ALL enabled, and if i am not in_dev mode, my theme hooks for my toolbox app causes this error: Cannot use “parent” when current class scope has no parent i've tracked it down to the hookData() method: public static function hookData() { return parent::hookData(); } i've been able to correct it with this code: public static function hookData() { if (is_callable('parent::hookData')) { return parent::hookData(); } return []; } now i am not entirely sure why i have to do this, it only seem to have started with 4.6 (maybe its a change i'm unware of, but i am…
Last reply by HelloWorld,