meatloaf1024
Forum Replies Created
-
Forum: Plugins
In reply to: [Location "Nav Menu" for ACF] Select Field Not UpdatingAlso having the same issue. Does this solution 100% work?
Thanks in advance!
Forum: Plugins
In reply to: [ACF qTranslate] WYSIWYG editor and image fields not workingThis is is really causing me quite the headache. I have done quite a bit of research and it looks like the problem is linked to tinyMCE setEditorHooks on load.
Forum: Plugins
In reply to: [Location "Nav Menu" for ACF] Float Issue on MenuWish I would have read this before I spent an hour solving the same issue haha. Cheers none the less, seems we both stumbled upon the same solution here.
No worries on the late reply.
Everything seems to be working correctly now. For anyone else having the same problem this is my final code.
in my .htaccess I appended
<IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule>
And in my functions.php I have
//Used for mobile application login function wo_cors_check_and_response(){ if ($_SERVER['REQUEST_METHOD'] == "OPTIONS") { header('Access-Control-Allow-Methods: POST, GET'); header('Access-Control-Allow-Headers: Authorization'); header('Access-Control-Max-Age: 1'); //1728000 header("Content-Length: 0"); header("Content-Type: text/plain charset=UTF-8"); exit(0); } } add_action('wo_before_api', 'wo_cors_check_and_response');
Just wanted to double check if you saw my last two messages. As it stands currently I have the function along with the line you told me to add in the htaccess file.
I managed to get it all working by adding that bit of code to my htaccess as well as removing the below line from the function instructed to create in the functions.php file.
header('Access-Control-Allow-Origin: *');
I am curious though isn’t this sort of countering what the function was trying to stop?
Thanks in advance!
By the way. The .htaccess file code is in addition to the code pasted into the function.php file correct?
Ok great i’ll go ahead and give that a try. It might take me a minute while I get access to the server to modify that file.
In the function.php file of my theme
Not sure if this helps but here is my Angular 2 code that I am using to send the http post request
constructor(public http: Http) { this.headers = new Headers(); this.headers.append('Content-Type','application/x-www-form-urlencoded'); //this.headers.append('') this.headers.append('Authorization', "Basic " + btoa(this.clientId + ":" + this.clientSecret)); } //queries the database for an auth token so that we can log in to the application public signIn(usrnme: string, psswrd: string) : Observable<any>{ let body = this.jsonToURLEncoded({ grant_type: "password", username: usrnme, password: psswrd }); console.log(body); let options = new RequestOptions({ headers: this.headers }); let signOnUrl = this.websiteUrl + this.signInUrl; return this.http.post(signOnUrl, body, options) .map( this.simplifySignIn ) .catch( this.simplifySignInError ); }
- This reply was modified 8 years ago by meatloaf1024.
I tried to submit the ticket and unfortunately it still isn’t working.
After submitting I get redirected to a blank screen. I see the ticket as open in my support page but every time I click it it ends up just refreshing the page.
I will go ahead and try and do that.
Thanks in advance!
Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] unsupported grant typeThere seems to be quite a bit of trouble with the support ticket system. I sent a reply but it doesn’t show up. Just want to make sure my responses are getting to you ??
Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] unsupported grant typeIt looks like the tickets keep disappearing on my end. Can you confirm that you are seeing it?
THanks in advance!
Forum: Plugins
In reply to: [WP OAuth Server (OAuth Authentication)] unsupported grant typeI went ahead and filed a support ticket. Thanks for the prompt reply!
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Nivo lightbox vertical centering off.Unfortunately I’m not sure when the site will be up, so I don’t think I will be able to do it that way.
You should be able to run firebug on it none the less though, that’s how I have been debugging it thus far. It just runs the site on your computer locally and you can pop up firebug on any page to see what’s going on.
This problems is a very strange one in deed. I checked the nivo lightbox line for line with the sample code on there site and everything looks exactly the same.