Back to vBulletin 3.0 Add-Ons

scratch here and frame bbcodes / plus strike, anchor and goanchor
Mod Version: 1.00, by Dream

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 8
Released: 11 Jun 2005 Last Update: Never Downloads: 1
Not Supported Re-usable Code  

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:
Code:
<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: [scratch]hidden text[/scratch]
Description: Hidden text that must be selected to see.
Use {option}: no

Save it, and add another:

Title: Scratch here
Tag: scratch
Replacement:
Code:
<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: [scratch=Title]hidden text[/scratch]
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 [frame] 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:
Code:
<fieldset class="fieldset">
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
				<td>
					<div>{param}</div>
				<td>
			<tr>
			</table>
		</fieldset>
Example: [frame]text[/frame]
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 http://www.vbulletin.com/forum/index.php?t=142826 thread in vbulletin.com.

Title: Strike
Tag: strike
Replacement:
Code:
<div style="text-decoration: line-through">{param}</div>
Example: [strike]text[/strike]
Description: Strikes the text.
Use {option}: no

Anchor is for leaving an href anchor somewhere in the post, that you can go using the [goanchor]anchor[/goanchor] code.

Title: Anchor
Tag: anchor
Replacement:
Code:
<a name="{param}"></a>&lt;
Example: [anchor]name[/anchor]
Description: Sets an anchor in the text.
Use {option}: no

You can choose the marker for the anchor:

Title: Anchor
Tag: anchor
Replacement:
Code:
<a name="{param}"></a>{option}
Example: [anchor=-]name[/anchor]
Description: Sets an anchor in the text, using optional marker.
Use {option}: yes

The [goanchor] code:

Title: Go to anchor
Tag: goanchor
Replacement:
Code:
<a href="#{option}">{param}</a>
Example: [goanchor=name]text[/goanchor]
Description: Moves the page to an anchor.
Use {option}: yes

They may seem a little weird, but are useful in some cases.

Download

No files for download.

Similar Mods

BB Code Enhancements Anchor links vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024