The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to allow users to edit their posts for limited time after posting?
How to allow users to edit their posts for limited time after posting?
Also, is it possible to have different times for different categories? For example, I want the users to be allowed to edit their posts for 60 minutes after posting in the Introduction forum. And for 30 minutes in the General chat lounge forum. And so on. Different time allowed for different categories/forums. Is this possible to do? |
#2
|
||||
|
||||
NOT TESTED, but probably a plugin at the global_bootstrap_complete with something like this:
PHP Code:
|
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
Quote:
Code:
if (isset($foruminfo)) { global $vbulletin, $foruminfo; $edittimes =array(c1=>t1, c2=>t2...); $parents = array_intersect(explode(',',$foruminfo['parentlist']), array_keys($edittimes)); if (($parent = reset($parents)) !== FALSE) { $vbulletin->options['edittimelimit'] = $edittimes[$parent]; } } where you'd change c1, c2, etc to the category ids, and t1, t2, etc to the corresponding times in minutes. I haven't test it except to see that there aren't any typos. I changed the 'if' condition because it looks like edittimelimit is used in some other places. |
#5
|
|||
|
|||
Quote:
https://vborg.vbsupport.ru/forumdisplay.php?f=251 Is the category ID for this 251? https://vborg.vbsupport.ru/forumdisplay.php?f=250 Is this category ID for this 250? |
#6
|
|||
|
|||
Quote:
|
#7
|
|||
|
|||
Just out of curiosity, are you using "forum" and "category" to mean the same thing? If so then what Lynne posted would have worked. But when you asked about categories I thought you wanted to be able to set the time for a category and all child forums.
|
#8
|
|||
|
|||
Is this what you're looking for under CP..Settings..Options? Or is this some add-in on our MB?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|