PDA

View Full Version : bbBox


TPOCJames
05-26-2006, 10:00 PM
Simple hack, quite nice on forums. This hack will allow you to have a subject and text inside a small box.

Instructions

Go into your Admin CP.
Go to the bbCode manager.
Click "Add New bbCode".
Your title can be anything you want, box would be the best choice.
Tag can be anything you want. I have entered box as my choice.
In replacement, you enter the following code:


<table class="tborder" align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]">
<tbody><tr><td class="thead"><div class="smallfont"><strong>{option}</strong></div></td></tr>
<tr><td class="page"><br>
{param}</blockquote></td></tr>
</tbody></table></div>

You may also set for it to have a preset width. You can do so with the following code:

<table class="tborder" align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="%[enter a number from 10 - 100 here]>
<tbody><tr><td class="thead"><div class="smallfont"><strong>{option}</strong></div></td></tr>
<tr><td class="page"><br>
{param}</blockquote></td></tr>
</tbody></table></div>

After you have pasted your code selection, test it by typing in Testing....

Select use {option} to yes.

Save the bbCode and you're done! Try it out and give some feedback.

TPOCJames
05-26-2006, 10:14 PM
<a href="https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=116774" target="_blank">Make Sure you Install this Hack</a>

GrendelKhan{TSU
05-27-2006, 12:06 AM
nice... I'll try this out! :)

TPOCJames
05-27-2006, 01:07 AM
Hope you like it... it's my first hack. :)

Gizmo5h1t3
05-27-2006, 09:13 AM
this one is very similar to the fieldset bb code elsewhere on here...like it m8

projectego
05-27-2006, 10:07 AM
Pretty cool, thanks for sharing! ;)

TPOCJames
05-27-2006, 02:34 PM
this one is very similar to the fieldset bb code elsewhere on here...like it m8

This was released before the fieldset... ;) just a few minutes before. The two are pretty different, it is just a matter of opinion on which is better.

Gizmo5h1t3
05-27-2006, 03:26 PM
both are pretty decent additions m8...good work

TPOCJames
05-28-2006, 02:10 AM
Well thanks :D

beduino
05-28-2006, 04:15 AM
congratulations to excellent work!
tks!
beduino
ps. if it is your first mod....also my first add in bbcodes vB! :D

Floris
05-28-2006, 10:05 AM
Make Sure you Install this Hack (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=116774)
I noticed you went [/box*] to make sure the bbcode is listed, you can use: [noparse] to do that. Everything inside noparse bbcode won't be parsed and you can show it as [/box]

TPOCJames
05-28-2006, 08:39 PM
Thanks Floris. :D

The-Ensemble
08-06-2006, 04:47 PM
<table class="tborder" align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]">
<tbody><tr><td class="thead"><div class="smallfont"><strong>{option}</strong></div></td></tr>
<tr><td class="page"><br>
{param}</blockquote></td></tr>
</tbody></table></div>
I noticed a small error in this. If you have a set background this box will put it in. Change
<td class="page">
to
<td class="alt2">


But otherwise Great BBcode!

TotalTorque.net
04-27-2007, 12:21 PM
Neat, simple, effective, installed.