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);
and with all the changes that refers to $private (or private), you know what they are, i also add above or below [high]privatenews[/high]... if i add this:
Code:
if ($perms[canview]==1) {
$oldprivate=0;
$oldprivatenews=0;
} else {
$oldprivate=1;
$oldprivatenews=1;
}
if ($oldprivate!=$private and $oldprivatenews!=$privatenews) {
(you get the idea, i don't post here the hole changes), if i check the YES button, it will mark it as NO all the time. could i use only $oldprivate variable and referr to it like that?
Code:
if ($oldprivate!=$private or $oldprivate!=$privatenews)
let me know what you think. is gotta be a new table field that i have to add, let me know. thanks.