2013-10-13, 07:21 AM
Hi there
I'd like to hide a particular userfield for guests in the member profile and postbit.
In the member profile I created an extra template (member_profile_guest), which doesn't contains userfields in general. The editet part of the member.php looks now like
Can someone help me with putting the userfields back - except of the one I don't want to? The code {$post['fidX']} doesn't work^^
________________________
In the postbit I filled in the userfields with {$post['fidX']}. Now I'd like to hide one ({$post['fid11']}) to guests. Unfortunately I'm not able to write a code on myself. Can somene help me with that? I thought of a similar solution like in the profile, with an extra template for guests, but perhaps someone has a more elegant way?
Thanks for reading,
Rica
I'd like to hide a particular userfield for guests in the member profile and postbit.
In the member profile I created an extra template (member_profile_guest), which doesn't contains userfields in general. The editet part of the member.php looks now like
$plugins->run_hooks("member_profile_end");
if($mybb->user['uid'] == '0')
{
eval("\$profile = \"".$templates->get("member_profile_guest")."\";");
}
else
{
eval("\$profile = \"".$templates->get("member_profile")."\";");
}
output_page($profile);
}
if($mybb->input['action'] == "do_emailuser" && $mybb->request_method == "post")
Can someone help me with putting the userfields back - except of the one I don't want to? The code {$post['fidX']} doesn't work^^
________________________
In the postbit I filled in the userfields with {$post['fidX']}. Now I'd like to hide one ({$post['fid11']}) to guests. Unfortunately I'm not able to write a code on myself. Can somene help me with that? I thought of a similar solution like in the profile, with an extra template for guests, but perhaps someone has a more elegant way?
Thanks for reading,
Rica