PDA

View Full Version : Share code news skin Hot [phong cách teen]


admin
05-22-2009, 11:36 PM
Code: T-News
Version: 1.0
Release date: 31/12/2008
Style: Design Freebies Heaven

Demo: [Only registered and activated users can see links]
[Only registered and activated users can see links]
Yêu cầu: host hỗ trợ php (không database, dung lượng chỉ 462,1Kb, tốc độ load phụ thuộc sever của bạn)

Install:
- Giải nén file T-news.v1.0.zip
- upload toàn bộ file & folder lên host

More Infomation:
- Tích hợp sẵn firewall, mặc định là disabled làm theo hướng dẫn bên dưới để bật firewall:
CHMOD folder firewall => 777
rename file ".htaccess[1]" trong thư mục firewall thành ".htaccess"

Edit file index.php:

//$firewall = 'firewall/firewall.php';
//if( file_exists($firewall) ){ require_once($firewall); }
//check_attack($conf['path'].'/attackips.txt', $conf['save_log']);Sửa thành:
$firewall = 'firewall/firewall.php';
if( file_exists($firewall) ){ require_once($firewall); }
check_attack($conf['path'].'/attackips.txt', $conf['save_log']);Edit file: config.php (config theo ư bạn)

[Only registered and activated users can see links]

Nguồn: ITVNN
Ai có thắc mắc ǵ Reply tại đây nhé!!!

Nhậm Hiền Tề
05-23-2009, 01:47 PM
Cái code news này bên TVC nó tích hợp chạy ngon hơn và giao diện đẹp hơn, nhưng code này nhiều khi cái tin tuổi trẻ nhiều lúc nó thích th́ load không thích th́ thôi dùng mệt lắm.
Nếu ai dùng th́ ḿnh cho thêm các bạn code này, sau khi tải file đính kèm trên mà admin post về bạn giải nén nó ra rồi vào mở file menu.html (news\style\dream\box\menu.html) đường dẫn thế nha, rồi bạn mở code đó ra thêm vào chỗ nào mà bạn muốn nó hiện ra, trong này có thông số 20 và 50, 20 là số bài muốn hiện c̣n 50 th́ kích thước mà mỗi một bài nó hiện ra, nhưng muốn nó cập nhật bài viết mới từ forum của các bạn th́ các bạn phải vào admincp kích hoạt chức năng External Data Provider th́ nó mới làm tốt công việc trên nhé.
Kích hoạt chức năng đó bạn vào: vBulletin Options > External Data Provider > Enable External Javascript > Yes, thế là ok.

Code mà các bạn muốn chèn:

<script type="text/javascript" src="[Only registered and activated users can see links]"></script>

<script type="text/javascript">
<!--
var max = 20;

if(threads.length < max) max = threads.length;

for (i = 0; i < max; i++)
{
if (threads[i].title.length > 50)
{ threads[i].title = threads[i].title.substring(0, 50) + '...'; }
document.write('<img src="[Only registered and activated users can see links]"><a href="[Only registered and activated users can see links]' + threads[i]['threadid'] + '" target="_blank" style="font-weight:bold;">' + threads[i]['title'] + '</a><br>');
}
//-->
</script>

nguyentientai
12-16-2009, 10:15 AM
Code: T-News
Version: 1.0
Release date: 31/12/2008
Style: Design Freebies Heaven

Demo: [Only registered and activated users can see links]
[Only registered and activated users can see links]
Yêu cầu: host hỗ trợ php (không database, dung lượng chỉ 462,1Kb, tốc độ load phụ thuộc sever của bạn)

Install:
- Giải nén file T-news.v1.0.zip
- upload toàn bộ file & folder lên host

More Infomation:
- Tích hợp sẵn firewall, mặc định là disabled làm theo hướng dẫn bên dưới để bật firewall:
CHMOD folder firewall => 777
rename file ".htaccess[1]" trong thư mục firewall thành ".htaccess"

Edit file index.php:

//$firewall = 'firewall/firewall.php';
//if( file_exists($firewall) ){ require_once($firewall); }
//check_attack($conf['path'].'/attackips.txt', $conf['save_log']);Sửa thành:
$firewall = 'firewall/firewall.php';
if( file_exists($firewall) ){ require_once($firewall); }
check_attack($conf['path'].'/attackips.txt', $conf['save_log']);Edit file: config.php (config theo ư bạn)
:monkey84:
[Only registered and activated users can see links]

Nguồn: ITVNN
Ai có thắc mắc ǵ Reply tại đây nhé!!!


Nói hay wua Link Diea rồi ông bạn ạ?.

admin
12-16-2009, 01:47 PM
Đă fix link download! Anh em cần dùng th́ down lại nhé!