Additional Settings For Custom Profile Fields [1.2]
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #7
RE: Additional Settings For Custom Profile Fields
Thanks, Yumi Biggrin

(04-01-2012 11:25 AM)lilah Wrote:  I'll definitely give it a try Smile maybe it ends the misery I'm in with the other custom profile fields plugin, i love that you can set an own display format for each field
This plugin doesn't effect the default custom profile fields in profile page (the {$profilefields} block). If you want it to be effected by this plugin, you need to change the value of this code in the plugin file (line #297):

PHP Code:
297
$xt_proffields_custom = 0;

to

PHP Code:
297
$xt_proffields_custom = 1;

There are some behavior changes (hopefully) for the {$profilefields} block if we activate the code above:

  • It will use the parser (HTML, MyCode, img code, video code, smilies, badwords).
  • If we hide a custom profile field, it won't be displayed in the {$profilefields} block. So, if we use {$xtpf['fidX']} in the member_profile template for a custom profile field, maybe we need to hide it. With this way we can prevent the same profile field displayed twice in the page.
  • It will use the Viewable By Usergroup permission.
  • It will use the Display Format if there is value for the profile field.
  • If there is no value for the profile field (user didn't fill the field), the Blank Replacement Value will be displayed.
Unfortunately, if we activate the code above, we can't use the type of plugins you posted in this thread:
http://mybbhacks.zingaburga.com/showthread.php?tid=1248
because it'll override each other for the default {$profilefields} block (I don't know how to handle it Biggrin).
That's why it is disabled by default and I want to use it for my personal use only.

Just an additional info, we can use template conditional structures (hopefully) in the Display Format and Blank Replacement Value.
For example:

Code:
1
2
3
4
5
6
7
<if THIS_SCRIPT == 'member.php' then>
How we want it to be displayed in profile page
<elseif THIS_SCRIPT == 'showthread.php' then>
How we want it to be displayed in postbit
<else>
How we want it to be displayed in memberlist
</if>

And again, because I'm not a coder, don't expect too much from this plugin and please don't laugh at me Biggrin


04-03-2012 07:41 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 - RateU - 04-03-2012 07:41 AM

 Standard Tools
Forum Jump: