Quote:
Originally Posted by sjau
Can this hack be modified, so that only certain user(groups) get access / can fill in those extra profile fileds?
|
I guess so... all you have to add the following changes to USERCP_SHELL instead of the ones mentioned in the hack description:
Code:
<if condition="$bbuserinfo['usergroupid'] == XX">
<tr>
<td class="$navclass[extra]" style="white-space:nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=extra">Extra Info</a></td>
</tr>
</if>
Where XX is the usergroup you want to allow access.
Note that this is not fool-proof. A user who KNOWS that there is such an extra field section and who knows the url can access it directly. In this case, I guess adding some php code would do the trick.