Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add variable to link

  • Is there a way to add a variable to the links?

    I wanna make a mobile layout and it needs to be passed…

    like: www.site.com/bbpress/register.php?mobile=true … if you go then to the next step,

    the ?mobile=true stays until you close your browser…

    Maybe bad explained… :(

Viewing 4 replies - 1 through 4 (of 4 total)
  • What you want to look at is $_GET;

    If you place something like $_GET in the register page (or hook it in as a plugin) then you can add whatever code you need to for the mobile users.

    What you want to look at is $_GET;

    If you place something like $_GET in the register page (or hook it in as a plugin) then you can add whatever code you need to for the mobile users.

    I’m making a layout and i will use script to determine if a user is mobile and then use a custom css…

    But if people visit the site with their iPhone, and want to see it in desktop version…

    That kinda thing i wanna include in my template…

    I’m making a layout and i will use script to determine if a user is mobile and then use a custom css…

    But if people visit the site with their iPhone, and want to see it in desktop version…

    That kinda thing i wanna include in my template…

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar