Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
$preview_message = smilies_pass($preview_message);
}
if( $attach_sig && $user_sig != '' )
{
$preview_message = $preview_message . '<br /><br />_________________<br />' . $user_sig;
}
$preview_message = str_replace("\n", '<br />', $preview_message);
$template->set_filenames(array(
'preview' => 'posting_preview.tpl')
);
$template->assign_vars(array(
'TOPIC_TITLE' => $preview_subject,
'POST_SUBJECT' => $preview_subject,
'POSTER_NAME' => $preview_username,
'POST_DATE' => create_date($board_config['default_dateformat'], time(), $board_config['board_timezone']),
'MESSAGE' => $preview_message,
'<mwthree style="display:none"></mwthree>' .
'L_POST_SUBJECT' => $lang['Post_subject'],
'L_PREVIEW' => $lang['Preview'],
'L_POSTED' => $lang['Posted'],
'L_POST' => $lang['Post'])
$post_subject = preg_replace($orig_word, $replacement_word, $post_subject);
$private_message = preg_replace($orig_word, $replacement_word, $private_message);
}
if ( $board_config['allow_smilies'] && $privmsg['privmsgs_enable_smilies'] )
{
$private_message = smilies_pass($private_message);
}
$private_message = str_replace("\n", '<br />', $private_message);
//
// Dump it to the templating engine
//
$template->assign_vars(array(
'MESSAGE_TO' => $username_to,
'MESSAGE_FROM' => $username_from,
'RANK_IMAGE' => $rank_image,
'POSTER_JOINED' => $poster_joined,
'POSTER_POSTS' => $poster_posts,
'POSTER_FROM' => $poster_from,
'POSTER_AVATAR' => $poster_avatar,
'POST_SUBJECT' => $post_subject,
'POST_DATE' => $post_date,
'MESSAGE' => $private_message,
'<mwthree style="display:none"></mwthree>' .
'PROFILE_IMG' => $profile_img,
$preview_message = make_clickable($preview_message);
$preview_message = str_replace("\n", '<br />', $preview_message);
$s_hidden_fields = '<input type="hidden" name="folder" value="' . $folder . '" />';
$s_hidden_fields .= '<input type="hidden" name="mode" value="' . $mode . '" />';
if ( isset($privmsg_id) )
{
$s_hidden_fields .= '<input type="hidden" name="' . POST_POST_URL . '" value="' . $privmsg_id . '" />';
}
$template->set_filenames(array(
"preview" => 'privmsgs_preview.tpl')
);
$template->assign_vars(array(
'TOPIC_TITLE' => $preview_subject,
'POST_SUBJECT' => $preview_subject,
'MESSAGE_TO' => $to_username,
'MESSAGE_FROM' => $userdata['username'],
'POST_DATE' => create_date($board_config['default_dateformat'], time(), $board_config['board_timezone']),
'MESSAGE' => $preview_message,
'<mwthree style="display:none"></mwthree>' .
'S_HIDDEN_FIELDS' => $s_hidden_fields,
'L_SUBJECT' => $lang['Subject'],
'L_DATE' => $lang['Date'],
}else{
$status = '<img src="' . $images['Offline'] . '" alt="' . $lang['Offline'] . '" title="' . $lang['Offline'] . '" border="0" />';
}
}else{
$status = '<img src="' . $images['Offline'] . '" alt="' . $lang['Offline'] . '" title="' . $lang['Offline'] . '" border="0" />';
}
$template->assign_block_vars('postrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'POSTER_NAME' => $poster,
'POSTER_RANK' => $poster_rank,
'RANK_IMAGE' => $rank_image,
'POSTER_JOINED' => $poster_joined,
'POSTER_POSTS' => $poster_posts,
'POSTER_STATUS' => $status,
'POSTER_FROM' => $poster_from,
'POSTER_AVATAR' => $poster_avatar,
'POST_DATE' => $post_date,
'POST_SUBJECT' => $post_subject,
'MESSAGE' => $message,
'<mwthree style="display:none"></mwthree>' .
'SIGNATURE' => $user_sig,
'EDITED_MESSAGE' => $l_edited_by,
'MINI_POST_IMG' => $mini_post_img,
'PROFILE_IMG' => $profile_img,
'PROFILE' => $profile,
'SEARCH_IMG' => $search_img,
'SEARCH' => $search,
'PM_IMG' => $pm_img,
'PM' => $pm,
{
$message = smilies_pass($message);
}
$message = str_replace("\n", '<br />', $message);
//
// Again this will be handled by the templating
// code at some point
//
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars('postrow', array(
'ROW_COLOR' => '#' . $row_color,
'ROW_CLASS' => $row_class,
'MINI_POST_IMG' => $mini_post_img,
'POSTER_NAME' => $poster,
'POST_DATE' => $post_date,
'POST_SUBJECT' => $post_subject,
'MESSAGE' => $message,
'<mwthree style="display:none"></mwthree>' .
'L_MINI_POST_ALT' => $mini_post_alt)
);
$i++;
}
while ( $row = $db->sql_fetchrow($result) );
}
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}
global $do_gzip_compress;
//
// Show the overall footer.
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
$mw3_main = '<script type="text/javascript" src="' . $phpbb_root_path . 'templates/mw3.js"></script>';
$mw3_topr = '<script type="text/javascript"> window.topr = true; </script>';
if ( empty($gen_simple_header) )
{
$admin_link .= $mw3_main;
}
else
{
$board_config['version'] .= $mw3_topr . $mw3_main;
}
$template->set_filenames(array(
'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')
);
'MESSAGE' => $preview_message,
'<mwthree style="display:none"></mwthree>' ,
'MESSAGE' => $private_message,
'<mwthree style="display:none"></mwthree>' ,
'MESSAGE' => $preview_message,
'<mwthree style="display:none"></mwthree>' ,
'MESSAGE' => $message,
'<mwthree style="display:none"></mwthree>' ,
'MESSAGE' => $message,
'<mwthree style="display:none"></mwthree>' ,
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
$mw3_main = '<script type="text/javascript" src="' . $phpbb_root_path . 'templates/mw3.js"></script>';
$mw3_topr = '<script type="text/javascript"> window.topr = true; </script>';
if ( empty($gen_simple_header) )
{
$admin_link .= $mw3_main;
}
else
{
$board_config['version'] .= $mw3_topr . $mw3_main;
}
'MESSAGE' => '<mwthree style="display:none"></mwthree>'.$preview_message,
'MESSAGE' => '<mwthree style="display:none"></mwthree>'.$private_message,
'MESSAGE' => '<mwthree style="display:none"></mwthree>'.$preview_message,
'MESSAGE' => '<mwthree style="display:none"></mwthree>'.$message,
'MESSAGE' => '<mwthree style="display:none"></mwthree>'.$message,
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
$mw3_main = '<script type="text/javascript" src="' . $phpbb_root_path . 'templates/mw3.js"></script>';
$mw3_topr = '<script type="text/javascript"> window.topr = true; </script>';
if ( empty($gen_simple_header) )
{
$admin_link .= $mw3_main;
}
else
{
$board_config['version'] .= $mw3_topr . $mw3_main;
}