03-13-2013, 05:47 AM
03-13-2013, 05:47 AM
03-13-2013, 09:02 AM
(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.
03-13-2013, 03:12 PM
(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-14-2013, 02:33 AM
(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, 08:34 AM
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).
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:
|
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.
03-23-2013, 03:21 AM
May I know what's actually do you want to do?
03-24-2013, 01:36 AM
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).
03-25-2013, 02:49 AM
(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, 05:53 AM
Oops, missed again. Works fine now, thanks!
04-29-2013, 09:23 PM
(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.