Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 7th November 2013, 10:35
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Default <br> in BBCode?
Need a <br> code but in BBCode for forums.

[br][/br] doesn't work

pls help
Reply With Quote
  #2  
Old 7th November 2013, 10:39
AutoSnipe AutoSnipe is offline
Senior Member
 
Join Date: May 2008
Posts: 84
Default
If just using the normal skipping of a line doesn't work try [p] this should create a new paragraph.
Reply With Quote
  #3  
Old 7th November 2013, 12:21
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
Quote:
Originally Posted by Extremlym View Post
Need a <br> code but in BBCode for forums.

[br][/br] doesn't work

pls help
Edit globals.php and add

Code:
 $s = preg_replace("/\[br\]((\s|.)+?)\[\/br\]/i", "<br>\\1</br>", $s);
add under or above $s = preg_replace("/\[b\]((\s|.)+?)\[\/b\]/", "<b>\\1</b>", $s);

and usage is

[br]Some text[/br]
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me


Last edited by firefly007; 7th November 2013 at 12:40.
Reply With Quote
  #4  
Old 7th November 2013, 13:44
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Wink
Quote:
Originally Posted by firefly007 View Post
Edit globals.php and add

Code:
 $s = preg_replace("/\[br\]((\s|.)+?)\[\/br\]/i", "<br>\\1</br>", $s);
add under or above $s = preg_replace("/\[b\]((\s|.)+?)\[\/b\]/", "<b>\\1</b>", $s);

and usage is

[br]Some text[/br]
THX ALOTH ..
Reply With Quote
Reply

Tags
<br> , bbcode

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 19:20. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.