Quote:
Originally Posted by calorie
@Marris: the lite version doesn't have category based permission levels. The photoplog_list_categories function makes the category list if you want to try and edit there.
|
I poked around there a bit without getting too far, then I came up with a quick and dirty solution.
I edited photoplog_upload_form and photoplog_edit_form templates:
Code:
// replaced
$photoplog_select_row
// with:
<if condition="is_member_of($bbuserinfo, 12)">
$photoplog_select_row
<else />
<tr valign="top">
<td class="alt2">Category</td>
<td class="alt2"><select name="userfileinfo[catid]" id="sel_userfileinfo[catid]" tabindex="1" class="">
<option value="1" selected="selected"> General </option>
</select>
</td>
</tr>
</if>
This makes it so only members of usergroup 12 will be able to upload to all categories, while all other members will only be able to upload to 'General' (category 1). Of course, you can add more groups and category options.