Version: 1.00, by mem
Developer Last Online: Nov 2004
Version: 2.2.x
Rating:
Released: 04-21-2002
Last Update: Never
Installs: 16
No support by the author.
Hack description:
1.Allow you to setup whitch forum can be hide by time, ex: 8:00 am ~ 14:00pm ,Something like you had a adult sex-photo forum,you can set it open in the night,and hide during day time.
Install Steps:
1.Upload install_autoswitch.php to your admin folder
2.Backup your Vbulletine database before you install this hack.
3.Complete all the steps as follow.
PS:
you must set forum permissions to become private's forum,then option can view.
for example the following figure
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
After installing the hack, when I try to chance forumpermissions of any non private forum which doesn't have the hide by time attributes in forumpermissions, I get the following error:
Quote:
Invalid SQL: INSERT INTO forumpermission
(forumpermissionid,usergroupid,forumid,canview,can search,canemail,canpostnew,canmove,canopenclose,ca ndeletethread,canreplyown,canreplyothers,canviewot hers,caneditpost,candeletepost,autoclose,autoopen, canpostpoll,canvote,canpostattachment,cangetattach ment)
VALUES
(NULL,4,7,1,0,0,0,0,0,0,0,0,0,0,0,,,0,0,0,0)
mysql error: You have an error in your SQL syntax near ',0,0,0,0)' at line 4
mysql error number: 1064
Obviously non private forums do also carry the autoclose and autoopen attributes but as I'm unable to put any numbers into the corresponding fields (they are not there if the forum is non private) they are empty. This leads to the above error. Does anyone have any solution??
okay mem i have got this gack installed on vb 2.2.6
now how do I get this wot work, I have try everything you suggested, either you are leaving instructions or it just isnt working right now, please can you give us more detail as to how to get this to work, thanks
I have the same error how aidler. it is possible that we interpreted the instruction from the installation guidance "place this to the top". Please legend nevertheless times which exact you mean since. I only set the lines over it
After installing the hack, when I try to chance forumpermissions of any non private forum which doesn't have the hide by time attributes in forumpermissions, I get the following error:
Obviously non private forums do also carry the autoclose and autoopen attributes but as I'm unable to put any numbers into the corresponding fields (they are not there if the forum is non private) they are empty. This leads to the above error. Does anyone have any solution??
I figured out a temp fix for this ... open up the formpermission.php, make a backup and remove these lines:
autoclose,autoopen
$autoclose,$autoopen
autoclose=$autoclose,autoopen=$autoopen
Save/upload "formpermission.php" and make any changes to your permissions. Add the lines back in the same place they were (or upload the backup you made) and everything works fine.
I hope that someone try to fix this so that it will work without having to remove these variables!