![]() |
Limit Thread Prefix by Usergroup
/*================================================= =====================*\ || ################################################## ################## || || # ---------------- LIMIT THREAD PREFIX BY USERGROUP -------------- # || || # ---------------------- CREATED BY OPSERTY ---------------------- # || || # This modification may not be redistributed without prior consent # || || ################################################## ################## || \*================================================ ======================*/ WARNING: THIS MODIFICATION REQUIRES FILE EDITS. Please follow all instructions carefully before attempting to use this modification What does this modification do? This modification allow you to control which Usergroups have access to use certain prefix sets. For example in a Help/Bug Report forum, you may only want to allow staff to prefix problems into categories. Why does this modification require file edits? The AdminCP has a minimal number of hook locations onto which to attach plugins, this is done for security and stability reasons by the vBulletin team. Therefore it has not been possible to make this modification 'file edit' free. What versions of vBulletin does this modification work with? This modification has been tested to work with 3.7.1, however it will most probably also work on 3.7.0. Please note I cannot offer support for help with this modification on 3.7.0 so if you experience problems it will be best to upgrade to 3.7.1 and then see if your errors are resolved. How to install: (These instructions are detailed also in the README file attached in the ZIP Archive.) 1. IMPORT PRODUCT ------------------------------------------------ Import the product as normal through the AdminCP. AdminCP > Plugins & Products > Manage Products 2. UPLOAD FILE ------------------------------------------------ Upload functions_opserty_prefix_ugps.php to the '/includes/' directory of your forum root 3. MAKE FILE EDIT (1) ------------------------------------------------ Download and Open admincp/prefix.php from your vBulletin installation. (Code additions have been highlighted in Green) You will need to edit the file in a plain text editor, notepad or wordpad will do fine. Find (approx. Line 303): PHP Code:
Code:
$prefixsetdm->set('displayorder', $vbulletin->GPC['displayorder']); ------------------------------------------------ Find (approx. Line 448): PHP Code:
Code:
4. UPLOAD ------------------------------------------------ Upload the newly edited prefix.php to your server and test away =] If you receive PHP Parse errors it means you have probably edited prefix.php incorrectly, download a new copy of prefix.php from vBulletin.com and try editing the file again. Remember to undo file edits and remove files, if you uninstall this product in order to avoid errors in future. I have done my best to test this modification, however if you notice any bugs please post them in this thread so I can look into them. Please do not private message me for support with this modification, all support will be given through this thread ONLY. |
nice one mate! :)
ps. it's time to put an avatar ... :p |
Glad you like it ;)
Well hopefully if I hang around here long enough I might be able to bribe an Admin into getting me promoted and be then be able to get my sticky mits on a vB.org Staff Avatar :D |
done well. Thanks for all your help. Ive done some further testing and all seems to work fine.
|
Great work, thank you. I needed this to allow me to post "Site News" on my vBadvanced without allowing regular users to do so too.
|
|
Quote:
|
nope - you can set the user groups per forum via a setting....
|
RedGTiVR6 - That modification is done on a per forum basis I believe (i.e. enable usergroups to use any prefixes in a forum or not).
Where as this modification is per prefix set. With this one you can still allow people to use selected prefixes but restrict certain prefixes to certain User groups, for example only Administrators could use an "Announcement" prefix or something. |
I installed this and it works perfect! I was gonna put in a feature request and then I found this and it's exactly what I needed.
Thank you so much Opserty! :) |
No problem. I'm glad my first modification has been bug free :D
|
thanks. Very nice mod!
|
Excuse me, but how do you actually edit the permissions?
|
You can set the permissions when adding/editing the Prefix Set.
|
Eh? I took a look at that, and there was nothing there.
|
OK, found it. Thanks for support and release.
|
Thank you for this!
|
You are most welcome :)
|
Thanks alot for this Opserty, using this I was able to create a front page/semi-CMS where the staff can control whats shown and where its shown on the front page by using certain prefixes on threads. It saved me alot of work.
|
No problem.
Note as of 4th Aug. vBulletin has announced a similar feature in 3.8 development update: Quote:
|
great mod, reserved :D
|
So you can only set usergroup permission when adding new thread prefixes? When I go to edit a prefix, I don't see a way to edit usergroup permissions...
Nevermind.... The permissions are on the prefix set not on individual prefixes... thanks! |
works well on 3.7.4 :up:
|
The mod did not works anymore since I upgraded vB to 3.8.1 :(
I have included the file change to the new adminCP prefix.php file. Seems that the userCP is unable to change anything on the prefix "group" rights. When I add a new group to enable it to use a prefix, it still is unable to do. When I remove a group, it still is enable to use prefixes ! So there is something strange and I don't find what ! HELP !!! :) |
bump :(
|
I need this for a 3.7x site so I am going to give it a try. It looks very promising!
|
Is compatible with 3.8.4?
|
All times are GMT. The time now is 05:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|