Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Rejected] More options for not permitted forums
#19
(03-21-2016, 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
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)