Spoiler Code - Fixed Discuz x1.5 & x2 (VIP)
Thank to member discuz.vn txdhue, hoangtucoi87, 113Open source/function/cache/cache_bbcodes.php
Find$regexp = array (
1 => "/\[{bbtag}]([^\"\[]+?)\[\/{bbtag}\]/is",
2 => "/\[{bbtag}=(['\"]?)([^\"\[]+?)(['\"]?)\]([^\"\[]+?)\[\/{bbtag}\]/is",
3 => "/\[{bbtag}=(['\"]?)([^\"\[]+?)(['\"]?),(['\"]?)([^\"\[]+?)(['\"]?)\]([^\"\[]+?)\[\/{bbtag}\]/is"
);.
Re$regexp = array (
1 => "/\[{bbtag}](.+?)\[\/{bbtag}\]/is",
2 => "/\[{bbtag}=(['\"]?)(.+?)(['\"]?)\](.+?)\[\/{bbtag}\]/is",
3 => "/\[{bbtag}=(['\"]?)(.+?)(['\"]?),(['\"]?)(.+?)(['\"]?)\](.+?)\[\/{bbtag}\]/is"
);Open AdminCP /admin.php?action=misc&operation=bbcode
New BBcode, code spler
Upload images to static/image/common/
Tag : spler
Content:<center><div class="spoiler">
<div class="spoilerheader">
<input type="button" class="spoilerbutton" value="Hide/Show" onClick="n =
this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display
= 'block';} else {n.style.display = 'none';} return false;"/>
</div><div class="spoilerbody" style="display: none; ">
<table><td>
{1}
</td></table>
</div></div></center>Ex Nội dung CommentShow and Hide contentValue: 1
Save
More .... http://discuz.vn/forum.php?mod=viewthread&tid=9982&highlight=spoiler thank you. ต้นฉบับโพสต์โดย popiazaza เมื่อ 2012-1-7 17:28 static/image/common/back.gif
http://forum.discuzthai.com/forum.php?mod=viewthread&tid=16001
ง่ายกว่ามั้ยเอ่ย -.- ...
But this don't work if you have bbcode in spoiler.
Can you try ? sm945dzsm951dzsm940dzsm927dzsm952dzsm946dzsm953dz
หน้า:
[1]