The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Edit timeout: Is there a way to make it specific to a forum section or user group?
As far as I can tell, the edit button time limit is controlled only in one place, and is a global setting only. I have ours set to 12 hours, and this is the way that it's been since the start. I would like to be able to allow certain member groups and/or certain forum sections (or subsections) to edit their posts for a longer period of time without giving them moderator permissions.
Examples: 1) I want to keep my 12-hour edit time limit for all users, but allow any user to edit their post in a particular section either indefinitely or for a time period other than the global 12-hour limit I have set for elsewhere. 2) I have a user group that I would like to allow them to be able to edit their posts for a longer period of time than the 12-hour limit. It would be OK if this were only for a specific user group and in a specific forum section or sub-section. It does not need to be a global setting for this group. I am not wild about making a member a moderator for a section, as it would allow them to edit/delete others' posts. I only want to expand the time that they may edit their posts. Thanks! . |
#2
|
|||
|
|||
Theres a variable called $post[edit_time] so you could do something like
HTML Code:
<if condition="is_member_of($vbulletin->userinfo, X,X,X)"> <if condition="$post[edit_date] !< 12"> Edit post link </if> </if> |
#3
|
||||
|
||||
I don't think that will work because the php will verify whether the user is allowed to edit the post and will give him a no permission.
Plugin - fetch_foruminfo: PHP Code:
|
#4
|
|||
|
|||
Quote:
Quote:
. |
#5
|
||||
|
||||
It's a plugin using the location I specified - fetch_foruminfo.
|
#6
|
|||
|
|||
Many thanks. I'll give that a shot tonight...
. --------------- Added [DATE]1236136106[/DATE] at [TIME]1236136106[/TIME] --------------- OK, I actually modified my search terms and found more info that you had suggested elsewhere regarding specific user groups rather than forum ID's. Many thanks, as THAT worked like a charm. I added a usergroup called EDITOR and added a test user to that usergroup (as a secondary group) and set the timeout to 0 (zero, to make it indefinite). That worked really well. Now I want to get sorta complicated with this, but I want to grant these users the ability to edit indefinitely (or extended limit) in only particular forums. I would imagine that this would require nesting of two conditionals in the plugins, no? My question is, would I do two separate plugins and make them read in a specific order on the fetch_foruminfo hook, or would I nest them in the same plugin like below? PHP Code:
EDIT: I got adventurous and tried it. It appears to be working the way I have it specified above. It allows that in a specific forum, a specific member group may edit either a different specified time or indefinitely. WOOT! A specific example would be to have a special subsection in a Classifieds forum section that is specifically for dealers. If a dealer posts in the dealer subsection, they may edit their posts to reflect a change in pricing or availability. Any other member won't have the ability, unless they are a mod/admin. THANK YOU!!! . |
#7
|
|||
|
|||
can you post some steps or create a plugin and post it up to make this work for usergroups. thanks.
|
#8
|
||||
|
||||
The above code checks usergroups... (I gotta get round to updating my modification, don't I? )
|
#9
|
|||
|
|||
What can I make this so I can set a user to a usergroup manually, and it expires 30 days later?
|
#10
|
||||
|
||||
huh?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|