The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Does anyone know of a way in which I can apply different uses of the edit function to different usergroups?
I need to offer two different edit periods depending on group membership. For example, I'd like to offer standard members (usergroup a), say about one-hour to edit their posts, and then the option would vanish from their screens... However, I'd like for 'supporters' (usergroup b) to be able to have an extended period of time, whether it be considerably longer period of time or unlimited. I cannot fathom a way of doing this, but I'm sure it is achievable. |
#2
|
||||
|
||||
![]()
Just write a plugin. I wrote this one to extend the editing time in one forum. I used the fetch_foruminfo hook, you would probably use a different one to change the permissions based on a usergroupid. Here is mine - just modify for your own needs:
PHP Code:
|
#3
|
||||
|
||||
![]()
That is a super start, thank you - I had no idea it would be so easy. However, as ever, I have an addition question... Where might I need to look to change this? postbit,showthread,etc.?
|
#4
|
||||
|
||||
![]()
To change it? I wrote that code to be used in a plugin. I suppose you could go into the files and edit/change it, but I'm not sure which file that would be in.
|
#5
|
||||
|
||||
![]()
If I knew how to write a plugin, I might be able to move forward LOL. Sadly, I'm not that educated on it to know even where to start
![]() |
#6
|
||||
|
||||
![]()
The best place to start reading up on them is the manual - Plugin System - and the Articles Forum. Or, what I've always done is found a similar modification and then seen how they did it. For instance, this one is very similar to what you want - Allow Usergroups to Post HTML - just modify it to suit your needs.
|
#7
|
||||
|
||||
![]()
You're a star, thanks
![]() |
#8
|
||||
|
||||
![]()
This is just over my head. The VB manual doesn't seem to tell me where I should I create code, doesn't tell me what hooks I can/can't use. I've spent the best part of 4 hours trawling through it.
|
#9
|
|||
|
|||
![]()
This is something we really need as well. But I'm with you, creating a plugin myself is outta my league.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|