|
 |
|
 |
|
| Author |
Message |
Badie05
Administrator


 Joined: 15 Oct 2006
Posts: 6237 Credits: 825.9
Location: Ottawa, Canada 
|
Posted: Thu May 22, 2008 9:30 pm |
 |
|
| Quote: | Follow the instructions below and this will add a spoiler tag to your forum.
What is a spoiler tag Question Look in the reply below
First of all you must have created your own template how to do this is explained here http://howtodoit.myfreeforum.org/ftopic18.php
OK Lets take it that you have created your own template, now goto
Admin Panel - Styles Admin - Edit Templates/Logos
And open up your template ( please remember that if you change templates you must add this to every template that you may use)
Now follow the instructions in the correct order
Go to
Choose File to Edit
and then open each file in order
PLease Ignorge The Part in quotes this has already been done for you
Quote:
Code:
#-----[ OPEN ]------------------------------------------
bbcode.tpl
#-----[ FIND ]----------------------
#
<!-- BEGIN b_open --><span style="font-weight: bold"><!-- END b_open -->
<!-- BEGIN b_close --></span><!-- END b_close -->
#
#-----[ BEFORE, ADD ]------------------
#
<!-- BEGIN spoiler_open -->
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td>
<span style="font-size: 11px;">
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">
Spoiler: <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>
<p>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px">
<div style="display: none;">
<!-- END spoiler_open -->
<!-- BEGIN spoiler_close -->
</div>
</p>
</div>
</div>
</span>
</td>
</tr>
</table>
<!-- END spoiler_close -->
This part you can do for yourself
Code:
#-----[ OPEN ]-------------------------
#
#
# These edits will add spoiler to the icons available when you post.
# This is not needed in order for spoiler to work as you can just type
#
# The edits here are hard to do, so please make a copy of the file before
# making the edits.
#
#
#
posting_body.tpl
#
#-----[ FIND ]---------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ AFTER, ADD ]------------------------------------------
#
r_help = "{L_BBCODE_R_HELP}";
#
#-----[ FIND ]---------------------------
#
('','','','',
#
#-----[IN-LINE FIND ]-------------------------
#
'[/url]'
#
#-----[ IN-LINE AFTER, ADD ]-----------------------------
# If you have other added BBcode then move this to the last place.
,''
-----------------------------------------------------
So it looks like this
('','','','','','','','','','[list=]','[/list]','[img]','[/img]','[url]','[/url]','' );
#
#-----[ FIND ]------------------------------------------
#
<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>
#
#-----[ AFTER, ADD ]------------------------------------------
#If you already have an '18' BBcode, manually change '18' to the next even number that you haven't got. e.g. '20'
<td><span class="genmed">
<input type="button" class="button" accesskey="r" name="addbbcode18" value="Spoiler" style="width: 60px" onClick="bbstyle(1 " onMouseOver="helpline('r')" />
</span></td>
#
#-----[ FIND ]------------------------------------------
#
<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
#
#-----[ REPLACE WITH ]-------------------------------
#If you already have an '20' or above as the number, manually change '20' to the next even number that you haven't got. e.g. '22'
<select name="addbbcode20" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode20.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
#
#-----[ FIND ]------------------------------------------
#
</select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ REPLACE WITH ]---------------------------------
#If you already have an '22' or above as a number, manually change '22' to the next even number that you haven't got. e.g. '24'
</select> {L_FONT_SIZE}:<select name="addbbcode22" onChange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------- |
Looks pretty complex XD...I will do this on the weekend.
_________________
PLAYING:
GTA IV (PC)
Halo 3 (X360)
COD4: MW (PC)
Fallout 3 (PC)
Prince of Persia (PC) |
|
 |
|
 |
venom
Level 3: Second Class

 Joined: 02 Nov 2006
Posts: 169 Credits: 6.24
Location: Ottawa, Ontario
|
Posted: Thu May 22, 2008 10:05 pm |
 |
|
I honestly thought we had spoiler tags, must have been another forum.  _________________
 |
|
|
|
 |
Zaraki Kenpachi
Extreme User 2


 Joined: 07 May 2007
Posts: 1597 Credits: 287.6
|
Posted: Fri May 23, 2008 5:03 am |
 |
|
oh wow I couldn't do that for the life of me >_< _________________ I'm obssessed now over something you'll never find out =P |
|
|
|
 |
Phatkav
Main Moderator


 Joined: 10 Jan 2007
Posts: 3685 Credits: 444.72
Location: Ontario, Canada
|
Posted: Fri May 23, 2008 4:18 pm |
 |
|
So today or tomorrow? _________________ "Anything that humans can imagine is a possibility in reality" - Physicist Willy Karen
 |
|
|
|
 |
Badie05
Administrator


 Joined: 15 Oct 2006
Posts: 6237 Credits: 825.9
Location: Ottawa, Canada 
|
Posted: Fri May 23, 2008 5:21 pm |
 |
|
Weekend.
_________________
PLAYING:
GTA IV (PC)
Halo 3 (X360)
COD4: MW (PC)
Fallout 3 (PC)
Prince of Persia (PC) |
|
 |
|
 |
|
|
|
 |
|
 |
|
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 vote in polls in this forum
|
|
phpBB skin developed by: John Olson Powered by phpBB © 2001, 2005 phpBB Group
|
|
|
|