vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Horizontal Rule and List Custom BB Code (https://vborg.vbsupport.ru/showthread.php?t=223215)

MultiSync77F 09-15-2009 12:23 AM

Horizontal Rule and List Custom BB Code
 
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 12: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 06: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 07:42 PM

Here's a section in the manual about Replacement Variables - Replacement Variable Manager

Alisa Lindsay 09-27-2009 08: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 09: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:
Code:

<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 09:38 PM

Quote:

Originally Posted by Alisa Lindsay (Post 1891522)
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 09:51 PM

Thanks!

Looks lots better now!

And thanks to Animemike for actually fixing!

Alisa Lindsay 10-03-2010 11:51 PM

1 Attachment(s)
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-03-2010 11:56 PM

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!


All times are GMT. The time now is 09:30 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02332 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete