Post Icon Permission Plugin
#41
Desperately need this still.
Reply
#42
I'm still very much in need of this.
Reply
#43
Whats funny is i just made a thread about this same thing. And researching it i came upon this.
https://community.mybb.com/thread-202806.html

(2016-03-17, 08:44 PM)Vanz Wrote: Use

http://mods.mybb.com/view/yourcode : YOURCODE

combined with

http://mods.mybb.com/view/advanced-mycode-permissions ADVANCED MYCODE PERMISSION

What exactly was the outcome of this?


Quote:I'm still hoping for a plugin that allows me set Post Icons for certain user groups.
Ditto. I would like this as well. Im not to keen on the removing smilies idea. But for post icons...I would really like to restrict them to X user group, not remove them altogether.


EDIT:
I did get both plugins working. And the yourcode plugin only worked if you got the latest version from github
https://github.com/WildcardSearch/YourCode


However i am in the same boat. There is no options for post icons, only BBCode. And i have no idea how to add it. I would probably keep yourcode active except it broke the BBCode, and i have no idea how to fix it.


Attached Files Thumbnail(s)
   
Reply
#44
(2016-09-29, 03:31 PM)metulburr Wrote: Whats funny is i just made a thread about this same thing. And researching it i came upon this.
https://community.mybb.com/thread-202806.html

(2016-03-17, 08:44 PM)Vanz Wrote: Use

http://mods.mybb.com/view/yourcode : YOURCODE

combined with

http://mods.mybb.com/view/advanced-mycode-permissions ADVANCED MYCODE PERMISSION

What exactly was the outcome of this?


Quote:I'm still hoping for a plugin that allows me set Post Icons for certain user groups.
Ditto. I would like this as well. Im not to keen on the removing smilies idea. But for post icons...I would really like to restrict them to X user group, not remove them altogether.


EDIT:
I did get both plugins working. And the yourcode plugin only worked if you got the latest version from github
https://github.com/WildcardSearch/YourCode


However i am in the same boat. There is no options for post icons, only BBCode. And i have no idea how to add it. I would probably keep yourcode active except it broke the BBCode, and i have no idea how to fix it.

Didn't help me in the slightest, absolutely no options for post icons. I've changed my mind about smilies and only looking for Post Icon Permissions now but still no closer to doing this.
Reply
#45
arg!!!! i wish i was fluent in php and how mybb worked. I could just write it myself.

I finally had gotten a hack for this. 

1) I downloaded template conditionals 
http://mybbhacks.zingaburga.com/showthread.php?tid=464

2) enabled it

3) insert the below code in replace of {$posticons} in both these lcoations...
ACP -> Templates and Styles -> Templates -> default -> New Reply Templates -> newreply
ACP -> Templates and Styles -> Templates -> default -> New Thread Templates -> newthread

<if $GLOBALS['mybb']->user['usergroup'] == 4 || $GLOBALS['mybb']->user['usergroup'] == 3 then>{$posticons}</if>

4) (change the id to your admins/mods id) .... where 4 is the id of my admin and 3 is the id of my super mods. Apparently this can change. To find out what the ID is , go to your user groups and select each group, and in the URL it will show at the end the id number

AKA if the user group is allowed, then only show the post icons. Because the default is show no icon, all other users by default will show no icon, and they wont even have the option to change it.
Reply
#46
That's easy enough the problem is I was hoping to pick and choose which icons can be seen by which usergroup as opposed to removing them completely from certain usergroups.
Reply
#47
ah ok, i didnt realize that.

Now i am wondering if there is a way to create different {$iconlist} variables, and then use template conditionals to display them to the proper usergroups.
Reply
#48
Would still love to do this.

Is there perhaps a way to add additional post icons and then I can use the method above to hide the new icons except for certain usergroups?
Reply
#49
iconlist doesnt appear for me in the templates, which probably means its a php variable. So where ever that is located just needs the new icon rows added in a php if condition to add it to iconlist

$ sudo grep -ri iconlist
[sudo] password for metulburr: 
inc/functions.php:	$iconlist = '';
inc/functions.php:		eval("\$iconlist .= \"".$templates->get("posticons_icon")."\";");
install/resources/mybb_theme.xml:<td class="trow1" valign="top">{$iconlist}</td>
if your OK with core edits
Reply
#50
(2017-01-03, 03:37 PM)metulburr Wrote: iconlist doesnt appear for me in the templates, which probably means its a php variable. So where ever that is located just needs the new icon rows added in a php if condition to add it to iconlist

$ sudo grep -ri iconlist
[sudo] password for metulburr: 
inc/functions.php:	$iconlist = '';
inc/functions.php:		eval("\$iconlist .= \"".$templates->get("posticons_icon")."\";");
install/resources/mybb_theme.xml:<td class="trow1" valign="top">{$iconlist}</td>
if your OK with core edits

I have found the file but I have no idea where to begin :/.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)