Log in

View Full Version : Password Forums / sub-forums


Zachariah
10-09-2005, 07:02 PM
I have a hack I have used since vb3.0. All has worked ok Till 3.5 (something changed )

All users no matter the usergroup must enter a password to a forum that has a password.


Open:
includes/functions.php


Search: (about line 3023)
if (!$password OR ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) OR ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator']) OR can_moderate($forumid))


Change to:
if (!$password)

Re upload.


This will not work on Sub-Forums only forums on the 1st level now for some reason. In VB3.0x it worked on sub-forums.

Any ideas ?

Andreas
10-09-2005, 09:23 PM
I don't think it is a problem with the Code.
Are you sure you've applied the password to the child-forums as well?

Zachariah
10-12-2005, 11:23 PM
I don't think it is a problem with the Code.
Are you sure you've applied the password to the child-forums as well?

RAWR.
That's why your KirbyDE :bunny:

Andreas
10-12-2005, 11:25 PM
May I ask what RAWR does mean?

Zachariah
10-12-2005, 11:50 PM
May I ask what RAWR does mean?
The people roars as the king approaches. - more computer slang. :rolleyes:

Just sending you some praise.

Your idea on th sub-forums is true. This must be done on sub-forums. The parent 1st level forums do not need it, but it will not hurt it.