MyBB Hacks

Full Version: Additional Settings For Custom Profile Fields [1.2]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
This looks like it may be very handy RateU
Sorry for my bad english, I mean blank is the value entered is not stay in the profile fields input after we save it.
Huh, :huh: I don't understand what're you try'in to say...
Please update the attachment in the first posts, RateU.

I can't see the plugin.
Yeah, seems like all the attachments are gone? Frown
This is strange - none of RateU's other attachments are gone - perhaps he is updating the plugin?
For some odd reason, the attachmentcount of this thread went to 0.  A recount seems to fix it.
Thank you!
I must be doing something wrong or I am just plain stupid.
I've enabled the Custom Profile Fields Block setting, and put <img src=".../energy/N{VALUE}.png" alt="{VALUE}" /> but the additional fields table was displaying only {VALUE}, instead of an actual value (blank replacement was working just fine). Then I tried letting go of the whole profile fields section and tried putting {$xtpf['fid4']} in member_profile, but it didn't change anything - it still displays {VALUE} instead of an actual value. I also tried putting {INPUT} in the input field for the field - still nothing. I do not need that field to be editable by users, only by admins. Coud someone kindly help me in getting it to display correct value? :/
Assuming you're using XThreads 1.6*:
Edit the xt_proffields.php file.
Find these codes (around line #295 - #296):

PHP Code:
$fields = array('VALUE','RAWVALUE');
$fieldsinp = array('VALUE','RAWVALUE','INPUT');

Replace it with:

PHP Code:
$fields = array('VALUE'=>null,'RAWVALUE'=>null);
$fieldsinp = array('VALUE'=>null,'RAWVALUE'=>null,'INPUT'=>null);

Then, rebuild your xt_proffields cache (via the Cache Manager or by editing and re-save a profile field).

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Reference URL's