Jump to the post that solved this thread.
Solved: 6 Years, 5 Months, 2 Weeks ago $memprofile custom fields error?
#1
Solved: 6 Years, 5 Months, 2 Weeks ago
Hello

i've tested it using 2 preinstalled MyBB (one is localhost and other one is a live site).
Pratically... (lemme make a table):

UserID | ProfileID | Result:
     1    |       1      | true (i am able to retrieve custom fields with print_r() function)
     1    |       2      | false (only mybb_users)
     0    |       2      | false

etc etc (pratically $mybb->user['uid'] == $memprofile['uid'] will return custom fields). Does somebody knows if is MyBB issue or it was planned?
     
[Image: sig.png]
Reply
#2
Solved: 6 Years, 5 Months, 2 Weeks ago
Confirmed. I had exactly this issue attempting to use {$memprofile['fid1']} and it was only visible to the profile owner.

I also thought that memprofile would return the value for all visitors to the page (at least members only) - but it does not. I am not sure if it is a reported bug.
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#3
Solved: 6 Years, 5 Months, 2 Weeks ago
Well, it's not reported as a bug, you're just using a wrong variable. Should be {$userfields['fid1']}
Reply
#4
Solved: 6 Years, 5 Months, 2 Weeks ago
Thanks, that is very useful to know; a definite change from 1.6 Smile
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#5
Solved: 6 Years, 5 Months, 2 Weeks ago
Okay. Thanks guys for help. Marked as solved and highlighted best answer as well Big Grin
[Image: sig.png]
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)