Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Update for critical security issue in PHPMailer included in release Vanilla 2.3.1
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

Embed 'Force URL' - but use mobile site still?

edited August 2011 in Vanilla 2.0 - 2.2
Is there any way to force embed url for desktop only, but have mobile users use the mobile version outside of the embed?

Right now the forced url works fine
Mobile user see the mobile version but it is still embedded on the page.
I love the look of the mobile version by itself, but i don't want to sacrifice desktop users seeing . . . i still want that to redirect.

Any ideas?


  • I've read a lot of different discussions regarding the mobile version. I still haven't found a real solution to the above situation.

    Situation: Embedded site (Force embed 'checked' for obvious reasons)

    Problem: When mobile viewers access the site, the mobile version is still embedded.

    Solution: ???
    I'd like to have ONLY the mobile version not embedded.
  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator
    edited September 2011

    I'm just trying the embed feature.

    I set my embed page as index2.html and redirected to that page.

    I've told my mobile users to set their link to, which then serves them the mobile version.

    It obviously won't work if a new mobile user goes to your site, but you could have a 'Mobile site' link on your home page.
  • how to make embeded like that?? can u give me the code script??
  • I don't see how it is vanilla's responsibility, if you are using not using vanilla handle the request.

    It is the responsibility of the script that embeds vanilla. Vanilla has to have some awareness of the agent.

    grep is your friend.

  • hint look at IsMobile() under library/core/functions.general.php

    grep is your friend.

Sign In or Register to comment.