Reply to topic  [ 1 post ] 
Custom BBCodes in a spoiler 

Rating:
Excellent 0%  0%  [ 0 ]
Very Good 0%  0%  [ 0 ]
Good 100%  100%  [ 2 ]
Fair 0%  0%  [ 0 ]
Poor 0%  0%  [ 0 ]
Total votes : 2

Custom BBCodes in a spoiler 
Author Message
User avatar

Joined: Sat Aug 02, 2008 12:46 pm
Posts: 112
Location: Catalina House
Post Custom BBCodes in a spoiler
This BBCode puts all custom BBCodes in a spoiler. This makes the posting page look nicer and save some space.

Open: styles/{YOURTHEME}/template/posting_buttons.html

Find:
Code:
<!-- BEGIN custom_tags -->
      <input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
   <!-- END custom_tags -->

Replace with:
Code:
<span><input type="button" class="button2" value="Show Custom BBCodes" onclick="if (this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = '';      this.innerText = ''; this.value = 'Hide Custom BBCodes'; } else { this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show Custom BBCodes'; }" /></span><span style="margin:5px;"><span style="display: none;"><br /><!-- BEGIN custom_tags -->
      <input type="button" class="button2" style="margin-top:2px;" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
   <!-- END custom_tags -->
   </span></span>


Save, upload and refresh templates.

_________________
Auric
Image
http://auric.getforum.org/board


Sun Dec 07, 2008 10:42 am
Profile YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

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