PDA

View Full Version : help me plz need advice


Thug
01-19-2005, 12:30 PM
i installed this hack https://vborg.vbsupport.ru/showthread.php?t=59617&highlight=read+user+pm
but how do i make it so all admins can read and not just super admins

Marco van Herwaarden
01-19-2005, 12:39 PM
Change in pm.php the following line:
if (!in_array($bbuserinfo['userid'], preg_split('#\s*,\s*#s', $superadministrators, -1, PREG_SPLIT_NO_EMPTY)))

And replace by:
if ((!in_array($bbuserinfo['userid'], preg_split('#\s*,\s*#s', $superadministrators, -1, PREG_SPLIT_NO_EMPTY))) AND ($bbuserinfo['usergroupid'] != 6))

This is untested, but should work.

Next time please ask your question in the support thread of that hack.

PS Are you 100% sure that this is a good move?

Thug
01-19-2005, 12:41 PM
well i realy need it so admins can read