View Single Post
  #8  
Old 05-10-2010, 12:31 PM
Alisa Lindsay's Avatar
Alisa Lindsay Alisa Lindsay is offline
 
Join Date: Aug 2007
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne,

Thanks to you I have the BB Code replacement for the HTML <hr /> tag working on my 4.0.3 test board. It took some trial and error and the BB Custom Code Manager still doesn't like it very much. However, the code output does work.

Here's how it was accomplished...

Title = Horizontal Rule
BB Code Tag Name = hr

Replacement Code
Code:
<hr style="height:3px;width:{param};noshade=noshade;display:inline-block" />
Example: [*hr]125%[/hr*] (without the *)

{param} is the line's width and can vary. I use % because it is easier for me to guesstimate how that will look inside the post.

So for a full width line, I would use [hr*]125%[*/hr] on my fluid width custom board. On fixed width boards, 100% will probably work as well.

On my 3.8 boards I was able to set two {param}. One for width and one for alignment. I was not able to make that work here.

*grins

It would be so much easier if we could just use the standard single [hr] BB Code tag for horizontal rule. I have attached screen shots of the results.

Please note...this is rough. I am NOT a coder of any kind or caliber. Oh...I did figure out how to get a border/horizontal line beneath the post title via additional CSS.

Thanks very much for all help! This little bit of code is vital for our writing board as it divides scenes in posts.

PS: Lynne, I don't guess there's a way to get the
Quote:
hr tags are set to display:none
set to where they display without all the jumping through hoops issues? Can this be requested? I can't see that allowing the use of <hr /> would allow someone to destroy a board? Again, though, I admit to not being very savvy on coding. It would be nice to be able to use it without turning HTML on in the posting forums.

Thanks and Regards,

Alisa
Attached Images
File Type: png <hr :> BB Code.png (50.7 KB, 0 views)
File Type: jpg <hr :> BB Code Results.jpg (24.6 KB, 0 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02280 seconds
  • Memory Usage 1,786KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete