Content Type
Downloads
Release Notes
IPS4 Guides
IPS4 Developer Documentation
Invision Community Blog
Development Blog
Deprecation Tracker
Providers Directory
Forums
Events
Store
Gallery
Everything posted by The Old Man
-
Hi, Is there an existing or planned way to extract data from the Statistics section of the AdminCP via GraphQL or REST API? I'd like to create an exporter plug-in. Thank you.
-
Hi, I have a category of Downloads which is just a category with several sub-categories containing various files. The sidebar widget shows them correctly, but when I navigate to the parent category, it says "No files in this category yet." I noticed it does this here in the Marketplace for example in Themes, but not on my own site? Many thanks!
-
[Bug] Topic Summary Sidebar doesn't respect Ignored Members
The Old Man replied to The Old Man's topic in Technical Problems
Hello Marc, Yes, definitely not cached content as far as I'm aware. I've also noticed that content from ignored members is showing in search results as well, so unsure if connected. -
Move content from blogs to database
The Old Man replied to virap1's topic in Classic self-hosted technical help
The endpoint might not be correct, I used /api/core/hello for example but we were on 4.3 back then. // Test Connection to IPS REST API and display response function invTest_ipsHelloTest_shortcode (){ // Authorize the requests by sending the API key as the key parameter in the request. Locked down to server by IP in IPS. $communityUrl = 'https://example.com/mycommunity'; $apiKey = 'hfquhgfhwuhguwhruggqwrhghwrhg blah'; $endpoint = '/api/core/hello'; // NB To avoid "PHP Warning: parse_url() expects parameter 1 to be string, array given", the request needs to be a concatenated string not an array! GS $request = $communityUrl . $endpoint . "?key=". $apiKey; // GET the remote request headers and body $response = wp_remote_get( $request ); // GET just the remote response body $response_body = wp_remote_retrieve_body( $response ); // GET the remote response code and message $http_code = wp_remote_retrieve_response_code( $response ); $http_message = wp_remote_retrieve_response_message( $response ); // Check for error if ( is_wp_error( $response ) ) { return sprintf( 'Oops. The URL %1s could not be retrieved.', $request ); } // return something if not an error if ( ! is_wp_error( $response ) ) { // Uncomment to debug and show headers and body return $results = '<pre>' . print_r($response, true) . '</pre>'; // Uncomment to debug and show just the body! // return $results = '<pre>' . print_r($response_body, true) . '</pre>'; // Uncomment to debug and show the status code e.g. int(200) // return $http_code.' '.$http_message; } } -
Move content from blogs to database
The Old Man replied to virap1's topic in Classic self-hosted technical help
If you get your key working, you may not need this but I had a similar difficulty and found that it was easier to Authorize the requests by sending the API key as the key parameter in the request, a key locked down to the server by IP in IPS. Also to avoid "PHP Warning: parse_url() expects parameter 1 to be string, array given", the request needs to be a concatenated string, not an array. $request = $communityUrl . $endpoint . "?key=". $apiKey; -
Move content from blogs to database
The Old Man replied to virap1's topic in Classic self-hosted technical help
I've been trying for some while now to do this and was hoping Adriano had a plugin to do it! My members have not used Blogs for several years, but of the 30 or so blogs with 400 comments, I really wanted to preserve a few from members who have passed away or where they were behind-the-scenes-style community project blogs. I've had mixed results with RSS, as some RSS feeds don't include the formatting and of course, you lose the associated comments, tags and reactions. I didn't try REST API for this but I did use that to convert from IPS Gallery to WordPress Gallery which worked fine for my needs. I've just started getting familiar with GraphQL which seems useful. I know it's a one-time conversion to move Blogs to Pages, but Adriano if you have an existing solution that would be a big time saver. -
Invision Insight: Marching into a new month
The Old Man replied to Olivia Clark's topic in Invision Community Insider
Thanks Olivia! I like these simple, weekly updates! Light, quick and easy to keep up to date. 🥰 -
Quick suggestion: The current method is to navigate a drop-down menu in the AdminCP Dashboard to switch between light and dark modes, which is a pain to use on tablets. A simple light/dark toggle icon could replace or supplement this.
-
Ah, thanks, I see what you mean.
-
When I manually create a test article from scratch without adding a record image, it doesn’t use the fallback image configured in the Supergrid plugin settings. I do have Use fallback image, fallback image url and hero image set but it only shows the fallback image in the category listings view, not the actual record view, so I presume it’s the same cause no matter whether the article was imported or created manually.
-
Reference this post: When importing an RSS feed that has images and selecting a Pages Database as the destination (which has a record image field), the record image field doesn’t get set. Therefore, please could you add an additional option near to the image handling choice on step 3 of the wizard: so that the resulting article in the Pages Database will use the first image from the imported RSS entry as the record image? An option to set a fallback image would be equally useful.
-
Thanks for the confirmation @opentype, much appreciated. Interesting that it works the other way around too. 🙂 Sorry Ralf, I couldn’t edit my initial post… my iPad autocorrected your name and I didn’t notice.
-
Hi Rolf, I was wondering if you know of a way to set a record image when importing from an RSS Feed into Pages? The RSS type of feed I’m using is just the one exported by IPS Blog. At the moment I am using Import (as attachments). In Pages > Database > Fields the Record Image is enabled. I have Supergrid set up with a fallback image (the pattern texture) and that gets used in the listing template automatically… but although images import fine into the post article content, no featured record image is used such as the first image found in the content.
-
Yeah, that was basically was Matt was saying earlier in this topic and it does indeed eventually clear by itself on an ongoing basis. I think people (like me!) are just used instant results. Agreed you can just restart it, if you server isn’t heavily loaded and you’d not see (or want avoid) impact on other pool users which may be considerations. On a similar note it’s useful to also bear in mind, the Redis memory usage indicator can be a bit misrepresentative. It’s a system wide value, so if you have other uses (like Wordpress sites or even other IPS sites) using the same instance, you’d see the same (total) memory stat showing in different sites and communities, unlike the counts for cached topics, ads etc which are unique stats. I’ve found with Wordpress Redis plugins they tend to let you use the built-in Redis database ID number to ‘virtually’ separate your caches which may be useful if sharing the same instance/pool across sites as it offers a bit more subtle control and more independent stats. It would be great if IPS4 was updated to support the newer ACL User Name and Passwords format that was introduced in Redis 6 and retained in Redis 7. I’m a little surprised the big enterprise accounts we hear about haven’t pushed for that in terms of PCI security compliance.
-
The log entry was triggered by a guest (Guests) The URL of page the error occurred on was Not available IPS\Db\Exception::2002 Tue, 24 Jan 2023 08:06:03 +0000 IPS\Db\Exception::2002 Cannot assign requested address #0 /home/mysite/public_html/content/system/Db/Db.php(356): IPS\_Db->_establishConnection(false) #1 /home/mysite/public_html/content/system/Db/Db.php(487): IPS\_Db->checkConnection(false) #2 /home/mysite/public_html/content/system/Db/Select.php(388): IPS\_Db->preparedQuery('SELECT * FROM `...', Array, false) #3 /home/mysite/public_html/content/system/Db/Select.php(446): IPS\Db\_Select->runQuery() #4 /home/mysite/public_html/content/system/Task/Task.php(202): IPS\Db\_Select->rewind() #5 /home/mysite/public_html/content/applications/core/interface/task/task.php(70): IPS\_Task::queued() #6 {main} I keep seeing these errors in my system log, any idea what causes it? It doesn’t say what the query is. Sometimes days apart, going back several months. I have only Gallery 4.7.7 installed on this one. Thank you!
-
Redis no longer stores the page cache which could get pretty hefty, so it would be smaller than before. Apparently IPS doesn’t clear the Redis cache when you run the support tool btw.
-
Ah thanks Ryan, I had neither the Windows app or browser extension installed. ☺️
-
[Bug 4.7.7] ACP - Saving the Site Promotion > Twitter Share
The Old Man replied to The Old Man's topic in Technical Problems
Thanks ol'mate. -
[Bug 4.7.7] ACP - Saving the Site Promotion > Twitter Share
The Old Man replied to The Old Man's topic in Technical Problems
Thanks ol'bean. -
I did a search in the AdminCP in 4.7.7 and it didn't find anything. It isn't in the Integrations page and a plug-in search on CKEditor produced no results. Do we just install the browser add-on/extension?
-
This may be related to me having recently removed my Twitter account and hence intergration within my community but anyway... Nav to AdminCP > Site Promotion > Sharing > Twitter. Click on Edit, make no changes but Save and it throws an error: A configuration or server error has occurred EX0 Something went wrong. Please try again. Technical details: TypeError: get_class(): Argument #1 ($object) must be of type object, array given (0) #0 /home/mysite/public_html/community/system/Node/Controller.php(420): IPS\core\ShareLinks\_Service->formatFormValues(Array) #1 /home/mysite/public_html/community/system/Dispatcher/Controller.php(107): IPS\Node\_Controller->form() #2 /home/mysite/public_html/community/system/Node/Controller.php(69): IPS\Dispatcher\_Controller->execute() #3 /home/mysite/public_html/community/applications/core/modules/admin/promotion/sharelinks.php(86): IPS\Node\_Controller->execute() #4 /home/mysite/public_html/community/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\promotion\_sharelinks->execute() #5 /home/mysite/public_html/community/admin/index.php(13): IPS\_Dispatcher->run() #6 {main} 😔
-
Invision Insight: 4.7.7 Beta 4 and a teaser!
The Old Man replied to Gary's topic in Invision Community Insider
Thanks @Ryan Ashbrook ! -
February 2023 Release Chat (Video)
The Old Man replied to Olivia Clark's topic in Invision Community Insider
Nice video, enjoyed that, thanks guys! I think the AI image recognition will also be super helpful for those with vision difficulties too, in terms of understanding the content and using screen readers etc.