Additional Settings For Custom Profile Fields [1.2]
Gstone Offline
Member
***
Posts: 55
Joined: May 2012
Post: #151
RE: Additional Settings For Custom Profile Fields
(03-13-2013 03:57 AM)RateU Wrote:  
(03-12-2013 12:41 PM)xstillnight Wrote:  Thank you for your quick response! I changed it but it still shows {VALUE} instead of the input.
Did you rebuild your xt_proffields cache?

Your fix worked for me, so Im guessing he didn't do that.
(This post was last modified: 03-13-2013 08:54 AM by Gstone.)
03-13-2013 05:47 AM
Find all posts by this user Quote this message in a reply
Destroy666 Offline
Junior Member
**
Posts: 27
Joined: Jul 2012
Post: #152
RE: Additional Settings For Custom Profile Fields
(03-13-2013 03:57 AM)RateU Wrote:  It should be hidden if the field doesn't have a value (?)

I mean - how to hide the field completely, for example Bio in this case. I didn't use Blank Replacement Value for any field as this post mentions, all show up without value if not filled. Tried rebuilding cache, didn't work.
(This post was last modified: 03-13-2013 09:04 AM by Destroy666.)
03-13-2013 09:02 AM
Find all posts by this user Quote this message in a reply
Ink Offline
Junior Member
**
Posts: 1
Joined: Mar 2013
Post: #153
RE: Additional Settings For Custom Profile Fields
(03-13-2013 03:57 AM)RateU Wrote:  
(03-12-2013 12:41 PM)xstillnight Wrote:  Thank you for your quick response! I changed it but it still shows {VALUE} instead of the input.
Did you rebuild your xt_proffields cache?

Hey there - I'm Ink, the owner of the site Sam is working on.  I just wanted to let you know that everything is fixed now, thank you for your help!  When I redid the php file the first time, somehow some of the coding inside got jumbled, so I fixed it and rebuilt the cache and now it works fine.  c:
03-13-2013 03:12 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #154
RE: Additional Settings For Custom Profile Fields
(03-13-2013 09:02 AM)Destroy666 Wrote:  I mean - how to hide the field completely, for example Bio in this case. I didn't use Blank Replacement Value for any field as this post mentions, all show up without value if not filled. Tried rebuilding cache, didn't work.
Did you set the Custom Profile Fields Block and the Editable by Usergroups settings to Yes in the Configuration -> Settings -> Additional Settings For Custom Profile Fields ?

03-14-2013 02:33 AM
Find all posts by this user Quote this message in a reply
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
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #156
RE: Additional Settings For Custom Profile Fields
May I know what's actually do you want to do?

03-23-2013 03:21 AM
Find all posts by this user Quote this message in a reply
Destroy666 Offline
Junior Member
**
Posts: 27
Joined: Jul 2012
Post: #157
RE: Additional Settings For Custom Profile Fields
Use the et2html function, which is created in root of another plugin, in Display Format of one of fields. I added it to Template Conditional allowed functions, it works well in templates but not in this plugin's Display Format (doesn't display the field at all).
(This post was last modified: 03-24-2013 01:37 AM by Destroy666.)
03-24-2013 01:36 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #158
RE: Additional Settings For Custom Profile Fields
(03-24-2013 01:36 AM)Destroy666 Wrote:  I added it to Template Conditional allowed functions

To the inc/plugins/phptpl_allowed_funcs.txt file?
XThreads has phptpl_allowed_funcs.txt file inside inc/xthreads folder.

03-25-2013 02:49 AM
Find all posts by this user Quote this message in a reply
Destroy666 Offline
Junior Member
**
Posts: 27
Joined: Jul 2012
Post: #159
RE: Additional Settings For Custom Profile Fields
Oops, missed again. Works fine now, thanks!
03-25-2013 05:53 AM
Find all posts by this user Quote this message in a reply
Seabody Offline
Member
***
Posts: 54
Joined: Aug 2012
Post: #160
RE: Additional Settings For Custom Profile Fields
(05-08-2012 06:57 AM)RateU Wrote:  I mean you need to add your own code into the plugin file for displaying and processing the non custom profile fields input (Date of Birth, Website, Notification and etc - depends on whatever input fields you want to be displayed there).

RateU, what edits do you mean? I'm trying to put the Bio field (just as proof-of-concept) on the main page, no dice.
04-29-2013 09:23 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: