Dream
06-10-2005, 10:00 PM
This is a pretty simple html for a bbcode to make text and background the same color, so that a user must highlight it to see.
Add a new bbcode from the admin cp:
Title: Scratch here
Tag: scratch
Replacement:
<fieldset class="fieldset">
<legend>Scratch here</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td>
<div style="text-color: #000000;background-color: #000000">{param}</div>
<td>
<tr>
</table>
</fieldset>
Example: hidden text
Description: Hidden text that must be selected to see.
Use {option}: no
Save it, and add another:
Title: Scratch here
Tag: scratch
Replacement:
<fieldset class="fieldset">
<legend>{option}</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td>
<div style="text-color: #000000;background-color: #000000">{param}</div>
<td>
<tr>
</table>
</fieldset>
Example: hidden text
Description: Hidden text that must be selected to see, with optional title.
Use {option}: yes
Now you have [scratch] and [scratch=frame title] to use anywhere in the post.
The tag uses the same "fieldset" vB uses in alot of places, without the title. Its just some cool formatting members can use instead of quote.
Title: Frame
Tag: frame
Replacement:
<fieldset class="fieldset">
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td>
<div>{param}</div>
<td>
<tr>
</table>
</fieldset>
Example: [frame]text
Description: Wraps text into a quote-like frame.
Use {option}: no
They are pretty simple, hope you enjoy.
================================================== =
Came along a few other ideas, to not create another thread Ill put them with these.
Strike is a line through the text. Got the idea from this (http://www.vbulletin.com/forum/showthread.php?t=142826) thread in vbulletin.com.
Title: Strike
Tag: strike
Replacement:
<div style="text-decoration: line-through">{param}</div>
Example: text
Description: Strikes the text.
Use {option}: no
Anchor is for leaving an href anchor somewhere in the post, that you can go using the anchor code.
Title: Anchor
Tag: anchor
Replacement:
<a name="{param}"></a><
Example: name
Description: Sets an anchor in the text.
Use {option}: no
You can choose the marker for the anchor:
Title: Anchor
Tag: anchor
Replacement:
<a name="{param}"></a>{option}
Example: name
Description: Sets an anchor in the text, using optional marker.
Use {option}: yes
The code:
Title: Go to anchor
Tag: goanchor
Replacement:
<a href="#{option}">{param}</a>
Example: [goanchor=name]text
Description: Moves the page to an anchor.
Use {option}: yes
They may seem a little weird, but are useful in some cases.
Add a new bbcode from the admin cp:
Title: Scratch here
Tag: scratch
Replacement:
<fieldset class="fieldset">
<legend>Scratch here</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td>
<div style="text-color: #000000;background-color: #000000">{param}</div>
<td>
<tr>
</table>
</fieldset>
Example: hidden text
Description: Hidden text that must be selected to see.
Use {option}: no
Save it, and add another:
Title: Scratch here
Tag: scratch
Replacement:
<fieldset class="fieldset">
<legend>{option}</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td>
<div style="text-color: #000000;background-color: #000000">{param}</div>
<td>
<tr>
</table>
</fieldset>
Example: hidden text
Description: Hidden text that must be selected to see, with optional title.
Use {option}: yes
Now you have [scratch] and [scratch=frame title] to use anywhere in the post.
The tag uses the same "fieldset" vB uses in alot of places, without the title. Its just some cool formatting members can use instead of quote.
Title: Frame
Tag: frame
Replacement:
<fieldset class="fieldset">
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td>
<div>{param}</div>
<td>
<tr>
</table>
</fieldset>
Example: [frame]text
Description: Wraps text into a quote-like frame.
Use {option}: no
They are pretty simple, hope you enjoy.
================================================== =
Came along a few other ideas, to not create another thread Ill put them with these.
Strike is a line through the text. Got the idea from this (http://www.vbulletin.com/forum/showthread.php?t=142826) thread in vbulletin.com.
Title: Strike
Tag: strike
Replacement:
<div style="text-decoration: line-through">{param}</div>
Example: text
Description: Strikes the text.
Use {option}: no
Anchor is for leaving an href anchor somewhere in the post, that you can go using the anchor code.
Title: Anchor
Tag: anchor
Replacement:
<a name="{param}"></a><
Example: name
Description: Sets an anchor in the text.
Use {option}: no
You can choose the marker for the anchor:
Title: Anchor
Tag: anchor
Replacement:
<a name="{param}"></a>{option}
Example: name
Description: Sets an anchor in the text, using optional marker.
Use {option}: yes
The code:
Title: Go to anchor
Tag: goanchor
Replacement:
<a href="#{option}">{param}</a>
Example: [goanchor=name]text
Description: Moves the page to an anchor.
Use {option}: yes
They may seem a little weird, but are useful in some cases.