His code for the function.php needed a little tweaking to get it working.
- Code: Select all
$user_agent = $_SERVER['HTTP_USER_AGENT']; $is_mobile = preg_match("/(up-browser)|(blackberry)|(windows ce)|symbian|palm|nokia|ipod|iphone|sonyericsson/i", $user_agent); if ($is_mobile) { $template_name = “subSilver_mobile”;
Now Ive got it detecting the mobile browsers when they go to the forums but I get the following message when using a mobile, "Could not open subSilver_mobile template config file".
This happens no mater what I change the template to (template name changes to match the template I use).
I am running phpbb2.0.23 and running out of ideas so could any one help me ?
The site its meant to be working in www.astrochat.co.uk/forum/ if you want to test it.
Not to worry I solved it
$template_name = "subSilver_mobile";
Needs to altered to
$template_name = 'subSilver_mobile';
gah such a nOOb