Reply to topic  [ 3 posts ] 
Install Spoiler [Mod:How To] 
Author Message

Joined: Thu Aug 28, 2008 3:42 am
Posts: 3
Post Install Spoiler [Mod:How To]
Go into the acp then go to the posting tab and select BBcodes. Then click add a new bbcode then on the next page add the following info...

BBCode Usage enter the following

[Spoiler]{TEXT}[/Spoiler]

And in the HTML replacement enter

<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>Spoiler:</b> <input type="button" value="Show" style="width:45px;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><div class="quotecontent"><div style="display: none;">{TEXT}</div></div></div>


Then check the last box and click Submit!


Last edited by extentds on Thu Aug 28, 2008 1:31 pm, edited 1 time in total.



Thu Aug 28, 2008 3:45 am
Profile
Support Team
Support Team

Joined: Sat Jan 05, 2008 7:30 am
Posts: 222
Post 
Did you remember to check the box that says "Disable HTML in this post"?


Thu Aug 28, 2008 4:42 am
Profile

Joined: Thu Aug 28, 2008 3:42 am
Posts: 3
Post 
NVM got it :)


Thu Aug 28, 2008 1:32 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.

phpBB SEO