View Single Post
  #1  
Old 08 Nov 2018, 11: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 13:41.
Reply With Quote