![]() |
That's what its supposed to do, but it never does the "no" code.
|
This is what you need to add
After this: $permission = $DB_site->query("SELECT canview FROM forumpermission WHERE forumid='$forum[forumid]' AND usergroupid=2"); Add this: list($canview) = mysql_fetch_row($permission); Change if ($permission == 0) To if ($canview == 0) Thats it |
Now everything is set to No instead of Yes. :(
|
That's because all the canview fields are (probably) set to 0.
|
I'm pretty sure my entire board isn't invisible to all users... :)
|
Thanks to all of you ! I love this hack !
I have it running on my site with VB2.2.0 and have no major bugs found at all only one thing I would like to see a solution for or I missed it in this thread (sorry if I did). What about the password that is been send with the user info, till now I have only tested it to my own account and see to my surprise that my password is a very long number ;) Is there a solution for this problem ? |
[DarkReaper] --
OK I think this is it. After: while ($forum = DB_site->fetch_array($forums)) { Add This: $perms=getpermissions($forum[forumid],0,2); if ($perms[canview]==0) { makeyesnocode($forum[title],"forum[$forum[forumid]]",0); } else { makeyesnocode($forum[title],"forum[$forum[forumid]]",1); } |
A couple of comments:
In the generated email, there is a line that tells how to use the UserCP to subscribe, but it doesn't match the actual entry in the CP (and receive is missing the "e"). Replace it with: Code:
and change \"Receive Community Bulletin Emails?\" from yes, to no. Code:
<smallfont>Selecting Yes subscribes you to our Community Bulletin Email.</smallfont> Anyway, very nice job overall. I'm using it. Thanks much! |
Quote:
|
My comment didn't fix that bug, if there was one. I just noticed that the wording didn't match the Community Bulletin name.
|
All times are GMT. The time now is 05:05 PM. |
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:
|