Log in

View Full Version : Limiting access to forums based on data from a new table


tonjohn
02-02-2012, 04:21 PM
Lets say I have a new table "user_oauth" with the following columns: userid, oauthid

If users want to post in certain forums, they need an entry in this table.

Where do I need to hook to do this?


Also, I want to display the oauthid on the postbit. To do this, I'm hooking showthread_query with the following:
$hook_query_fields .= ",o.oauthid";
$hook_query_joins .= " JOIN user_oauth o ON post.userid = o.userid ";
Other than the post bit template change which I've made and works, is there anywhere else I should be making changes (ex/ for caching to work properly)?

Thanks in advance for your help!

tonjohn
02-05-2012, 05:31 PM
Anyone have any idea? :)