Cách làm như sau:
Tải file sau về và upload lên host.
statistics.zip
Tiến hành cài đặt thêm bảng mới vào cơ sở dữ liệu theo đường link:
http://yoursite.com/install.php
Mở file index.php tìm dòng:
require_once ROOT_DIR.'/engine/init.php';
thêm vào sau:
require_once ROOT_DIR.'/engine/modules/statistics.php';
tiếp tục tìm:
$tpl->set('{login}',$login_panel);
thêm vào sau:
$tpl->set('{statistics}',$statistics);
Giờ bạn hãy chèn đoạn code sau {statistics} vào file main.tpl trong template của bạn. Bạn có thể tùy chọn nơi đặt code để trình bày module này.
0 nhận xét:
Đăng nhận xét