Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Sep 2008, 12:48
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
Question edit post / seperate usergroups

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.
Reply With Quote
  #2  
Old 23 Sep 2008, 15:38
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 30 Sep 2008, 01:31
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
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.?
Reply With Quote
  #4  
Old 30 Sep 2008, 03:17
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 30 Sep 2008, 15:07
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
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
Reply With Quote
  #6  
Old 30 Sep 2008, 16:10
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 30 Sep 2008, 21:09
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
You're a star, thanks
Reply With Quote
  #8  
Old 01 Oct 2008, 23:07
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Real name: Karl
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.
Reply With Quote
  #9  
Old 11 Nov 2008, 13:05
ATVTorture ATVTorture is offline
 
Join Date: Sep 2008
This is something we really need as well. But I'm with you, creating a plugin myself is outta my league.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 15:28.

Layout Options | Width: Wide Color: