Page 1 of 1

[Snippet] Html in CPF Description

PostPosted: 24 May 2012, 21:23
by Sekuro
Html in CPF Description

With this snippet you can use Html in CPF Descriptions.
Normally there is no Html or BBCode possible there.

Credit: BNa

Instruction

open

includes/functions_profile_fields.php

find

Code: Select all
                'LANG_EXPLAIN'    => $row['lang_explain'],
                'FIELD'            => $tpl_snippet,

replace with

Code: Select all
                // Html in CPF Description / BNa / 2012
                 'LANG_EXPLAIN'    => str_replace(array('&lt;','&quot;','&gt;'), array('<','"','>'), $row['lang_explain']),
                // Html in CPF Description / BNa / 2012
                 'FIELD'            => $tpl_snippet,

Screens:

ACP Input

http://www.loaditup.de/files/709298_ennzyve8k5.jpg

UCP Output

http://www.loaditup.de/files/709299_kpcdsuaxhm.jpg

You can use <br /> for linebreaks

Re: [Snippet] Html in CPF Description

PostPosted: 01 Oct 2012, 22:07
by Sekuro