Vào Admincp > Styles manager > Add New Template
Tiêu đề: TUOITREIT_VN
Nhập code sau
Vào host, tạo tập tin tuoitreit_ck.php ngang hàng index.php dán nội dung sau
Lưu tất cả lại là xong
Chúc các bạn thành công!
Tiêu đề: TUOITREIT_VN
Nhập code sau
HTML:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>
{vb:raw headinclude}
<title>Chứng khoán điện tử -{vb:raw vboptions.bbtitle}</title>
{vb:cssfile register.css}
<title><vb:if condition="$show['coppa']">{vb:rawphrase coppa} </vb:if>{vb:rawphrase register_at_x, {vb:raw vboptions.bbtitle}}</title>
{vb:raw headinclude_bottom}
</head>
<body>
{vb:raw header}
{vb:raw navbar}
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<frameset frameborder="NO" border="0" name=fraParent framespacing="0">
<iframe marginwidth="100%" src="http://liveprice.fpts.com.vn/user/stocke/hcm/" name="fraContent" marginwidth="0" marginheight="0" scrolling="auto" noresize frameborder="NO"width="1000" height="750">
</iframe>
</frameset>
{vb:raw footer}
</body>
</html>
PHP:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'test');
define('CSRF_PROTECTION', true);
// change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array('TUOITREIT_VN',
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
// chdir ('/path/to/your/forums');
require_once('./global.php');
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
$navbits = construct_navbits(array('' => 'Chứng khoán điện tử'));
$navbar = render_navbar_template($navbits);
// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'Chung khoan';
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
$templater = vB_Template::create('TUOITREIT_VN');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());
?>
Chúc các bạn thành công!