Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Rejected 2.0 Suggestion] More options for not permitted forums
#11
It can be

(06-15-2015, 05:11 PM)Destroy666 Wrote: Just remove posting permissions and leave viewing permissions. Or uncheck the "Forum is Open?" option. It's been possible in MyBB for a very long time and you can even see a live example on this forum: http://community.mybb.com/forum-106.html
-Ben

Please do not PM me for support. I am looking to be hired for paid services.

You can view my paid services here.
Reply
#12
Just by repeating, it does not become more true, I'm afraid. This live example does not show any of the things I wrote about. Like here.
Reply
#13
So if you do not want this feature in core, how about the possibility to get plugin hooks in functions_forumlist.php that make it possible to get in control of the counting of the counters and the last posted date => to show these if you want to show them?
Reply
#14
There most likely won't be a file called functions_forumlist.php in 2.0 sinc eit's a total rewrite.. Besides, you can easily achieve that through hooks and template changes in 1.x.
Reply
#15
If it will be possible to achieve these changes via plugin, then everything sholud be fine. But now in functions_forumlist.php there is code that actually stops counting if the user has no right to enter a forum. You cannot achieve it through hooks and template changes.
Reply
#16
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.
You found my signature? Well done : - )
Reply
#17
Aren't you looking for can view forum? = yes and can view threads? = no as the permission settings? That allows the user to see the forum exists but not threads inside it? If you want users to see the thread list but not the posts, I'm sure there is a plugin knocking around that does that...
Reply
#18
The forum listing shows forum statistics, post-, threadcount and last post. This information is replaced with a "-" / "Never", when the MyBB settings are used, but should be displayed ^^
You found my signature? Well done : - )
Reply
#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
#20
It would sure be much simpler to do these things if there were more hooks. I could use lastpostdata. Now lastpostdata is cleared deliberately and I also cannot change the $showlockicon, because everything after the only hook is overwritten. (I want the lockicon and no link if the forum is not permitted to read.)

I think, I just give up and just edit the file over and over again with every update.
This is very unsatisfactory. Undecided It would be so easy to implement these things as options in core.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)