@ Hippie, all of the addon codes that were on the first post have been incorporated into the style.
That image resize code is in the style download now, in the overall_header.html template.
- Code: Select all
window.onload = resizeimg;
function resizeimg()
{
if (document.getElementsByTagName)
{
for (i=0; i<document.getElementsByTagName('img').length; i++)
{
im = document.getElementsByTagName('img')[i];
if (im.width > 225)
{
im.style.width = '100%';
}
}
}
}
@ Kjell, hey my old friend. It has been awhile.
The code in the session should not effect the ucp. That sounds weird.
Do you have this in your includes/session.php file?
- Code: Select all
// phpBB_mobile_detect - Mobile Stlye Redirect MOD
$this->data['is_mobile'] = false;
include_once($phpbb_root_path . 'includes/mods/mobile_device_detect.' . $phpEx);
$this->data['is_mobile'] = mobile_device_detect();
if ($this->data['is_mobile'] == true)
{
$style = 3;
$this->data['is_mobile'] = true;
}
// phpBB_mobile_detect End
Of course with the $style = 3; changed to your mobile style install number.
You were suppose to add that code above after the...
- Code: Select all
function setup($lang_set = false, $style = false)
{
global $db, $template, $config, $auth, $phpEx, $phpbb_root_path, $cache;
And that second edit in the session.php is needed only if you want your regular users to use index.php?style=3