WordPress.org

Ready to get started?Download WordPress

Forums

PHP Mobile Redirect
[resolved] Not redirecting back to Full View (5 posts)

  1. liken22
    Member
    Posted 1 year ago #

    Hello,

    I installed your plugin and the redirection to the mobile works great, now I want to use the feature to redirect back to the Full View site and it is not working, I placed the code in the mobile index and I make sure that the variable is the default "mobile". Can you please let me know how can I set up the right way? Also what represents the "time()+3600" is that the time in seconds ? can that be changed to less time?

    Thank you guys.

    http://wordpress.org/extend/plugins/php-mobile-redirect/

  2. Code96
    Member
    Plugin Author

    Posted 1 year ago #

    Make certain that the PHP code to set the cookie is at the very top of your mobile site index.php page before any html. Also, the default cookie name is "mobile" if you wish to change this, make certain you have updated the plugin settings page.

    Thanks

  3. liken22
    Member
    Posted 1 year ago #

    Perfect! I did what you said and works.

    Thank you very much, great plugin.

  4. liken22
    Member
    Posted 1 year ago #

    Closing the ticket.

    Thanks

  5. circavista
    Member
    Posted 1 year ago #

    Hello,

    I put the code in at the very top of my index.php page but am having issue getting my link for "view full site" to stop redirecting to mobile. I used the default code:

    <?php
    setcookie("mobile","m", time()+3600, "/");
    ?>

    and set the cookie name in the settings to "mobile" but I just can't seem to stop the redirect to happen when i try to take them to the full site. Is there special code I need to use for the link? here is what my link code looks like:

    ***a href="http://www.circavista.com/" title="mobile" rel="external"<p1>View Full Site</p1>***

    i took out some brackets so you could see my code, so don't worry those are in there

    the mobile site is m.circavista.com

    Any help would be great, thanks! otherwise, awesome plugin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.