Bravo List
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Old 5th October 2021, 20:31
graaf's Avatar
graaf graaf is offline
Senior Member
Join Date: Jun 2014
Posts: 15
Default Multiple spoiler tags tbdev

I've use tbdev 08 and trying to add multiple spoiler tags (forum, comment or torrent desc) and it's not working.

When I click first tag it's open like it should, but when I click second spoiler tag it opens first tag.

Can some help me with this? Thanks!

Code that I use:

PHP Code:
# [Spoiler]TEXT[/Spoiler]

if (stripos($s'[spoiler]') !== false) {

$s preg_replace("/\[spoiler\](.+?)\[\/spoiler\]/is""<div class="smallfont" align="left"><input type="button" value="N&auml;yt&auml;" style="width:75px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') {this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display '';this.innerText ''this.value 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display 'none'this.innerText ''this.value 'Show'; }" /><div style="margin10pxpadding10pxborder1px inset;" align="left"><div style="displaynone;">\\1</div></div></div>"$s);

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 13:16. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2021, vBulletin Solutions Inc.