Additional Settings For Custom Profile Fields [1.2]
Destroy666 Offline
Junior Member
**
Posts: 27
Joined: Jul 2012
Post: #155
RE: Additional Settings For Custom Profile Fields
Ah, missed the Editable setting. Didn't think it's connected with this. Thanks.

EDIT: probably last question:

I tried to do the function using Template Conditionals, could you tell me what's wrong with it? (probably more mistakes, I'm green at PHP and the str_replace syntax looks really weird).

Code:
<setvar codesfindarray>array("1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","/",":",";","<",">","=","*","-","+","?","@")</setvar>
<setvar codesreplacearray>array("000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000","000000")</setvar>
<setvar et2coloredname>str_replace('^'.$tplvars['codesfindarray'], '<span style="color:#'.$tplvars['codesreplacearray'].';">', {VALUE})</setvar>
{$tplvars['et2coloredname']}


EDIT2: tried to call the function with <?=et2html({VALUE})?> and <setvar et2htmlfield>et2html({VALUE})</setvar>{$tplvars['et2htmlfield']} using Template Conditionals but these don't work either, it's blank. I added the function and another one it uses to allowed functions file. The functions are in another plugin after IN_MYBB check. It works when I call it in any template.

(This post was last modified: 03-17-2013 12:32 AM by Destroy666.)
03-14-2013 08:34 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Additional Settings For Custom Profile Fields - Destroy666 - 03-14-2013 08:34 AM

 Standard Tools
Forum Jump: