Virtualei Posted June 7, 2020 Report Posted June 7, 2020 Hi Wondering if anyone can help. I have done a new skin for my VA deciding to change from the Icrew Skin. When my VA used the Icrew its URL was crew.virtualei.net With my new skin I have gone back to the parent URL virtualei.net My problem is that my simbrief button is not working. I uninstalled the module and all the files and did a fresh install remembering to put in the new URL and my API in the correct files. When I click on the. When I inspect for console errors it is still saying crew.virtualei.net as per screenshot. I have cleared my PC cache and history but it doesnt work. I am at a total loss. Any help appreciated. https://prnt.sc/svd4ud Quote
Administrators ProAvia Posted June 7, 2020 Administrators Report Posted June 7, 2020 Is it possible that your simBrief API key is tied to crew.virtualei.net ? Maybe contact simBrief and ask what exact URL they have listed for your API key. Quote
Virtualei Posted June 7, 2020 Author Report Posted June 7, 2020 Thanks for the reply. I did contact them and they said it didnt matter what URL was used Quote
Administrators ProAvia Posted June 7, 2020 Administrators Report Posted June 7, 2020 Which means the API key is tied to virtualei.net - so anything that point that domain will work with the API key. I would double check all the simBrief files again. Also verify the SITE_URL in local.config.php is shown as https and not http. I think its around line 27 in local.config.php Quote
Virtualei Posted June 7, 2020 Author Report Posted June 7, 2020 3 minutes ago, ProAvia said: Which means the API key is tied to virtualei.net - so anything that point that domain will work with the API key. I would double check all the simBrief files again. Also verify the SITE_URL in local.config.php is shown as https and not http. I think its around line 27 in local.config.php Thanks again for your reply. HTTPS is used in my local config file ok. I deleted all the files again and re-installed thembut still the same problem. My head is turned I have written to Derek again to see if he would issue a new key just even to put my mind at ease Quote
PetitJedi Posted June 7, 2020 Report Posted June 7, 2020 hi You have a SimBrief file present in your skin (lib / skins / your_name_skin / SimBrief /? normally in the SimBrief folder placed in "core / modules /" you have the SimBriefk file, do you have the right path for your .tpl ? $this-> render ('SimBrief / SimBrief.tpl'); be careful, respect if you have capital letters in your folder and file names? Quote
Virtualei Posted June 7, 2020 Author Report Posted June 7, 2020 2 minutes ago, PetitJedi said: hi You have a SimBrief file present in your skin (lib / skins / your_name_skin / SimBrief /? normally in the SimBrief folder placed in "core / modules /" you have the SimBriefk file, do you have the right path for your .tpl ? $this-> render ('SimBrief / SimBrief.tpl'); be careful, respect if you have capital letters in your folder and file names? Yes I had copied that out of my Core/templates folder to try something . I have removed that file now and the original file is still in the correct place. Thanks Quote
Virtualei Posted June 7, 2020 Author Report Posted June 7, 2020 /* * Modify this variable if your "simbrief.apiv1.php" file is not located in the * same directory as your Dispatch Options page. */ var api_dir = 'https://www.virtualei.net/index.php/core/modules/SimBrief/'; //Ex. "some/directory/"; This is from my JS file Quote
PetitJedi Posted June 7, 2020 Report Posted June 7, 2020 i'm not sure you must put the url. Where is your JS file located? Quote
Virtualei Posted June 7, 2020 Author Report Posted June 7, 2020 My JS is located in public_html/lib/js Quote
PetitJedi Posted June 7, 2020 Report Posted June 7, 2020 can you try with var api_dir = 'https://www.virtualei.net/core/modules/SimBrief/'; Quote
Strider Posted June 8, 2020 Report Posted June 8, 2020 Make sure the JS is being called in the head of the page, above the </head> Quote
Virtualei Posted June 8, 2020 Author Report Posted June 8, 2020 Yes have tried that also. It was in my HTML Head template and I moved it to above </head> but still the same issue. I really am at a loss Quote
Virtualei Posted June 8, 2020 Author Report Posted June 8, 2020 I am really starting to think it is the API. I have again deleted all the file and re-installed them. Still getting the same error. Interestingly though when I check my sources on my site i get this https://prnt.sc/sw0r8e but this is the code I have on my cpanel * SimBrief APIv1 Javascript Functions * For use with VA Dispatch systems * By Derek Mayer - contact@simbrief.com * * Any individual wishing to make use of this class must first contact me * to obtain a unique API key; without which it will be impossible to connect * to the API. * * Any attempt to circumvent the API authorization, steal another * developer's API key, hack, compromise, or gain unauthorized access to * the SimBrief website or it's web systems, or bypass or allow others to bypass * the SimBrief.com login screen will result in immediate revocation of the * associated API key, and in serious situations, legal action at my discretion. */ /* * Modify this variable if your "simbrief.apiv1.php" file is not located in the * same directory as your Dispatch Options page. */ var api_dir = 'https://www.virtualei.net/core/modules/SimBrief/'; //Ex. "some/directory/"; /* * Settings and initial variables */ I will wait and see if Simbrief get back to me witha new key unless anyone else has any ideas Thanks Alan Quote
Strider Posted June 8, 2020 Report Posted June 8, 2020 (edited) Are you uploading the right file? As I think you may be uploading the old file instead of the new one. Edited June 8, 2020 by Strider Quote
Virtualei Posted June 8, 2020 Author Report Posted June 8, 2020 (edited) 21 minutes ago, Strider said: Are you uploading the right file? As I think you may be uploading the old file instead of the new one. Hmm possible mate. Getting it now of GITHUB . They are TPL files for the templates but I am changing them to php Edited June 8, 2020 by Virtualei Quote
Administrators ProAvia Posted June 8, 2020 Administrators Report Posted June 8, 2020 Here's something to check also.... Go through each and every simBrief file and change http to https. This applies to the original simBrief module and to the options form too if you use it. And check that you have the correct URL near the bottom of the options form file "schedule_briefing.php". Quote
Virtualei Posted June 8, 2020 Author Report Posted June 8, 2020 @Strider has solved it thankfully. It seems my host had cached my files. He moved the file to my skin JS folder and it worked. Thanks Strider :). Can anadmin mark this as solved please Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.