News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

How to restrict use of certain post icons, for admin/moderator only?

Started by Plutuss, November 17, 2010, 08:29:40 PM

Previous topic - Next topic

Plutuss

Hello, I am using SMF 2 RC 4, and would like to know how it might be possible to restrict certain post icons to admins only or moderators only.

I suppose, ideally, that each post icon would have its own setting in permissions.

Does anyone have any ideas, or perhaps has tried this before?

If the above is not possible, I would be glad even if all post icons were only available to the admin or mods.

Illori

there is no way to do this in the default install, you can check the mod site or request a mod in the proper board here.

Deaks

you could add:

if ($context['user']['is_admin'])
{
icon tage here
}


in the post.template.php to the post icons you want this to be in
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: