Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 08 Nov 2018, 12:28
Budget101 Budget101 is offline
 
Join Date: Jul 2008
Replace <br> with <p> in Context

vbulletin uses <br> instead of <p> in Content text where/how can I replace that for proper formatting?

The <br> tag should only be used to break line i.e <p>This is first line <br> This is second line.</p>

Converting non-block elements with <br /> to <p> in PHP

I was thinking something along the lines of:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but I'm not sure if that would work somewhere as a hook or if I'd have to directly edit showthread.php, etc.


In the CMS Articles I'm using HTML On- Convert Linebreaks (which uses on_nl2br) - so maybe the variable couple be changed using str_replace??


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but I don't know where to find the right place to implement it.



This is from includes/class_bbcode_alt.php


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It looks like it's doing just the opposite of what I need it to do in CMS Articles and Showthread/Showpost.... it looks like it's replacing the <p> with line breaks. How can I disable that so all my pages are formatted with Paragraph tags?


Any ideas how to achieve this?

Last edited by Budget101; 08 Nov 2018 at 14:41.
Reply With Quote
Reply


Tags
line breaks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


New To Site? Need Help?

All times are GMT. The time now is 15:58.

Layout Options | Width: Wide Color: