1 Attachment(s)
[BB Codes] Xem và download file PDF
Đây là một BB Code khá hữu ích trong vấn đề share tài liệu trên diễn đàn!
Vào AdminCP => Custome BBCode Codes => BB Code Manager => Add New BBCode. Điền nội dung như sau:
Title: PDF
Tag: PDF
Replacement:
HTML Code:
<p align="center"><a href="{param}" target="_blank"><b>Download File</b></a><br>
<iframe src="http://docs.google.com/gview?url={param}&embedded=true" style="width: 100%; height: 600px;" frameborder="0"></iframe></p>
Example:
Code:
[PDF]http://www.mburoja.net/PDF_files/39168eb0-cdb6-41f9-b010-6561c9e46edf.pdf[/PDF]
Description: View file PDF Online
Use {option} NO
Button Image: Code:
Code:
http://www.udhezimi.com/images/buttons/pdf.gif
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: No
Disable Smilies Within This BB Code: NO
Disable Word Wrapping Within This BB Code: NO
Disable Automatic Link Parsing Within This BB Code: YES
Save !
Tôii gửi thêm cho các bạn một BBcode PDF
Tôi tìm mãi mọi cái code PDF đều thấy khó sử dụng nhưng tôi thấy cái này dễ dùng các bạn thử xem.
Trích:
Tiêu đề: PDF Online
BB Code Tag Name: pdf
Replacemen:
PHP Code:
<p align="center"><a href="{param}" target="_blank"><b>Download File</b></a><br>
<iframe src="http://docs.google.com/gview?url={param}&embedded=true" style="width: 100%; height: 600px;" frameborder="0"></iframe></p>
* Example: [pdf ]http://..........[/pdf]
* Description: Bỏ trống
* Use {option}: NO
* Button Image (Optional): images/bbcode/pdf.gif
* Remove Tag If Empty: YES
* Disable BB Code Within This BB Code: NO
* Disable Smilies Within This BB Code: NO
* Disable Word Wrapping Within This BB Code: NO
* Disable Automatic Link Parsing Within This BB Code: YES
theo tôi các bạn lên up ảnh lên host
Demo: http://kynang-pccc-cnch.com/ktpccc/s...A9u-h%E1%BB%99