PDA

View Full Version : Horizontal Line (colour) BB code


stevey123321
04-12-2011, 02:41 AM
Hi

I have recently switched from MyBB to VB and on my old forum I had a custom BB code that worked like the [hr] code but you could choose the colour of the line.

I have used it a lot and since transferring posts I will have a lot of editing to do unless I can find something like this for VB. I have searched everywhere and cannot find a custom BB code for it. So I was wondering if anyone would fancy attempting to make it? I have got all the coding MyBB used if that helps.

They had a section for code and had this:
\(.*?)\[/hrc\]

I know on VB that we will simply type hrc.

The replacement is this:
<hr style="height: 1px; color: $1; background-color: $1" />

A further example of what I mean is if you were to input:
[hrc]blue

it would put a blue horizontal line across the page.

The above is how it works on MyBB software but I hope it can help in making something like this on VB. I think its a very nice BB Code and can make posts look very nice.

Thanks to anyone who can attempt this and a bigger thanks if anyone can do it. It will literally save me hours of work!!!