Solved: 4 Years, 6 Months ago restrict post icons to admins/mods
#1
Solved: 4 Years, 6 Months ago
Is there a way to restrict post icons to admins and mods?
Everyone on the forum can see them, but only admins and mods can make the post icons choice.
Reply
#2
Solved: 4 Years, 6 Months ago
This is a good question, I'm assuming the code would look something like this

if ($mybb->['gid'] == 4) {
//display post icons
} else {
//dont
}
Reply
#3
Solved: 4 Years, 6 Months ago
no i mean not to display, but to add them. 

Everyone on the forum can see them, but only admins and mods can make the post icons choice.

The reason is no one uses them, and all we admins/mods use them for is is the I icon for information and such. 

Is there a way to disable them completely?
Reply
#4
Solved: 4 Years, 6 Months ago
(2016-09-25, 08:47 PM)metulburr Wrote: no i mean not to display, but to add them. 

Everyone on the forum can see them, but only admins and mods can make the post icons choice.

The reason is no one uses them, and all we admins/mods use them for is is the I icon for information and such. 

Is there a way to disable them completely?

Yes I understand, this code would still work, you would insert this only for new threads.

EDIT: Go to Post Icons in control pannel and delete all of them. You might need to edit some templates (displaythread)
Reply
#5
Solved: 4 Years, 6 Months ago
Yeah im not fluent in PHP or how MyBB works, otherwise i would do it.
Reply
#6
Solved: 4 Years, 6 Months ago
(2016-09-25, 08:49 PM)metulburr Wrote: Yeah im not fluent in PHP or how MyBB works, otherwise i would do it.


You're familiar with HTML/CSS though? I'm going to do this to my forum, I've been wanting to do it for a while. I probably won't have time until tomorrow though. I'll post the code back here
Reply
#7
Solved: 4 Years, 6 Months ago
yeah i could do that. But i was kinda hoping someone would come along and say put X line here and it will only allow mods and admins to insert post icons. lol
Reply
#8
Solved: 4 Years, 6 Months ago
Quote:I'm going to do this to my forum, I've been wanting to do it for a while. I probably won't have time until tomorrow though. I'll post the code back here
That would be great  Big Grin
Reply
#9
Solved: 4 Years, 6 Months ago
I foudn my answer to this
First install template conditionals plugin
then go to newreply and new thread templates and change posticon variable from this
{$posticons}

to this

<if $GLOBALS['mybb']->user['usergroup'] == 4 || $GLOBALS['mybb']->user['usergroup'] == 3 then>{$posticons}</if>
of course make sure the ID numbers are the same as your admins and mods
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)