Share Mod hiện ảnh mặc định khi ảnh trong bài viết bị die

  • Thread starter Thread starter chickIT
  • Start date Start date
chickIT

chickIT

New Member
khi một hình ảnh nào đó trong bài viết bị die (do wap upload die, do url sai...) thì sẽ hiện ảnh mặc định do mình chọn

Đầu tiên vào Admincp ~> Plugins & Products ~> Add New Plugin
Hook Location chọn postbit_display_complete
Title gõ gì cũng được
Plugin PHP Code chèn code

PHP:
if(THIS_SCRIPT=='showthread' || THIS_SCRIPT=='showpost') 
$this->post['message']=str_replace('<img ','<img onerror="this.src=\'http://www.newstyleclan.com/nophoto.png\';" ',$this->post['message']);

nguồn: skinvbb
 
Thanks, forum ta cài lâu rồi
Demo
 

Facebook Comments

Similar threads

Admin
Replies
1
Views
1K
Jaupjts
J
D
Replies
0
Views
718
dgtupltn95
D
K
Replies
1
Views
831
thutuongdu
T
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
624
AdminAdmin is verified member.
Admin
Back
Top