![]() |
$oldprivate?? i'm confused...
i have a problem understanding this code segment in admin/forum.php:
Code:
$perms=getpermissions($forumid,0,2); |
It check the Registered's forum permission for $forumid, and if they have access to that forum $oldprivate is 0. If they don't, it's 1. Then if $oldprivate isn't equal to $private (the next line), it means the forum's "privateness" (is that a word?!) was changed (i.e it was either 0 and it's now 1, or it's now 0 but was 1).
|
ahaaa.. thanks firefly. i asked about this because i want to add a new option in a news hack (vbHome, you guessed). so basically i try to do this:
in /admin/forum.php, add: Code:
makeyesnocode("News forum<br>(Invisible to all except journalists, super moderators and admins; user access masks must be on!)","privatenews",0); Code:
if ($perms[canview]==1) { Code:
if ($oldprivate!=$private or $oldprivate!=$privatenews) |
All times are GMT. The time now is 10:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|