Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,678 topics in this forum
-
Figured I'd ask in this forum to see if any other site owners or developers have any insight into this issue I'm experiencing on one of my sites. The setup: 1 server that hosts 3 IPS sites. All sites running the same version of IPS (latest patched). 1 site uses Cloudflare Pro, 2 sites use Cloudflare Free CF Pro site gets a warning/error in the AdminCP indicating rewriting does not seem to be working, however the FURLs do work OK. CF Pro site does not work with the AdminCP API. It loops to the same screen with Continue despite the .htaccess being in the proper /api directory. The other 2 sites using CF Free do not experience this issu…
Last reply by Clover13, -
-
- 3 followers
- 7 replies
- 590 views
Last visit was 20 minutes ago at 05:52 AM Home come he manage to post a reply after 10 minutes from his last visit while he was already away!!!!?????
Last reply by David N., -
-
- 1 follower
- 2 replies
- 161 views
I use this documentation This code is in the record Display template (Pages) does not work: <p>Member Rating: {$record->memberRating()}</p> <span data-ipsRating data-ipsRating-changeRate='true' data-ipsRating-url='{$record->url()}' data-ipsRating-value="{expression="number_format( $record->memberRating(), 1 )"}"> <input type="radio" name="ratingValue" id="ratingValue_1" value="1"> <label for="ratingValue_1">1</label> <input type="radio" name="ratingValue" id="ratingValue_2" value="2"> <label for="ratingValue_2">2</label> <input type="radio" name="ratingValue" id="ratingValue_3" v…
Last reply by Sonya*, -
I am adding a javascript to my global header that will run only if the user is logged in. I've placed the javascript inside this if statement. {{if \IPS\Member::loggedIn()->member_id}} {{endif}} In the script, I need to to replace a variable with the currently logged-in user's email address, either plaintext or encrypted sha256, however I'm not sure how to get that email address?
Last reply by David N., -
- 1 follower
- 4 replies
- 123 views
Would it be possible to “hook” into data-ipsRating to change the output of the star elements? I have tried mixin: ips.controller.mixin('mixinName', 'core.front.core.rating', true, function () { alert('mixin'); this.before('initialize', function () { alert('before initialize'); }); this.before('_buildRatingElem', function () { alert('before _buildRatingElem'); }); }); There are three alerts. The first and second are called, the last one “before _buildRatingElem" not.
Last reply by Sonya*, -
- 1 follower
- 0 replies
- 112 views
I don't remember reading anything about it. Today we need to use hooks to allow new videos to be embedded on the site. How IPS5 will handle that?
Last reply by Adriano Faria, -
-
- 6 followers
- 12 replies
- 1.2k views
With my current discord integration add-on dead I'm in need of a replacement as I'm currently stuck on Invision Community v4.7.12. My community depends on this integration. This is how people register to my community. This is how I block bots or bad actors from joining our discord. This is how I sync user role permissions, and this is how my discord bot communicates with invision community (API). I'm hoping someone will take it on and sell to all who want it. If not I can discuss hiring someone to create and maintain this add-on for my website.
Last reply by HDiddy, -
-
- 1 follower
- 0 replies
- 79 views
Hello. I started with your distance calculation in Item.php: $selectClause .= ', ( 3959 * acos( cos( radians(' . $location['lat'] . ') ) * cos( radians( ' . static::$databasePrefix . 'latitude' . ' ) ) * cos( radians( ' . static::$databasePrefix . 'longitude' . ' ) - radians( ' . $location['lon'] . ' ) ) + sin( radians( ' . $location['lat'] . ' ) ) * sin( radians( ' . static::$databasePrefix . 'latitude' . ') ) ) ) AS distance'; I converted this to a PHP calculation (and I believe that I got the conversion correct!) $distance = (3959 * acos(cos(deg2rad($lat)) * cos(deg2rad($long)) * cos(deg2rad($event_long) - deg2rad($long)) + sin(deg2ra…
Last reply by BN_IT_Support, -
- 1 follower
- 1 reply
- 158 views
Suppose you have more than one app using the announcement extension and the extensions have the same name (like Categories in Downloads). In that case, you create one announcement to be shown only in Downloads, but it will make the announcements appear in all apps with the same extension name, regardless of the announcement setting.
Last reply by Adriano Faria, -
-
- 2 followers
- 2 replies
- 217 views
We need to do the implementation of messaging between two users so they are able to start a conversation for trading pins, and they can send, receive and reply to a previous message. For this, normally you need to be able to get the history of a conversation between two people and then display it into the app for both users (like a chat app). We are wondering what options or endpoints are available in Invision. We did more research on this, also we debugged on chrome console over a website. Here's an example of what we mean for history of a conversation, and an image of the web browser console were you can see there’s an endpoint on https://forum.pinpi…
Last reply by Pep, -
-
I got the following error when I tried to restore a content item from an app that doesn't extends the \IPS\Content\Searchable: Thank you.
Last reply by Adriano Faria, -
-
- 2 replies
- 154 views
Fresh install of IPS 4.7.16 and PHP 8.1.27. Although it shows as fixed in 4.7.13, I still have this in a lot of places when you're with IN_DEV on, such as when trying to edit a topic: Or when I try to promote the topic: Several other places where forms are there. If I set DEBUG_TEMPLATES to FALSE in constants.php, everything works just fine.
Last reply by Adriano Faria, -
-
- 1 reply
- 204 views
I've included a statement like: $_SESSION['someData'] = "somedata"; inside the manage() method inside applications/core/module/front/system/register.php. After visiting the register page I've called another script sessionread.php <?php require_once('full_path_to/init.php'); \IPS\Session\Front::i(); die(var_dump(\IPS\Member::loggedIn())); I'm unable to see the `someData`field inside the dumped session, any idea where things go wrong? Outcome should be: 1.) Set session data upon signup page (when user visits the "register" page). 2.) Being able to read this session data field from my exte…
Last reply by teraßyte, -
- 6 followers
- 10 replies
- 1.7k views
Hi, Would it be possible to integrate API OpenAI to make answers on the forum? Or to create articles? Thank you very much for your feedback
Last reply by GoodBoyGilb, -
-
- 7 replies
- 369 views
Hello, how can I extract data from an external database to a table? ($table)
Last reply by deple, -
-
- 1 follower
- 3 replies
- 273 views
Hi, I'm not sure that this is an issue on my end or not. I have created a hook which extends class \IPS\Content\Controller, however when I try to edit the hook I get the following error. Anyone else getting this? Error: Call to undefined method ReflectionUnionType::getName() (0) #0 C:\wamp64\www\#\applications\core\modules\admin\applications\developer.php(3577): IPS\Plugin\_Hook->editForm() #1 C:\wamp64\www\#\system\Dispatcher\Controller.php(107): IPS\core\modules\admin\applications\_developer->editHook() #2 C:\wamp64\www\#\applications\core\modules\admin\applications\developer.php(69): IPS\Dispatcher\_Controller->execute() #3 C:\wamp64\www\#\sy…
Last reply by TDBF, -
- 2 followers
- 2 replies
- 230 views
I normally create my hooks via the ACP and then edit the hook via the file via my IDE. (I have asked many times if you guys could increase the size of the Hooks Textarea or make it expandable, because I hate editing within a letter box. 😋) However, after the last release, this is now borked. If I edit the hook via the file, my IDE will format the code on save, and the next time I edit/add new elements to the hook class a new 'public static function hookData()' class will be created causing a Fatal error: Cannot redeclare IPS\hookData() in. For example: In this test hook, this is the content created by the core. /** * @mixin \IPS\Theme\class_forums_…
Last reply by TDBF, -
- 1 follower
- 4 replies
- 258 views
Hello, we have mixins for controllers: But what about mixins for UI? For example how can I change that part from a ips.ui.uploader.js: /** * Sets up this instance * * @returns {void} */ var init = function () { uploaderID = $( elem ).identify().attr('id'); if( options.listContainer ){ listContainer = $( options.listContainer ); } else if( $( elem ).find('[data-role="fileList"]').length ) { listContainer = $( elem ).find('[data-role="fileList"]'); } else { listContainer = $( elem ); } // Do we need to insert a wrapper though? if( ips.templates.get( options.template + 'Wrapper' ) ){ listContain…
Last reply by DawPi, -
The thumbnail settings are specified in the specific Pages DB Options, however doing a POST with the image included seems to generate a 500x500 thumbnail regardless of the settings. If you go into the record after it's been created by editing it on the record view page, then save it, it will regenerate the image to the correct size. Obviously this is a bit too much effort if you have many records. Is there any other solution? There used to be a rebuild thumbnails, but I think that was removed quite some time ago.
Last reply by Marc Stridgen, -
-
- 2 followers
- 1 reply
- 211 views
For example: if I set 4 as maxItems on a Stack field, I get the message: which is not right. It should be "You must provide up to 4 items" or something like that. Language bit: form_items_max.
Last reply by Marc Stridgen, -
-
-
- 3 followers
- 3 replies
- 243 views
I have created a database. I have set permissions so that Members are allowed to create records within the database. I have added a new club feature based on this database. Who can add a new record to the feature? Club owner and club leader only. Club moderators and club members are not allowed to add records. I have already asked it. But just to be sure: does it work as desired? Is there any way the members of the club can add records? Thanks.
Last reply by opentype, -
-
-
- 2 followers
- 1 reply
- 190 views
After a fresh install, I cannot find any Pages templates. Reproducible on localhost and test url. By the way: I am going to explore the new Pages in club feature. Where would you like to have bugs reports? Here, in technical problems or somewhere else?
Last reply by Marc Stridgen, -
-
- 0 replies
- 180 views
Hello Team, I'm trying to send a POST request through the endpoint using axios, so that I can update the member's group. Flow for the code below: I call the function updateMemberGroup, which uses the function searchMember to get the member's id, and then I try to update the member's group on the endpoint api/core/members/${id}, as shown in the documentation: https://invisioncommunity.com/developers/rest-api?endpoint=core/members/POSTitem Please find below my code for that: async function searchMember(email) { const url = communityUrl + 'api/core/members'; let id = axios.get(url + `?email=${email}`, { headers: { …
Last reply by Capitão Jack, -
-
- 2 followers
- 11 replies
- 1.1k views
Hello, i'm trying to make something work on my localhost installation and after 2 hours of trying to add a block to ACP Member Profile, i'm coming here to ask for help. What i did: I've created an extension trough Developer Center I've tried to change default output from return 'Hello World!'; to template but neither of those two seem to be working. I've disabled DEV_MODE to check if that was the issue but even with dev_mode disabled, nothing showed. Is there something i'm missing?
Last reply by Adriano Faria, -
-
- 1 follower
- 1 reply
- 357 views
Hello, I also made this topic in the general “Technical Problems” forum, however because this problem is urgent for us, we are also looking for a developer that can possibly solve this problem (for money ofcourse), so hit me up if you can help us. this is the problem: We are having a problem with the way our topics are interacting. When you go to this topic for example: https://www.higherlevel.nl/forums/topic/74791-update-verplichte-aov/?do=getNewComment You won’t go to the newest comment, in our case just the first comment gets loaded, sometimes this works, other times it just goes to a random page. We have tried disabling customization, with no avai…
Last reply by Randy Calvert,