whoa, also noticed after installing this style that some of my pages went screwy, so I rebooted, went back to my site and they were still screwey, for eample the search page was using the pda style!? So in a panic I deleted the pda style and things went back to normal, any idea? I didn't have the pda style set to default or anything like that either. thanks!
WAP / Pocket PC skin: Mobile Alabama
Collapse
X
-
Hi Sross, I think you have greater problems than just skin installation / removal. Perhaps some corrupt tables? Have you run a check / repair? A vB tech can correct me if I'm wrong, but I don't think installing or uninstalling an XML skin file could do this. Especially considering that this is probably the simplest skin out there; most of the templates are stripped down to almost nothing.
>>I think building some autodetection into this is the best solution. Automatically redirect PDAs to that style...
I posted the code for that somewhere else; let me find it.... I put this in global.php but I believe it can go in the php_include template as well. No, now that I think about it, it might be too late in that template.. I put it in global right below:
PHP Code:else
{
// no style specified - use default
$styleid = $vboptions['styleid'];
}
PHP Code:// BROWSER DETECT
$browsers = array(
"Windows CE",
"WebTV",
"AvantGo",
"Blazer",
"PalmOS",
"lynx",
"Go.Web",
"Elaine",
"ProxiNet",
"ChaiFarer",
"Digital Paths",
"UP.Browser",
"Mazingo",
"Mobile",
"T68",
"Syncalot",
"NetFront",
"Danger",
"Symbian",
"Nokia",
"Xiino",
"AU-MIC",
"EPOC",
"BlackBerry",
"Wireless",
"Handheld"
);
if(preg_match('/('.implode('|', $browsers).')/i', $_SERVER['HTTP_USER_AGENT'], $match))
{
$mobile=1;
}
else if (isset($_SERVER['HTTP_UA_OS']))
{
if (strstr($_SERVER['HTTP_UA_OS'],"POCKET PC") !== false)
{
$mobile=1;
}
}
else
{
$mobile=0;
}
if ($mobile==1)
{
//echo "You are on a mobile device!";
$styleid='8';
}
Comment
-
"Hi Sross, I think you have greater problems than just skin installation / removal. Perhaps some corrupt tables? Have you run a check / repair? A vB tech can correct me if I'm wrong, but I don't think installing or uninstalling an XML skin file could do this. Especially considering that this is probably the simplest skin out there; most of the templates are stripped down to almost nothing."
Hi, I tried a repair and optimize and no luck. I really have no idea what has caused it. I know for certain all I did was:
upload the template as a 'new template'
then went to the forum style id of the new template to look at it.
I then went to my gallery page and it was white
I then went back to the forum and it seemed ok, went to my forum search page and it was stripped down as if it were the mobile design
I then deleted the design, my forum search page went back to normal, I went to the gallery page and now it's all hosed for some reason. http://www.apug.org/gallery
Comment
-
-
-
Does this work with Blackberrys ? Has anyone tested it ?
The BB browser seems to choke on PHP....
( and on java script )
DougComment
-
Well I added the Style and uploaded the auto select code - It all seems to work great on the blackberry ... One comment though - The blackberry was redirected to the PDA style automatically BUT the style NAME at the bottom still shows my default Style choice - I guess that is to make sure that when I log in with a PC I still get the right style ??
Froum is at http://www.talonclub.com/forum/index.php?styleid=22
Thanks for the effort - works great -
DougComment
-
-
Originally posted by Silver_2000Does this work with Blackberrys ? Has anyone tested it ?
The BB browser seems to choke on PHP....
( and on java script )
Doug
it's pretty fantastic, actually.Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment