• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Creating A Horizontal Rule BBCode

The Dark Wizard

Well-known member
#1
So my bbcode does this: <span class="horizontal-rule {option}">{text}</span>

Code:
[rule][/rule]
If I put text inbetween the bbcode, the line appears under the text.

But if I want just the line and but nothing inbetween, no line appears. Any ideas?
 

Mike

XenForo developer
Staff member
#2
The short answer is that empty BB codes are ignored. I think there is an internal option related to this, but it isn't exposed as an option externally.
 

The Dark Wizard

Well-known member
#3
The short answer is that empty BB codes are ignored. I think there is an internal option related to this, but it isn't exposed as an option externally.
Hmm.

Would there be any easy way that you could think of to accomplish this? Trying to make as little addons as possible for bbcodes.

Or should we just code it?
 

Mike

XenForo developer
Staff member
#4
Since it's not exposed anywhere, it would require a code modification of some sort to support.