Quote:
Originally Posted by sandviper
I'm running v3.06
I'm having the same problem as everyone else it seems. The following code is keeping guests from viewing forums that I have set as 0 posts required to view.
---
if ($foruminfo[access_nb]<=$bbuserinfo[posts] || $bbuserinfo[usergroupid]==6)
eval('print_output("' . fetch_template('FORUMDISPLAY') . '");');
else print_no_permission();
---
Has anyone figured out how to allow guests to view the forums that have the post count set to 0? I wanted to restrict certain forums, but the hack is affecting all of them.
|
I know this is a bit late, but I only just started playing with this hack. I had the same problem with guest access to the forum, and solved it by changing the forumdisplay code to this
PHP Code:
if ($foruminfo[access_nb]<=$bbuserinfo[posts] || $bbuserinfo[usergroupid]==6 || $foruminfo[access_nb] == 0)
eval('print_output("' . fetch_template('FORUMDISPLAY') . '");');
else print_no_permission();
All this does is ignore the view permission if the required post count is set to 0, and that is the default in the database column, so it resolves the guest access issues.