Title: FaithJava's Replies | WordPress.org

---

# FaithJava

  [  ](https://wordpress.org/support/users/faithjava/)

 *   [Profile](https://wordpress.org/support/users/faithjava/)
 *   [Topics Started](https://wordpress.org/support/users/faithjava/topics/)
 *   [Replies Created](https://wordpress.org/support/users/faithjava/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/faithjava/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/faithjava/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/faithjava/engagements/)
 *   [Favorites](https://wordpress.org/support/users/faithjava/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 40 total)

1 [2](https://wordpress.org/support/users/faithjava/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/faithjava/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/faithjava/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Video Thumbnails] Unable to extract thumbnails from CDN provider](https://wordpress.org/support/topic/unable-to-extract-thumbnails-from-cdn-provider/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/unable-to-extract-thumbnails-from-cdn-provider/#post-5776816)
 * Thanks anyway.
 * Cheers
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754889)
 * Thank 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754885)
 * When 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754884)
 * okay, I will right away
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754882)
 * Yes, 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 8
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754879)
 * Okay 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: http://' . $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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754874)
 * I 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 
   8
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754867)
 * Thank you, I shall get back to you soon
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754863)
 * Thank 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: [http://www.mywebsite.com/movie/?p=591](http://www.mywebsite.com/movie/?p=591)
 * That is how I got my page ID = 591
 * Meanwhile, I shall give those above option a try now
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754859)
 * The example is like trying to access a page from URL [http://www.mysite.com/movie/movie509](http://www.mysite.com/movie/movie509)
   
   and re-direct to [http://www.mysite.com/mobiledevice](http://www.mysite.com/mobiledevice)
 * Sorry about not given you my original URL,is just only for security reason, I
   hope you can understand.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754850)
 * Sorry 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: http://' . $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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754848)
 *     ```
       <?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: http://' . $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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754847)
 * okay I will do that right away
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754835)
 * Thanks 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Schemeable Sliding Panel] Error message](https://wordpress.org/support/topic/error-message-144/)
 *  Thread Starter [FaithJava](https://wordpress.org/support/users/faithjava/)
 * (@faithjava)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/error-message-144/page/3/#post-3193862)
 * Have done it now, thanks mate.
 * Cheers

Viewing 15 replies - 1 through 15 (of 40 total)

1 [2](https://wordpress.org/support/users/faithjava/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/faithjava/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/faithjava/replies/page/2/?output_format=md)