Recent Topics

[FIX] auto-p plugin and HR, CODE, FIELDSET

Started by on Apr 19, 2006 – Contents updated: Apr 19, 2006

Apr 19, 2006 06:00    


This hack will fix the auto-p plugin so it will display the HR, FIELDSET, and CODE tags properly.

E.g. This is what currently happens:



<p> <fieldset></p>

To apply the fix do this;

Change - File [\blogs\plugins\_auto_p.plugin.php] Line [95];

		$this->block_tags = $block_tags = 'table|thead|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|p|h[1-6]';


		$this->block_tags = $block_tags = 'table|thead|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|code|hr|fieldset|p|h[1-6]';


Apr 22, 2006 03:33

Just committed, thanks!

btw: that reminds me that I have a quite different auto_p plugin locally to fix the issue that the "P-magic" only happens inside of blocks, which currently gets done by some very hackish code.

But, it's not that easy and needs some kind of tag/token/state parser.

Form is loading...

powered by an open-source CMS – This forum is powered by b2evolution CMS, a complete engine for your website.