Warning: The author of this contribution does not provide support for it anymore.

Info Boxes Advanced

Control who can post Info Box - Info Boxes Advanced

Control who can post Info Box

by wlandrum » Thu Jul 11, 2013 8:46 pm

Thank you for this mod. It was just what I was needing on our board.

Is there a way to control who can post the Info Box message? Right now it looks like any user can do this. I would like to set it to specific users or a group.

Thank you!
wlandrum
Registered User
Posts: 59
Joined: Mon Oct 02, 2006 5:19 am

Re: Control who can post Info Box

by wlandrum » Thu Jul 18, 2013 2:56 am

I figured this out by editing the overall header. I changed the code to the following:

Code: Select all

<!-- IF U_MCP --><!-- IF U_INFO_BOX_ALLOWED --><li class="info_box_icon"><a href="{U_INFO_BOXES}" title="{L_INFO_BOXES}">{L_INFO_BOXES}</a></li><!-- ENDIF --><!-- ENDIF -->
wlandrum
Registered User
Posts: 59
Joined: Mon Oct 02, 2006 5:19 am

Re: Control who can post Info Box

by Cable Player » Fri Oct 31, 2014 10:39 pm

Hi there, I was going crazy trying to find the permissions to change so that I could restrict who can and can't create new info boxes and came to the same conclusion - the permissions aren't there.

Your change is good, but that only changes if the header link is visible or not - members can still access /info_boxes.php

The "New Topic" button on the /info_boxes.php page appears to be restricted do Administrators only:

Code: Select all

<!-- IF U_ACP -->
   <div class="buttons" style="padding: 5px;">
      <div class="post-icon"><a href="{U_INFO_BOXES_CREATE}" title="{L_POST_REPLY}"><span></span>{L_POST_REPLY}</a></div>
   </div>

<hr class="dashed" />

<!-- ENDIF -->


The <!-- IF U_ACP --> means the code after that statement would show only to Administrators.

So... You don't actually need to remove the header link, however it does simplify the use of it so it could only show on the index page for example.
Cable Player
Registered User
Posts: 516
Joined: Thu Feb 03, 2011 4:45 pm
Location: Hampshire, England
Contact: