Aqua-Soft Forums: Option To Go Straight To Forums If Ip.content Installed? - Aqua-Soft Forums

Jump to content

Aqua-Soft Mobile

Please keep all threads in this forum related to the Aqua-Soft Mobile skin.
Quicklinks: Purchase | Download: 2.0 - Invision Power Board 3.1 (Updated 2/14/2011) ยท 1.0 - Invision Power Board 3.0 | Additional User Agents | How to Install | Assigning User Agents
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Option To Go Straight To Forums If Ip.content Installed? Rate Topic: -----

#1 User is offline   dyelton Icon

  • Group: Subscriber*
  • Posts: 20
  • Joined: 04-November 09

Posted 22 November 2010 - 03:14 PM

It used to work this way, but with the last couple of releases, IP.Content is loading on the mobile skin instead of it going straight to the forums. It looks horrible since I'm using a pretty heavily customized template for IP.Content on my board. I'd rather anyone that gets the mobile skin loaded be redirected to the forums instead of having IP.Content display.

Any way around this to make it work like it used to in previous versions?

Thanks!
0

#2 User is offline   Timan Icon

  • Group: Administrators
  • Posts: 4,741
  • Joined: 08-November 02

Posted 24 November 2010 - 07:45 PM

Ah I've not had the chance to mess with ip.content. I'll have to look into skinning that (if its logical) after I finish blogs.
0

#3 User is offline   dyelton Icon

  • Group: Subscriber*
  • Posts: 20
  • Joined: 04-November 09

Posted 25 November 2010 - 05:16 PM

I'm not wanting IP.Content being skinned necessarily, I just want the mobile version to go to the forums automatically if IP.Content is enabled.
0

#4 User is offline   Timan Icon

  • Group: Administrators
  • Posts: 4,741
  • Joined: 08-November 02

Posted 26 November 2010 - 06:09 AM

Only thing I can suggest, is if there is a mobile template for it.

Add a simple redirect/refresh thingy to go to your forums.


<meta http-equiv="refresh" content="0;url=http://website.com/forums/" />

0

#5 User is offline   dyelton Icon

  • Group: Subscriber*
  • Posts: 20
  • Joined: 04-November 09

Posted 26 November 2010 - 01:52 PM

View PostTiman, on 26 November 2010 - 06:09 AM, said:

Only thing I can suggest, is if there is a mobile template for it.

Add a simple redirect/refresh thingy to go to your forums.


<meta http-equiv="refresh" content="0;url=http://website.com/forums/" />



Unfortunately I do not see a mobile template for it in your mobile skin. I'm curious why it used to redirect to the forums automatically, but that functionality changed somewhere in the last 2-3 versions of your mobile skin?
0

#6 User is offline   Timan Icon

  • Group: Administrators
  • Posts: 4,741
  • Joined: 08-November 02

Posted 26 November 2010 - 02:37 PM

View Postdyelton, on 26 November 2010 - 01:52 PM, said:

Unfortunately I do not see a mobile template for it in your mobile skin. I'm curious why it used to redirect to the forums automatically, but that functionality changed somewhere in the last 2-3 versions of your mobile skin?


Nope, my skin has no control over how the site works. Just how it looks.
0

#7 User is offline   miguelmayo Icon

  • Group: Subscriber*
  • Posts: 5
  • Joined: 06-November 09

Posted 15 December 2010 - 07:16 AM

I racked my brains on this subject, I use upportal for my homepage on the desktop and it renders horribly on the aquaskin, but I used the ipb-portal and built in some content tailered for the aquaskin and it looks great but getting it to switch when a mobile phone user was a problem. I found a solution with a script offered by this guy - you must pay for it if its a commercial site, I am not but I made a donation for the script anyway.

http://detectmobilebrowsers.mobi/

download and put the php file in your forum root, mobile_device_detect.php in the same folder as the ipb file initdata.php, then edit that file with this

change
if ( ! defined( 'IPS_DEFAULT_PUBLIC_APP' ) )
{
	define( 'IPS_DEFAULT_PUBLIC_APP', 'ipcontent' );
}


to this substituting the ap of your choice for desktop and mobile my aps are uportal and portal, they can be switched to index or whatever you use.

line 19 add
require_once('mobile_device_detect.php');
$mobile = mobile_device_detect();


line 46 change to
/**
 * Default app name
 * You can set this in your own scripts before 'initdata.php' is required.
 */
if ( ! defined( 'IPS_DEFAULT_PUBLIC_APP' ) )
{
	if($mobile =='0')
	{
	define( 'IPS_DEFAULT_PUBLIC_APP', 'uportal' );
	}
else
	{
	define( 'IPS_DEFAULT_PUBLIC_APP', 'portal' );
	}
}


my forum
http://www.vfrd.com

This post has been edited by miguelmayo: 15 December 2010 - 07:28 AM

0

#8 User is offline   dyelton Icon

  • Group: Subscriber*
  • Posts: 20
  • Joined: 04-November 09

Posted 15 December 2010 - 03:07 PM

Here is my workaround. A simple PHP script that I use as my index.php file in my site's root directory:


<?php
//setting the variables
$ipod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod");
$iphone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone");

//detecting device
if ($ipod == true || $iphone == true){
header( 'Location: http://www.urbanplan...rums/index.php/' ) ;
} else {
header( 'Location: http://www.urbanplan...es&folder=&id=4' ) ;
//header( 'Location: http://www.urbanplan...orums/index.php' ) ;
}
?>
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic