+ Reply to Thread
Results 1 to 10 of 10

Thread: <br> tag in bbcode

  1. #1
    agroup's Avatar
    agroup is offline x10 Sophmore agroup is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    190

    Exclamation <br> tag in bbcode

    How to use <br> tag in the bbcode
    or how to add the line breaker in the bbcode?

    i have tried to add the [br] as the <br> tag in bb code but it didnt work
    Regards:
    Agroup :cool:

    http://FileTube.info - Online File Storage & CMS Scripts
    Islamic-World - All About Islam

  2. #2
    zapzack is offline x10 Elder zapzack is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    606

    Re: <br> tag in bbcode

    There is no br... you press enter.. like you managed to do in your post and in your signature..

  3. #3
    Sharky's Avatar
    Sharky is offline Admiral Awesome Sharky will become famous soon enough
    Join Date
    Oct 2007
    Location
    Outside the USA
    Posts
    3,306

    Re: <br> tag in bbcode

    zapzack: did you type that with a straight face?

    agroup: didn't you notice the new lines you were putting in the message?
    The physics is theoretical but the fun is real.

  4. #4
    Scoochi2's Avatar
    Scoochi2 is offline x10 Sophmore Scoochi2 is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    Southport!
    Posts
    185

    Re: <br> tag in bbcode

    ...unless you're making your own bbcode parser and want to convert the input to HTML.

    In which case you'll need to replace the line feed+carriage return characters with <br>. For example: in PHP these would be the sequences "\n" and "\r". That isn't a particularly good example though. Because if you are using PHP, use the built in nl2br() function.
    If anyone can see it, my post was meant for anyone who reads it. Don't take it personally or think I'm being condescending... :nuts:

  5. #5
    zapzack is offline x10 Elder zapzack is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    606

    Re: <br> tag in bbcode

    Quote Originally Posted by Sharky View Post
    zapzack: did you type that with a straight face?

    agroup: didn't you notice the new lines you were putting in the message?
    what do you mean?

  6. #6
    agroup's Avatar
    agroup is offline x10 Sophmore agroup is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    190

    Re: <br> tag in bbcode

    Scoohi2 caught my point of view
    i was asking it for my glitter bbcode script.though i can use space in the code but it will not look bettr when we place it on the forum.

    Therefor i was asking for line breaker

    @ zapzack & sharky

    i am not asking to add the new line in the post or sig.
    i was asking for the line breaker bbcode which can be use in the any script which generate the bb codes

    i have tried html to bbcode changer but it always generate a new line for the <br> code don't give any bbcode for this tag
    Regards:
    Agroup :cool:

    http://FileTube.info - Online File Storage & CMS Scripts
    Islamic-World - All About Islam

  7. #7
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: <br> tag in bbcode

    All bbcode converters use paragraphs (<p> </p>), or if you modify the php code simply add a <br /> character when a certain set of characters are encountered, for instance, two spaces at the end of a line.
    Last edited by xav0989; 08-10-2009 at 03:25 PM.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  8. #8
    bm.the.guru is offline x10Hosting Member bm.the.guru is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    1

    Re: <br> tag in bbcode

    you can use this little trick:

    [ list ] [ /list ]
    Last edited by bm.the.guru; 11-06-2010 at 04:52 PM.

  9. #9
    bdistler's Avatar
    bdistler is offline x10 Lieutenant bdistler is an unknown quantity at this point
    Join Date
    May 2010
    Location
    Catalina AZ USA
    Posts
    349

    Re: <br> tag in bbcode

    I use ==> \r\n <==

    Here is a link to the BB codes for this forum:

    http://x10hosting.com/forums/misc.php?do=bbcode



  10. #10
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: <br> tag in bbcode

    Please take a look at the dates of the thread before posting, this thread was dead for over a year and the original thread starter hasn't been online for a few months either.

+ Reply to Thread

Similar Threads

  1. BBCode para realizar tablas html con BBCode.
    By jesuli in forum Tutoriales
    Replies: 4
    Last Post: 11-27-2008, 03:27 PM
  2. Good custom BBCode resource?
    By Fearghal in forum Scripts & 3rd Party Apps
    Replies: 5
    Last Post: 11-01-2008, 11:11 AM
  3. how do I put this...?
    By CoolFinalFan in forum Off Topic
    Replies: 5
    Last Post: 04-01-2008, 02:23 AM
  4. [PHP] BBCode
    By Synkc in forum Tutorials
    Replies: 5
    Last Post: 02-28-2008, 02:43 AM
  5. phpBB3 RC7 bbCode for thumbnail (thickbox)
    By onewalrus in forum Computers & Technology
    Replies: 0
    Last Post: 10-20-2007, 01:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers