Код: Выделить всё
'user_browser' => ((isset($row['browser'])) ? ' <img src="' . $phpbb_root_path . 'images/' . $row['browser'] . '.png" title="(' . $row['browser'] . ') alt="(' . $row['browser'] . ')" />' : '' ), Код: Выделить всё
'user_browser' => ((isset($row['browser'])) ? ' <img src="' . $phpbb_root_path . 'images/' . $row['browser'] . '.png" title="(' . $row['browser'] . ') alt="(' . $row['browser'] . ')" />' : '' ), Если человек ставил мод, то все понятно даже на ощупь.Пчелкин писал(а):и непонятно..где, в каком файле, что на это менять?
Код: Выделить всё
<?php
if( strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'j2me/midp') !=true
AND strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'ppc') !=true
AND strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'windows ce')!=true
AND strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'symbian') !=true
AND strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'midp-2.0') !=true
AND strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 's60') !=true
AND (!(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'opera') ===false)
OR !(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mozilla') ===false)))
define('USER_CLIENT', 'PC');
if(USER_CLIENT == 'PC')
{
header('Location: index.php');
exit();
}
else
{
header('Location: index.php?style=id'); // 'id' styles mobile
exit();
}
?>
Для этого запроса таблицы ведь нет, только идентификация.kreator писал(а):'id' styles mobile
в phpbb3.0.9 вот так выглядит эта строчкаSheer писал(а):В файле includes/functions.php
НайтистрокуКод: Выделить всё
function obtain_users_online_string($online_users, $forum_id = 0) { global $config, $db, $user, $auth;Заменить наКод: Выделить всё
global $config, $db, $user, $auth;Иначе debug ругаетсяКод: Выделить всё
global $config, $db, $user, $auth, $phpbb_root_path;
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3785: Undefined variable: phpbb_root_path
На что?grishin писал(а):ДЕБАГ ругается
Код: Выделить всё
global $config, $db, $user, $auth; Код: Выделить всё
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4106: Undefined variable: phpbb_root_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4106: Undefined variable: phpbb_root_path
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4106: Undefined variable: phpbb_root_pathКод: Выделить всё
function obtain_users_online_string($online_users, $item_id = 0, $item = 'forum')
{
global $config, $db, $user, $auth;?grishin писал(а):global $db, $config, $template, $SID, $_SID, $user, $auth, $phpEx, $phpbb_root_path;
Код: Выделить всё
global $config, $db, $user, $auth, $phpbb_root_path;Подскажите как в этой версии вывисти не только иконки но и текст рядом с иконками.nissin писал(а):Вот такой вариант:
http://phpbb3.pl/viewtopic.php?f=686&t=862
Код: Выделить всё
$agent = get_useragent_names($useragent);
$result = '<img src="'.ua_get_filename($agent['system'], 'os').'" style="cursor: pointer" title="'.htmlspecialchars($agent['system']).'" alt="'.htmlspecialchars($agent['system']).'" />';
$result .= '<img src="'.ua_get_filename($agent['browser'], 'browser').'" style="cursor: pointer" title="'.htmlspecialchars($agent['browser'].' '.$agent['browser_version']).'" alt="'.htmlspecialchars($agent['browser']).'" />';
$description = addslashes($useragent) . '\n\nSystem:\t\t' . addslashes($agent['system']);
$description .= '\nPrzeglądarka:\t' . addslashes($agent['browser'].' '.$agent['browser_version']);
return '<span class="user-agent" onclick="alert(\'' . htmlspecialchars($description) . '\')">' . $result . '</span>';Код: Выделить всё
'.htmlspecialchars($agent['system']).'Код: Выделить всё
$result = '<img src="'.ua_get_filename($agent['system'], 'os').'" style="cursor: pointer" title="'.htmlspecialchars($agent['system']).'" alt="'.htmlspecialchars($agent['system']).'" /> '.htmlspecialchars($agent['system']).'<hr>';
$result .= '<img src="'.ua_get_filename($agent['browser'], 'browser').'" style="cursor: pointer" title="'.htmlspecialchars($agent['browser'].' '.$agent['browser_version']).'" alt="'.htmlspecialchars($agent['browser']).'" /> '.htmlspecialchars($agent['browser']).''.htmlspecialchars($agent['browser_version']).'';