Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Jan 2015, 19:57
Medi0cr3 Medi0cr3 is offline
 
Join Date: Aug 2014
Arrow PHP modified Forum Permissions & updating the forum cache

As I figured out how to do this, I'm editing my post entirely more for a tutorial or a small how to.

If you want to update forum permissions by entries you make into the database, the data must be cached for it to be visible in the forum. There's a few lines you need in a custom page.

You must also reference a permission for a particular forum. I would setup a forum like you want using the AdminCP and then going into the database. Look at the "forumpermissions" table and loo to see what the permission that usergroup received for that particular forumid.

If the column forumpermissions is equal to 0, the usergroup doesn't have any permissions and relatively enables it unusable by that usergroup.

You must include these lines on your page:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Your custom code:
Do your insert/update/delete commands and then finalize it by adding:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This works great.

Last edited by Medi0cr3; 24 Jan 2015 at 14:09.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:06.

Layout Options | Width: Wide Color: