miniBB Support Forums | 15 years on The Web
miniBB ®

miniBB

®
  
 | Begin | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   
 

Adding <hr> horizontal rule to bbcode

 
Author CardMSG
Partaker
#1 | Posted: 11 Jul 2006 22:00 | Edited by: CardMSG 
Is it possible to add an [hr] horizontal rule tag to the bbcode? If so, how?

Thanks!

Author Paul
Lead Developer
#2 | Posted: 12 Jul 2006 07:11 
Edit bb_codes.php and in enCodeBB() function area paste:

$pattern[]="/\[hr\]/is";
$replacement[]='<hr />';

In deCodeBB() function, paste:

$pattern[]="/<hr \/>/is";
$replacement[]="[hr]";

Author CardMSG
Partaker
#3 | Posted: 12 Jul 2006 21:52 | Edited by: CardMSG 
Thanks, that worked! You guys are always so fast to help and your help is always spot on!

I actually thought, for a second last night, about switching my board back to one of the previous ones I had used in the past (vbulletin, phpbb) because there are so many resources for them.

But then, I thought, "Minibb is just so simple and easy to work with and has better markup (the code validates), etc..." It has everything I need and I know if I need something else, there always seems to be someone here willing and ready to help out.

Thanks!

Author Paul
Lead Developer
#4 | Posted: 13 Jul 2006 08:37 
Thank you :-)

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 Adding <hr> horizontal rule to bbcode
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


 ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
↑ TOP