Log in

View Full Version : Horizontal Rule and List Custom BB Code


MultiSync77F
09-15-2009, 01:23 AM
Can someone please show me the correct way to create a BB code that will allow a horizontal rule in the post? I created one, but when you don't need text between the tags it gets ignored and you don't need text inside a horizontal rule.

Also, I want to add a space between list items in the generic[list] tag. I don't like when the list items are smashed together.

Lynne
09-15-2009, 01:55 AM
As you noted, you can't have bbcode that doesn't take an option. So, you may want to just use a Replacement Variable or str_replace on the message text to replace **hr** (or whatever text you want) with the horizontal rule.

Alisa Lindsay
09-27-2009, 07:27 PM
Hello?

Found this thread....been looking everywhere for how to do this.

How would a total vBulletin Village Idiot do this? I have seen other boards that use BB Code [hr] in lieu of HTML of <hr /> or <hr>. I have prowled and prowled the net looking for how to do this on VB.

Warmest Regards,

Alisa

Lynne
09-27-2009, 08:42 PM
Here's a section in the manual about Replacement Variables - Replacement Variable Manager (http://www.vbulletin.com/docs/html/style_replacement)

Alisa Lindsay
09-27-2009, 09:45 PM
One final question on this topic if I may...?

There is a short horizontal rule line between the post body and the area where signatures appear.

Do you know where I would go to change that line to full board width (i.e. 100%)?

Regards and Thank You,

Alisa

Xencored
09-27-2009, 10:34 PM
The following code is done by replacement variables. Go to style manager in your admincp, on the drop down box of your parent most style, choose 'Replacement Variables' Select 'Add New Replacement Variable'

Search for Text: ---
Replacement: <hr>

This is all i could fine and i would like to add this option also
Just cant work it out and ive Search all over lol

Lynne
09-27-2009, 10:38 PM
One final question on this topic if I may...?

There is a short horizontal rule line between the post body and the area where signatures appear.

Do you know where I would go to change that line to full board width (i.e. 100%)?

Regards and Thank You,

Alisa
That line is from either the postbit or the postbit_legacy template, whichever you are using. You may go in and edit that template and replace that line (it is an actual line, "__________________<br />") with an <hr> or whatever you like.

Alisa Lindsay
09-27-2009, 10:51 PM
Thanks!

Looks lots better now!

And thanks to Animemike for actually fixing!

Alisa Lindsay
10-04-2010, 12:51 AM
Kevin,

Re: your PM... see the attached screen shot.

I hope this helps, if it doesn't, PM me again and I'll see what I can do!

Regards,

Alisa

Nintendo-Daily
10-04-2010, 12:56 AM
Thank you, Alisa!

Would you mind sharing your button image? I'll save it and upload it to my own source if it's OK with you.

Thanks again!

Alisa Lindsay
10-04-2010, 01:02 AM
Sure...and I PM'd you the code...

I've attached a light and dark button. They are not very elaborate, I'm afraid, but you're welcome to save them off and use them.

Nintendo-Daily
10-04-2010, 01:15 AM
Thank you, Alisa!

It works PERFECT!