Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Allowing Guests to view Discussions in 0.9.2
Hi everyone, I'm using vanilla to launch an upcoming online magazine but it's giving a couple of issues. One is that I can't set threads to sticky or closed, it says it does it but nothing happens, so I'm forced to go into the database and do it. Not a huge deal, just a minor inconvenience.
Also non-members/guests are not allowed to view any discussions. I set "allow non-members to browse forums" but it didn't do anything. The only thing I can do is allow banned members to participate in forums, which is something I really don't want to do.
Also just realized that my saved forum preferences for my user account say they're saved, but they're not. Something I really don't feel like diving into the database to handle.
Is there a way around this or should I just wait for the 0.9.3 release and see if that remedies things? I'm assuming it'd be better to wait for the next release and just install fresh, does anyone have an estimate on how long that'll be?
0
This discussion has been closed.
Comments
It probably would throw a big error if there was a major missing priv, but it might silently fail in certain rare cases.
function PanelSwitch(PanelItem, RefreshPageWhenComplete) { var chkBox = document.getElementById(PanelItem+"ID"); if (chkBox) { ChangeLoaderText("Processing..."); SwitchLoader(1); var dm = new DataManager(); if (RefreshPageWhenComplete == 1) { dm.RequestCompleteEvent = RefreshPage; dm.RequestFailedEvent = RefreshPage; } else { dm.RequestCompleteEvent = HandleSwitch; dm.RequestFailedEvent = HandleFailure; } dm.LoadData("./tools/switch.php?Type="+PanelItem+"&Switch="+chkBox.checked); // Debug: document.location = "./tools/switch.php?Type="+PanelItem+"&Switch="+chkBox.checked; } }
As you can see, all you need to do is comment out the dm.LoadData line and uncomment the // Debug line, so the end of the function will look like this:
// dm.LoadData("./tools/switch.php?Type="+PanelItem+"&Switch="+chkBox.checked); document.location = "./tools/switch.php?Type="+PanelItem+"&Switch="+chkBox.checked;
Then, on the account > Preferences form, it if you check or uncheck one of the preferences that was giving you trouble, it will send you to the ajax page that handles that request so you can see if you get any errors.
I got a nice little chunk of hate
Warning: main(../vanilla/appg/headers.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 13 Warning: main(../vanilla/appg/headers.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 13 Warning: main(): Failed opening '../vanilla/appg/headers.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 13 Warning: main(../vanilla//library/Utility.Functions.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 14 Warning: main(../vanilla//library/Utility.Functions.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 14 Warning: main(): Failed opening '../vanilla//library/Utility.Functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 14 Warning: main(../vanilla//library/Utility.Database.class.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 15 Warning: main(../vanilla//library/Utility.Database.class.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 15 Warning: main(): Failed opening '../vanilla//library/Utility.Database.class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 15 Warning: main(../vanilla//library/Utility.SqlBuilder.class.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 16 Warning: main(../vanilla//library/Utility.SqlBuilder.class.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 16 Warning: main(): Failed opening '../vanilla//library/Utility.SqlBuilder.class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 16 Warning: main(../vanilla//library/Utility.MessageCollector.class.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 17 Warning: main(../vanilla//library/Utility.MessageCollector.class.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 17 Warning: main(): Failed opening '../vanilla//library/Utility.MessageCollector.class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 17 Warning: main(../vanilla//library/Utility.ErrorManager.class.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 18
That's like 1/3 of it.
Note: I've been wrong many times before, including above.
Do any of your other settings have "vanilla" with a slash?
Warning: main(../vanilla/appg/headers.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 13 Warning: main(../vanilla/appg/headers.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 13 Warning: main(): Failed opening '../vanilla/appg/headers.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 13 Warning: main(../vanilla/library/Utility.Functions.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 14 Warning: main(../vanilla/library/Utility.Functions.php): failed to open stream: No such file or directory in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 14 Warning: main(): Failed opening '../vanilla/library/Utility.Functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxviiine/public_html/vanilla/appg/init_ajax.php on line 14
Proper privs?
Thanks all for the help
(and, of course, you'll need to switch your javascript back to the original way)