Thanks!
Code: Select all
<b>[phpBB Debug] PHP Notice</b>: in file <b>/includes/session.php</b> on line <b>1602</b>: <b>preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Delimiter must not be alphanumeric or backslash</b><br />
Try flushing the cache and trying againAurelienazerty wrote:Hi,
I've got a problem with this mod :Il my database I've got :Code: Select all
<b>[phpBB Debug] PHP Notice</b>: in file <b>/includes/session.php</b> on line <b>1602</b>: <b>preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Delimiter must not be alphanumeric or backslash</b><br />
mobile_enabled 1
mobile_agents /iPad|iPhone|iOS|Opera Mobi|BlackBerry|Android|IEMobile|Symbian/
url : http://www.team-azerty.com/forum/
Also, when I go in the ACP, the phpBB Mobile settings are empty, it erase the value in DB as soon I visit the ACP mobile setting page.
Code: Select all
/iPad|iPhone|iOS|Opera Mobi|BlackBerry|Android|IEMobile|Symbian/
I haven't a clue what is happening, but I did fix something similar to this and it should be fixed in the next RCbhavesh wrote:Okay, I don't know what I'm doing wrong. I have the MOD installed, I enabled it and putin the regex field, but when I hit submit, nothing happens. If I click to another window, and go back, the settings did no save. I have tried to install this thing like 23908420934 times!! What is going on?!?!Code: Select all
/iPad|iPhone|iOS|Opera Mobi|BlackBerry|Android|IEMobile|Symbian/
Code: Select all
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* @package acp
*/
class acp_mobile
{
var $u_action;
function main($id, $mode)
{
global $config, $db, $template;
$form_name = 'acp_mobile';
add_form_key($form_name);
if(isset($_POST['submit']))
{
if (!check_form_key($form_name))
{
trigger_error($user->lang['FORM_INVALID']. adm_back_link($this->u_action));
}
$mobile_enabled = request_var('enabled', $config['mobile_enabled']);
$mobile_agents = request_var('agents', (string) $config['mobile_agents'], true);
set_config('mobile_agents', $mobile_agents);
set_config('mobile_enabled', $mobile_enabled);
}
$this->tpl_name = 'acp_mobile';
$this->page_title = 'ACP_MOBILE';
$template->assign_vars(array(
'U_ACTION' => $this->u_action,
'MOBILE_ENABLED' => $config['mobile_enabled'],
'MOBILE_AGENTS' => $config['mobile_agents'],
));
}
}
Code: Select all
$mobile_agents = request_var('agents', (string) false);
Code: Select all
if ($mobile_agents !== false)