[Snippet] Html in CPF Description

Little Mods and Snips 2

[Snippet] Html in CPF Description

Postby Sekuro » 24 May 2012, 21:23

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
Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900



Re: [Snippet] Html in CPF Description

Postby Sekuro » 01 Oct 2012, 22:07

Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900



Return to Snip Cl@ss II

Who is online

Users browsing this forum: No registered users and 1 guest

cron