PDA

View Full Version : scratch here and frame bbcodes / plus strike, anchor and goanchor


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>&lt;
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.

nexialys
06-11-2005, 03:54 AM
funny hack.. good one !

Scooterpig
06-11-2005, 04:47 AM
Very cool..hehe..:)

yoyoyoyo
06-12-2005, 03:17 AM
nice one! hehe thanks.

SHANE-D-PAIN
06-14-2005, 06:18 PM
Simple and nice, well done!

Dream
06-15-2005, 04:22 AM
*bump* new ones

glad you liked it :)

SHANE-D-PAIN
06-17-2005, 06:45 PM
Will we be seeing anymore bbcodes from you???

If you release more then i could design the buttons for you so people can have them in there WSIWYG editor.

yoyoyoyo
06-17-2005, 06:50 PM
these are cool, but they do not fit the definiton of a hack or even a mini-mod. This should probably be moved to "General Modification Discussion"

Dream
06-17-2005, 07:48 PM
Will we be seeing anymore bbcodes from you???

If you release more then i could design the buttons for you so people can have them in there WSIWYG editor.

dunno, it depends wheter I have more ideas. be my guest to do some images tho :)

yoyo, I didn't know where to post this, a moderator can move it anywhere.

Dream
06-17-2005, 11:00 PM
A bbcodes discussion forum could be useful. I thought there wasnt many topics on bbcodes, but I found a couple in the "general modification discussions" one. Gonna suggest they create one in the suggestions forum.

deathemperor
06-20-2005, 05:25 PM
these are cool, but they do not fit the definiton of a hack or even a mini-mod. This should probably be moved to "General Modification Discussion"
no it's Modification hints and tips, the best place

nice work, Dream.

Parker Clack
10-05-2005, 06:25 PM
Dream:

I noticed with 3.5 that the url hyperlink in the text editor doesn't do anything more than put in the url.

Instead of [ url="http://www.yourplace.com" ] title [ /url] it puts in [ url="http://www.yourplace.com ] http://www.yourplace.com [ /url] with no popup window for the title to be put in.

It works fine on this version of vBulletin's text editor. Any ideas?

Thanks for the bbcodes.

Parker

Dream
10-05-2005, 11:52 PM
I added this bbcodes in this mod for 3.5, but im not sure I changed anything...

https://vborg.vbsupport.ru/showthread.php?s=&threadid=91435