-
sobrenome reacted to a post in a topic: Invision Community 5: Dark mode, accessibility, performance and mobiles!
-
-
-
Issues with Emails on my domain
Sorry, I didn't find a link to support or tickets. Could you please provide me with it. Thank you.
-
Issues with Emails on my domain
Hello, I have my community on cloud version, and because I changed DNS settings of my domain to match yours I can not edit records of MX for my email server. According to support of my hosting provider, the MX records of the domain ichancycommunity.com should be changed from your side to:
-
Ehren reacted to a post in a topic: Invision Community 5: Dark mode, accessibility, performance and mobiles!
-
Matt reacted to a post in a topic: Invision Community 5: Dark mode, accessibility, performance and mobiles!
-
Invision Community 5: Dark mode, accessibility, performance and mobiles!
-
-
-
Problem with sending an object using REST API
I was able to solve it by making it in PHP and pass the whole information in one array. Before I was trying to link the form directly to API. The best way I managed to handle it is by making the form send its request to a script I wrote and then send the information to API. First collect all the fields of the information (fields object ) and then create an array to put all required fields from API along with field object it self. This is my code: First you prepare the setup of your API $communityUrl = 'https://www.domain.com/'; $apiKey = '00000000000000000000000000000000'; $endpoint = '/cms/records/7'; // 7 is my database id Then you receive the submitted data, handle it and store it in one associated array by making the key same is field id of each one of them. Try to make sure that field assigned as "Title" and "Content" are there. $fields['28'] = $_POST['fullname']; // This is assigned as title $fields['32'] = $_POST['age']; $fields['29'] = $_POST['experience']; // this is assigned as content $fields['35'] = $_POST['previousjob']; $fields['33'] = $_POST['worklocations']; $fields['34'] = $_POST['clients']; $fields['30'] = $_POST['whatsapp']; $fields['31'] = $_POST['email']; $field['FIELD_ID_FROM_YOUR_DATABASE_HERE'] = ... Then you put everything together in one new array ( required fields from API + fields object ) $data = array( "author" => AUTHOT_ID_FROM_YOUR_COMMUNITY, "category" => CATEGORY_ID_FROM_YOUR_DATABASE, "fields" => $fields, // Our field object ); Finally you send your request to API. $curl = curl_init( $communityUrl . 'api' . $endpoint ); curl_setopt_array( $curl, array( CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_HTTPAUTH => CURLAUTH_BASIC, CURLOPT_USERPWD => "{$apiKey}:", CURLOPT_USERAGENT => "MyUserAgent/1.0", CURLOPT_POSTFIELDS => http_build_query($data), ) ); $response = curl_exec( $curl ); curl_close($curl); if($response){ echo 'Ok'; exit; }else{ echo 'Error'; exit; }
-
Problem with sending an object using REST API
Hello, I am trying to post new record into a database I created. Documentation says I have to pass it as an object of key:value. I copied the response when I tried to use GET to receive all the records and made the requests like this using Postman: This is what is being stored in the database and I receive: "title": "i", This should be Subject "fields": { "field_12": "i", This is the title "field_13": "e", This should be Text "field_14": "l", "field_15": "d", "field_16": "_", "field_17": "1", "field_18": "2" }, It is somehow braking my text and fill all the field I have with parts of it. Any idea why? On the side, What I am trying to do is make like a Form Submit page in my community for applications. I made it as Database to manage it there. First I tried to hide showing the content using groups permissions, but this way the Add New won't be seen by members and if I gave them the ability to see their own posts it will not be like a Form style. That is why I decided to hide everything and make a form myself and submit the data using the API. If you have an advice for this as well, I really could use the help.
-
-
CKEditor Plugin does not appear to be valid
I chose the full preset. The file I get is .zip and I renamed it to remove all dots from version number. same error message.
-
CKEditor Plugin does not appear to be valid
Hello, I want to add the ability to add tables when someone is posting a new topic or a comment. I went to edit toolbars then Add Button and followed the link provided: HERE Then I downloaded the file, and when I upload it I get this error message: 1C120/B The plugin does not appear to be valid. Make sure that you have uploaded the plugin exactly as you downloaded it. How can I add more plugins to the CKEditor ?
-
-
How to use Designer's Mode with cloud based community ?
Is there a way for me to work on a Theme from local computer using IDE and then install the theme normally ?
-
How to use Designer's Mode with cloud based community ?
Hello. Is it possible to use Designer's Mode to work on my custom theme while my community is cloud based and not local on my hosting server ? I tried to check and did not find a way because as I understand I have to be able to manage the files.
-
-
Help with XMLHttpRequest and CORS policy
I am building a page in my community where it is linked to information I have on another site. I created and API to get the information from the other site in use it in the page I am creating inside the community. The page makes requiest using jQuery ajax to get and display the data. The API alone is working when I visit the link, but from inside the community I am getting: Access to XMLHttpRequest at 'MY API LINK' from origin 'https://www.ichancycommunity.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. How can I fix this and allow my community to not block the API ?
-
How to get the current Theme Template ?
I checked it before. It talks about syntax in general. I need to know what is available for me to use like that request, or sometimes I see something like "settings.VALUE". These are the main core things that will help modifying the template and give more control.
-
How to get the current Theme Template ?
Thanks it worked. Is there a place in documentation where I can learn more about these conditions that are related to the system ? I know how php works here but I don't know what to check when I need somthing, like user information variable or what other things available like this "request.controller".
-
How to get the current Theme Template ?
Hello, I added a new theme template to store all my carousel information in it. ( Or any content in general ) Now I want this to show only in home page where it is the index for my forums. What is the condition to put that checks which template is now showing ( view ). my template is called: {template="mainsitecarousel" app="core" group="_mycustomtheme" location="front"} I want it to be visible when user is showing the "index" template from forums. Now I could write the previous code in side it, but I want it to be in different place ( under header ). My thinking is to add my code in the main globalTemplate with a condition to check if we are in index template or not. So I need to know what is the expression for that. My code then will be like this ... {{if [expression]}} {template="mainsitecarousel" app="core" group="_mycustomtheme" location="front"} {{endif}} Also, is there a place where I can check for these kind of advanced coding in documentation ? Thank you.