FaithJava
Forum Replies Created
-
Forum: Plugins
In reply to: [Video Thumbnails] Unable to extract thumbnails from CDN providerThanks anyway.
Cheers
Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page onlyThank you my friend, have check it out on other mobile devices, it works perfectly.
Thank you so much, have rated your plugin 5 stars and recommend it for others.Good Luck
Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page onlyWhen I click on the link I wanted to access that will activate the redirect on mobile, it popup
HTTP Error 0: An error occurred while communicating with the origin server. Please try again.
With 2 Button “OK” and “Details”
If I click on “OK” button, the message will disappear, if I click on “Details” button, then it will now redirect me to the page have set for redirect.Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page onlyokay, I will right away
Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page onlyYes, what I did was to change:
is_page(591)with
is_single(‘591’)
and it shows error message:
Parse error: syntax error, unexpected T_STRING, expecting ‘(‘ in /hermes/bosoraweb116/b1268/ipg.mywebsite/movies/wp-content/plugins/php-mobile-redirect/includes/functions.php on line 8Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page onlyOkay here it is:
<?php // Replace---- /*add_action('init', 'pmr_mobile_redirect');*/ // with----- function pmr_single_page_only(){ if (is_page(591)){ pmr_mobile_redirect(); } } add_action('get_header','pmr_single_page_only'); function pmr_mobile_redirect(){ global $pmr_options; if ($pmr_options['enabled'] == true) { $detect = new Mobile_Detect(); if ($detect->isMobile() && isset($_COOKIE[$pmr_options['mobile_cookie']])) { $detect = "false"; } elseif ($detect->isMobile()) { header('Location: https://' . $pmr_options['mobile_url']); exit; } } }
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page onlyI just did now and here is the error message I have:
Parse error: syntax error, unexpected T_STRING, expecting ‘(‘ in /hermes/bosoraweb116/b1268/ipg.mywebsite/movies/wp-content/plugins/php-mobile-redirect/includes/functions.php on line 8Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page onlyThank you, I shall get back to you soon
Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page onlyThank you for your quick response, firstly I’m using a premium theme which is the default wordpress theme.
How I got my page ID is I went on the edit post section of my wordpress admin, and click on “Get Shortlink” button, a dialog box with page URL display: https://www.mywebsite.com/movie/?p=591That is how I got my page ID = 591
Meanwhile, I shall give those above option a try now
Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page onlyThe example is like trying to access a page from URL https://www.mysite.com/movie/movie509
and re-direct to https://www.mysite.com/mobiledeviceSorry about not given you my original URL,is just only for security reason, I hope you can understand.
Thanks
Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page onlySorry about that, I sent wrong code.
Here is the code below:<?php // Replace---- /*add_action('init', 'pmr_mobile_redirect');*/ // with----- function pmr_single_page_only(){ if (is_page(591)){ pmr_mobile_redirect(); } } add_action('get_header','pmr_single_page_only'); function pmr_mobile_redirect(){ global $pmr_options; if ($pmr_options['enabled'] == true) { $detect = new Mobile_Detect(); if ($detect->isMobile() && isset($_COOKIE[$pmr_options['mobile_cookie']])) { $detect = "false"; } elseif ($detect->isMobile()) { header('Location: https://' . $pmr_options['mobile_url']); exit; } } }
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page only<?php add_action('init', 'pmr_mobile_redirect'); function pmr_mobile_redirect(){ global $pmr_options; if ($pmr_options['enabled'] == true) { $detect = new Mobile_Detect(); if ($detect->isMobile() && isset($_COOKIE[$pmr_options['mobile_cookie']])) { $detect = "false"; } elseif ($detect->isMobile()) { header('Location: https://' . $pmr_options['mobile_url']); exit; } } }
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page onlyokay I will do that right away
Forum: Plugins
In reply to: [PHP Mobile Redirect] Apply Redirect to a particular page onlyThanks for your response, have apply the above code to the plugin but not detecting mobile device and also not redirecting. What do you think might be the issue?
Thanks again
Forum: Plugins
In reply to: [Schemeable Sliding Panel] Error messageHave done it now, thanks mate.
Cheers