Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2014-07-17 15:15:56

sinvenus
Member
Registered: 2012-02-01
Posts: 55

How to redirect to subdomain mobile

Hi

I want to redirect the main domain "site.com/mobile/" to sub-domain "m.site.com"
How to?

Thanks

Offline

#2 2014-07-17 16:29:51

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: How to redirect to subdomain mobile

Latest version 1.0.10 supports this by default. Please see INSTALL.txt.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2014-07-22 17:08:23

sinvenus
Member
Registered: 2012-02-01
Posts: 55

Re: How to redirect to subdomain mobile

Is it possible to have the code to implement a link in the mobile version, by pass redirect, to the full version of the site, like m.xhasmter has.

unx43Bq.jpg?1


I think it would be nice for anyone who uses iPad.

Offline

#4 2014-07-23 06:09:32

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: How to redirect to subdomain mobile

Yes, it is possible, but only if you use the subdomain option in the latest version 1.0.10.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2014-07-23 08:54:21

sinvenus
Member
Registered: 2012-02-01
Posts: 55

Re: How to redirect to subdomain mobile

I use the subdomain and the last version, m.xfapzap.com

What changes should I make?

thank you

Offline

#6 2014-07-24 06:36:05

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: How to redirect to subdomain mobile

Admin -> Extend -> Module Manager -> mobile -> config and disable redirect. This way only users that select if they want to use the mobile or desktop version will be redirected. Or another better method would be that on first visit redirect to mobile, but if a session variable is set, then dont redirect. Edit index.php and find:

if (VModule::enabled('mobile')) {
    $mobile = (VBrowser::get('is_mobile')) ? TRUE : FALSE;
    if (($mobile && VF::cfg_item('module.mobile.redirect')) OR
        $module == 'mobile') {
        require BASE_DIR.'/mobile/mobile.php';
        VMobile::process();
    }
}

Replace with:

if (isset($_GET['desktop'])) {
$_SESSION['desktop'] = 1;
}

if (VModule::enabled('mobile') && !isset($_SESSION['desktop'])) {
    $mobile = (VBrowser::get('is_mobile')) ? TRUE : FALSE;
    if (($mobile && VF::cfg_item('module.mobile.redirect')) OR
        $module == 'mobile') {
        require BASE_DIR.'/mobile/mobile.php';
        VMobile::process();
    }
}

In the mobile version you add a link to www.domain.com/?desktop=true so this way redirect will not be forced.

Will add this in the next version.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#7 2014-07-25 14:41:54

sinvenus
Member
Registered: 2012-02-01
Posts: 55

Re: How to redirect to subdomain mobile

How do I convert all my videos at once for Mobile (not one by one at a time)?

Offline

#8 2014-07-26 07:19:19

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: How to redirect to subdomain mobile

This is not possible by default. It will be possible in the next major version.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB