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
-
- 1 follower
- 4 replies
- 113 views
I'm trying to create a new topic on our forum via GraphQL and I get the following error: { "errors": [ { "message": "NO_FORUM", "extensions": { "category": "clienterror" }, "locations": [ { "line": 3, "column": 9 } ], "path": [ "mutateForums", "createTopic" ] } ], "data": { "mutateForums": { "createTopic": null } } } Here's the mutator I'm sending, line 3 column 9 is the first "c" in "createTopic" mutati…
Last reply by Stuart Grimshaw, -
- 0 replies
- 36 views
I have some strange results with some accounts not returning a valid JSON object. It looks like they are returning the output of a 404 error. When this happens, my system records the request URL and authorization token. I want to pass the token as a URL parameter for simple testing in my web browser. Is this possible?
Last reply by Interferon, -
-
- 1 follower
- 8 replies
- 477 views
I've seen this error in my IDE for a while now but forgot to report it earlier. It is caused by the newly added \IPS\Node\DelayedCount trait. I see this error even in several classes, even inside Application.php for applications that don't implement the trait. 🤷♂️ When I tell the IDE to fix the issue automatically this function gets added to the file (Application.php in this case): /** * Count all comments, items, etc * * @return mixed */ protected function recount() { // TODO: Implement recount() method. } I have no comments, items, or anything else that needs recounting in this specific application or others, though.
Last reply by teraßyte, -
-
-
- 3 replies
- 153 views
Hello. I have an issue with my Invision Community forum website, and that I am getting a huge amount of URLs in Google Search console that Google deems as "page with redirect". This is an issue from an SEO standpoint, as this wastes Google's crawl budget. It seems as if the major issue is the links to user's posts in the "Activity" feed. If you click a post/comment that has been done recently in that feed, the URL will look like this: forumdomain.com/index.php?/topic/12386-thread-name/&do=findComment&comment=244173 But it will instantly redirect to this: forumdomain.com/index.php?/topic/12386-thread-name/#comment-244173 Is there a w…
Last reply by yxleif, -
-
-
- 1 follower
- 1 reply
- 87 views
Is it possible to upload a user's profile picture with the REST API? I don't see a field for it in this end point: https://invisioncommunity.com/developers/rest-api?endpoint=core/members/POSTindex
Last reply by Marc, -
-
-
- 1 follower
- 5 replies
- 967 views
Hello. The api documentation says that for creating a database record we can pass the date as datetime. When I try to pass the date formatted like this 2024-08-18T19:19:06Z it does not seem to work and the record shows the current date. Every other field, aspect of rest api works fine. Am I doing something wrong? Thanks.
Last reply by virap1, -
-
- 1 follower
- 3 replies
- 301 views
Okay, I guess it works.
Last reply by DawPi, -
-
- 1 follower
- 6 replies
- 271 views
We have a large collection of externally hosted files and screenshots we are allowed to link to that we want added into our Downloads system. The files are useful items our customers will benefit from, and we want them searchable and downloadable in our application. There are about 10,000 items we want to add. Can IPB handle this volume? What is the best way to add the data into our system?
Last reply by Interferon, -
-
Hi there, I am running into an issue using the new Member listener. When updating a members groups, and using the onProfileUpdate callback, the member object does not reflect the latest changes and its always one iteration behind. The $changes array has the correct updates. Even when calling a load to attempt to get the latest DB results, it it still one iteration behind. The DB updates correctly, To reproduce: Update a members secondary groups Log the $changes array, $member->groups and MemberClass::load($member->member_id)->groups. The results in the $changes array will not be the same as $member->groups. It will be the results of y…
Last reply by Esther E., -
According to the docs, sending out author param as 0 means post as guest (with author_name as his name) However when I try to post a comment as guest, I get "errorCode": "1F295/2", "errorMessage": "NO_AUTHOR". If I try to use an ID of an actual existing user instead of 0 - it's working fine. I am 99% sure this worked in the past (a few years ago) so maybe something changed? Just to make sure this is not a permissions issue I verified that the forum I'm trying to post to have commenting permissions for guests (even though I don't think it needs to have it in order to post via the API). Am I missing something?
Last reply by Daniel F, -
-
- 1 follower
- 4 replies
- 266 views
Hi, there was an app by a member on marketplace that could be used to create the dev folders for installed plugins and apps, plus it could also do other things . Does anyone remembers who the members/developer of the apps was or where I can download that app?
Last reply by DawPi, -
-
- 1 follower
- 0 replies
- 181 views
If any developer is interested in creating an app for the community... The new Udemy Affiliate app could display courses matching keywords on the current IC page - https://www.udemy.com/developers/affiliate
Last reply by WebCMS, -
-
- 1 follower
- 5 replies
- 787 views
Hello, Is there any way to use extra fields in the Rest API in Downloads? I want to add a file via API and I would like also to add extra fields in the file. This is not a development question. Thanks.
Last reply by Marc, -
-
-
- 1 follower
- 2 replies
- 194 views
I have been working with several web APIs lately, and they usually have a call to retrieve the available categories items are stored in, so you can display them and use them in subsequent calls. I do not see anything like this in the documentation? Is there a way to do this, or maybe it can be added in the future? It would be very useful because it would allow categories to be added or changed without having to update the external application each time.
Last reply by Interferon, -
-
-
- 2 followers
- 5 replies
- 263 views
I am adding a file into our system and want to include a URL in the description. If I just enter a URL in the parameter, it does not show a hyperlink for the URL, it just appears as plain text. Is there a way to encode these in the description text?
Last reply by Interferon, -
-
- 4 replies
- 282 views
I am trying to upload a 4.18 MB ZIP file using the /downloads/files REST API endpoint. If I add the file contents as binary data, the uploaded file is five bytes. This corresponds with the zip data, which has 0 at the sixth byte: 80 75 3 4 20 0 0 0 So the NULL character is causing the string to get cut off prematurely. I can upload the data with base64 encoding, and it results in a 5.58 MB file. When I download this file, then run it through base64 decoding, it produces the original ZIP file. However, the base64 encoded data is not a valid zip file. My question is how do I upload a binary file, with or without base64 encoding, and have IPB store it as…
Last reply by Interferon, -
-
- 1 follower
- 3 replies
- 240 views
We want to upload about 600 items into our Downloads system. Each item consists of: One 4 MB ZIP file One 16 MB ZIP file One 64 MB Zip file One PNG screenshot, approximately 500 KB What is the best way to achieve this? There are too many files to upload by hand, and the number will only increase in the future.
Last reply by Interferon, -
-
- 2 followers
- 0 replies
- 171 views
Any devs wants to take up this suggestion and build an app for the community? USDA FoodData Central - https://fdc.nal.usda.gov/api-guide.html https://app.swaggerhub.com/apis/fdcnal/food-data_central_api/1.0.1
Last reply by WebCMS, -
-
- 2 followers
- 17 replies
- 3k views
I am building a game, and in the game, users will be able to upload their screenshots to the community. I got it all working but everything I try I get 1 of 2 errors. The API returns Error "No_Image" or Error "EXO" (Unknown) In C# there is a very easy way to encode any byte date into a base64 Encoded format, so I dont think there is anything wrong with my code. Does anyone have any ideas on why im getting this issue? There is API for other sited that require filed in the same fashion, im using the same code I do this with them, and dont have issues until I use it on Invision. byte[] imageArray = System.IO.File.ReadAllBytes(FileDir); string base64ImageRe…
Last reply by Interferon, -
-
- 7 replies
- 246 views
I nearly have file uploading working using the /downloads/files end point: https://invisioncommunity.com/developers/rest-api?endpoint=downloads/files/POSTindex I am not sure how to set up the POST command, rather than the GET command. My code produces an error, but if I supply the category and other arguments in the URL, the system thinks I am trying to do a GET request. std::string token = InvisionPower::AuthenticateUser(name, password, "profile"); std::string options = "category=97&description=MyDescription&title=FileName&author=1"; nlohmann::json postData; postData = {}; postData["category"] = 97; postData["author"] = 1; postData["description"] =…
Last reply by Interferon, -
- 1 follower
- 1 reply
- 276 views
Hello, it's pretty simple to reproduce. The stack part: $form->add( new \IPS\Helpers\Form\Stack( 'myapp_authors', ! empty( $authors ) ? $authors : array(), TRUE, array( 'stackFieldType' => '\IPS\myapp\Form\File', 'maxItems' => 5, 'key' => array( 'placeholder' => \IPS\Member::loggedIn()->language()->addToStack( 'myapp_enter_name_placeholder' ), 'size' => 20 ), 'value' => array( 'min' => 0, 'max' => 100 ) ), NULL, NULL, NULL, 'myapp_authors' ) ); And custom form field type constructor from myapp\(sources)Form\File: /** * Constructor * Creates the two date objects * * @param string $name Form helper name * @param m…
Last reply by DawPi, -
-
- 7 followers
- 15 replies
- 2.6k 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 Clover13, -
-
- 1 follower
- 1 reply
- 293 views
Hey, I should migrate users and posts from one forum to invision community. Therefore I prepare the topic / post migration with migrating all users before. I use REST API with HTTP POST to /core/members for that. But we do not have local users (and the new users should also not be local) but we have an oAuth integration. If I create the user without a password, the user will be mapped correctly on his first sign in to the correct user account, but is forwarded to https://my.url/settings/password/?ref=aHR0cHM6Ly90ZXN0LXF1YWxpdHlmb3J1bS56ZWlzcy5vcmcvdGCCCCCCCCCCCCXNzLW1ldHJvbG9neXXXXXX9taW5nLXNvb24v which will lead to an error message: "The page you are trying to …
Last reply by Carl Zeiss GOM Metrology, -
- 2 followers
- 0 replies
- 224 views
I just found randomly that the MemberFilter extension can also be used for Automatic Moderation & Password Reset, but there is no mention of it anywhere in the documentation, it only states Bulk Mail & Group Promotions. Even the extension generated by the ACP doesn't list all 4 values but only 2: /** * Determine if the filter is available in a given area * * @param string $area Area to check * @return bool */ public function availableIn( $area ): bool { return \in_array( $area, array( 'bulkmail', 'group_promotions' ) ); } It should list all 4 values: return \in_array( $area, array( 'automatic_moderation', 'bulkmail', 'gr…
Last reply by teraßyte, -
-
- 1 reply
- 233 views
Hi, I try to POST a post to invision community with an attachment with REST API. So storing the post itself with content is no problem, but how to add the attachment? I had a look for an existing post with attachment and GET it via REST and the attachment looks like: <a href="https://my.url/uploads/monthly_2024_09/myfilename.jpg" class="ipsAttachLink ipsAttachLink_image" data-fileid="35" data-fullurl="https://my.url/uploads/monthly_2024_09/myfilename.jpg" data-ipslightbox="" data-ipslightbox-group="g30231"><img data-fileid="35" src="https://my.url/uploads/monthly_2024_09/myfilename.jpg" data-src="https://my.url/uploads/monthly_2024_09/myfilename.jpg" …
Last reply by Daniel F, -