Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Rejected] More options for not permitted forums
(2016-03-21, 11:31 AM)Nik101010 Wrote: Sure you can achieve that in 1.8 ...

Use the hook build_forumbits_forum in functions_forumlist.php ... In your function you use the global $forumpermissions and the argument $forum to decide whether MyBB skips the calculation or not. When MyBB does the calculation your plugin does nothing. Otherwise your plugin does the calculation (should basically be copy + paste from functions_forumlist.php) and adds the results to the returned $forum (custom array fields). These fields are then used in the templates to display the data.

Thank you, I will try that. Smile

Messages In This Thread
RE: More options for locked forums - by Ben - 2015-06-14, 08:57 PM
RE: More options for not permitted forums - by Amaryllion - 2016-03-22, 08:36 AM
More options for not permitted forums - by Ben - 2016-12-09, 10:07 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)