Developer Connection
Use this forum to interact with our development team on technical issues, suggestions and official best practices advice.
1,734 topics in this forum
-
-
- 2 followers
- 6 replies
- 1.2k views
Invision: 4.7.10 PHP 8.0 While in development mode and with Whoops enabled, any error from a widget will result in a loop while writing the error to the database, and cause the server to time out and crash. For example: (This is an example just to trigger an error and not a real world example) /** * Render a widget * * @return string */ public function render() { $lastFixture = NULL; $$nextFixture = NULL; return $this->output( $lastFixture, $nextFixture ); } From the error log: 🙂
Last reply by Marc, -
-
- 2 followers
- 1 reply
- 477 views
I would like to use some APIs from other resources to import records into Pages databases. The scenario is: if a user creates a record, a search request should be sent through API to find a match if there is a match, the records fields should be filled with the found item automatically (get request) if there is no match, the record should be created as usual “listen” to the changes of the record through API and update if needed Did somebody create something like this? I absolutely do not want to use any ready apps like Movies, Links, Videos, Books etc. It should be made with a database in Pages. The question is: where to start and how…
Last reply by BN_IT_Support, -
-
- 3 followers
- 10 replies
- 658 views
Hello everyone, hoping someone can assist with an issue we have. We started a forum many years ago, then during covid hit some hard times and did not had the means to keep moderators, now we have managed to come back and wish to restore the forum to it's reputable state. However since then a flurry of spammers infiltrated the forum (>1000). Right now we are banning each user by hand via the front end moderator tool / interface / GUI. However, I am hoping there is maybe a way to do this via the backend, perhaps a script or SQL query I can run that will essentially apply the ban functionality to all users between a specific date? Any oth…
Last reply by Platinumwealth.co.za, -
-
-
- 1 follower
- 5 replies
- 799 views
Following on from the Laravel topic earlier this year, I'm trying to invoke the GraphQL class from my Laravel app and I'm getting the following error: [2024-05-10 10:35:05] dev.ERROR: LOCATION_UNKNOWN {"exception":"[object] (RuntimeException(code: 0): LOCATION_UNKNOWN at /Users/stuart/Projects/brfcs/brfcs/ips_a1ee4/system/Session/Session.php:61) Even the simple example in the other thread gives the same error, the main difference from February is I've updated to the latest version and installed the dev tools.
Last reply by Stuart Grimshaw, -
-
-
- 2 followers
- 9 replies
- 818 views
Not sure what to look at here, but I'm trying to set up a Zap to create a new forum Topic however Zapier only shows a subset of forums. Searching for a forum that exists (and is even guest viewable) returns no results. Any ideas?
Last reply by Daniel F, -
-
- 1 follower
- 2 replies
- 495 views
Which table stores the log of forum search queries? They hid it well! 🤣
Last reply by Egorkin, -
-
- 1 follower
- 4 replies
- 495 views
Problem with inability to access developer mode Hello, I have a problem with developer mode and I am asking for help to solve it. I have the same problem, both in the test installation and in the installation that will be put into production, when the website is opened. Being deactivated all applications, plugins and third party themes, if I try to access the developer mode, I get the following error message: OutOfRangeException thrown with message "" Stacktrace: #5 OutOfRangeException in /home/talenta/test.talentaaurea.org/system/Patterns/ActiveRecord.php:142 #4 IPS\Patterns\_ActiveRecord:load in /home/talenta/test.talentaaurea.org/system/Developer/Deve…
Last reply by Verto, -
-
- 3 followers
- 4 replies
- 491 views
I am playing around with the Featured record's template, and I wonder if there is a way to add more sorting options than what you set on the database level?
Last reply by Jimi Wikman, -
-
- 4 followers
- 4 replies
- 625 views
I would like to include some pointers into different text blocks (WYSIWYG or HTML). Currently, to prevent havinng the absolute URL path hard coded in the HTML text, I would like to use a variable which holds the URL prefix (ie. service name and port). I browsed mostly the whole documentation, but I did not find a place where variables are listed and how to do that.
Last reply by Daniel F, -
-
-
- 2 followers
- 6 replies
- 837 views
php -S 0.0.0.0:8000 Is it even possible to run the board locally like this while I develop an extension, the error I'm getting is 127.0.0.1:64188 [500]: GET / - Maximum execution time of 540 seconds exceeded in /Projects/ips_a1ee4/system/3rd_party/JShrink/Minifier.php on line 244 I've changed the default timeout as you can see, but it's not having much effect. My constants file look like this: <?php \define('REDIS_ENABLED', false); \define('STORE_METHOD', 'FileSystem'); \define('STORE_CONFIG', '{"path":"/Projects/brfcs/brfcs/ips_a1ee4/datastore"}'); // \define('CACHE_METHOD', 'None'); // \define('CACHE_CONFIG', '[]'); \define('SUITE_UNIQUE_KEY', '80f9a52a1…
Last reply by Stuart Grimshaw, -
-
-
- 2 followers
- 3 replies
- 429 views
I'm trying to run the board locally so I can develop a plugin to link to our CMS (ultimately I want to create a new thread on the forum for each article and then display all the chat under the article, using the forum as a comments section effectively. When I run the board using PHP's built in server (php -S localhost:8000) I get an error: Can I cause it to be logged in any more details anywhere? The console just shows the request & nothing more. There's nothing in the php error log or anything in uploads/logs either.
Last reply by Marc, -
-
-
- 3 followers
- 15 replies
- 942 views
I want to search a title in a database to make sure the record is not already there. I found the different search types I can do: "contenttypes": [ "core_statuses_status", "calendar_event", "cms_pages_pageitem", "cms_records1", "cms_records2", "forums_topic", "nexus_package_item", "links_link" ] What contenttype do I use if I want to search database #3?
Last reply by Elon Report, -
-
-
- 2 followers
- 13 replies
- 1.9k views
So I see there is another editor so to say where Header / Footer HTML is and I also want to use it but I can't figure out how. Examples. Invisioncommunity: Mine: I want to make it show exactly like Header and Footer editor. help? I think I can access it and make it show through Custom PHP, but I don't know where to select it. There is no documentation for it. If i use it as shown in my example it will display like this and that's why I want it like in Header/Footer.
Last reply by Alexandru, -
-
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 Marc, -
-
- 3 followers
- 7 replies
- 1k 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
- 644 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
- 650 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
- 612 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, -
- 1 follower
- 0 replies
- 382 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
- 557 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
- 597 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
- 580 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
- 611 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,