GIỚI THIỆU
Bài viết giúp các bạn tạo được 1 bbcode với phương thức hoạt động đơn giản, dễ dàng cho các bạn nghiên cứu và tạo thêm các bbcode khác theo ý tưởng
P/S: Nghiên cứu để làm bằng php code mà còn ngu nên chưa được, dùng tạm html và css. Các pro nào biết thì chỉ giáo bằng php nhé!
DEMO
Member sẽ thấy
Guest thấy
DEMO ONLINE
http://thíchháthò.vn/t/kaspersky-anti-virus-2013-13-0-1-4190-full.337/
YÊU CẦU
Đã cài addon Custom BBCode Manager 1.3.x
CÁCH THỰC HIỆN
1. Upload đính kèm
2. Thêm vào header (trên thẻ </xen:hook>)
3. Vào AdminCP > BB Code Manager > Create New BB CodeMã:<script type="text/javascript"> $(document).ready(function(){ $("a#cyandl_alert").click(function(){ alert("Vui lòng đăng nhập để thực hiện thao tác!"); }); }); </script> <xen:if is="{$visitor.user_id}"> <style> .cyan_dlbox:hover {background: #0072b9 !important;} #cyan_dlbox_off {display: none;} </style> <xen:else /> <style> .cyan_dlbox2:hover {background: #D12353 !important;} #cyan_dlbox_on {display: none;} </style> </xen:if>
điền thông số như sau
BB Code Title: Download Button
BB Code Description: Tạo button download chỉ thành viên mới có thể download
BB Code Tag: down
Example: [DOWN]Links goes here[/DOWN]
Activate BB Code: ON
PHP Callback: KingK_BbCodeManager_BbCode_Formatter_Default :: parseTagDown
Editor buttons options
Editor button: ON
Button image methods: Direct Image
xong thì SAVE lại!!
4. Vào AdminCP > Buttons Manager > LTR Editor Visual Management (Left-to-Right)
kéo nút download xuống
Click Update Now!
XONG rồi đó!![]()

BBcode tạo download button 2013-06-26
Tạo button download sử dụng bbcode
Recent Reviews
comments powered by Disqus