The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
have to set allowposting on/off on delay
allowposting is a permission, so set in the bitfields...
( $fmanager->set_bitfield('options', 'allowposting', 1); ) i need to set all forum tagged X to be closed at X hour... i just need to know how to set the permission per forum, and i can't find it... i have my cron jobs for both situation (open/close) but i need to know the best way to deal with these two settings: 1- select each forum that have the proper tag 2- for each of these forums, set the proper permission and save can someone help on that stupid task ?! ... btw, this gadget would be released to let admins set a forum they want to be open/closed on certain hours per day.. (like a nightlife forum...) |
#2
|
||||
|
||||
PHP Code:
Hmm ... but could be optimized. It uses one query/forum = bad. |
#3
|
|||
|
|||
ya, surely you have this hack in your pocket hey... release it my friend!!!
|
#4
|
||||
|
||||
I don't think IO am going to release it. Not coded thaaat good, as I just did that for my site last year or so.
|
#5
|
|||
|
|||
ya, anyway, this is not exactly the thing i created the task for...
let's see if we can build something solid: 1- in the Edit Forum, admin can set the forum to be opened at X hour and closed at X hour. (if set to 0, the forum is not touched by the cron job) ... that's it for the forum... 2- the cron job #1 verify what forum is to be re-opened (at X hour) and open it. 3- the cron job #2 will do the opposite, close the forum that exceed the hour limit... these two crons have to be run once an hour, and can be contained in the same cronjob... when the forum is closed for that feature, a message to invite people to come between the two hours limits is displayed... etc etc etc... Quote:
hu, btw, you have so much great ideas, when we play with your hacks we can find more features to add... just like me... my craps are used in some other hacks... funny.. lol |
#6
|
||||
|
||||
Quote:
In forummanager, one can define a time interval when the forum shoul be open, as well as an option to decide if threads should be physically deleted or not. The cronjob runs at opening/closing times and does the job. Quote:
|
#7
|
|||
|
|||
ya, it's hidden for your own feature, but not for mine... hum,. i may even add a setting for hidding or not the closed forum.. lol
will see! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|