The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
CMS Disabler Details »» | |||||||||||||||||||||||||||
Reason why I wrote this mod
When vB4 gold comes out, I'd like to switch to it, get my forums working first and foremost. While that work is going on, I have content authors that need to create content, but I don't want this done on a live site where my users can see them working. I also need to skin the CMS, etc. Once things are skinned, content is written, all of that. I want to simply "turn it on" and everything is live and ready to go. What this mod does
Thanks BirdOPrey5, for updating the mod to work with vb 4.2 as well as fixing some other issues. I'm no longer supporting the mod and the code is reusable and I've updated the download to reflect his code/changes. To Lynne for telling me what I needed to do when I asked the question, but not specifically telling me how to do it (doing it for me). Learning is fun, sometimes. Installation: Install the XML as you would any other vB mod. Download Now
Supporters / CoAuthors Show Your Support
|
3 благодарности(ей) от: | ||
BirdOPrey5, Jamzyb, Zero13 |
Comments |
#42
|
|||
|
|||
Quote:
As of right now when the CMS is enabled EVERYONE sees it. The purpose of this mod is to allow the admin to pick only CERTAIN USERGROUPS to see it...hence effectively disabling it Your method TURNS off the cms. This method allows the admin to develop the cms without anyone actually knowing it is enabled. Without this mod there is no built in way (in vb) to hide the cms from users if it is enabled. |
#43
|
|||
|
|||
Oh by the way, this mod doesn't work correctly.
In the adminCP options page for this mod it says: "Enter user groups that you want to have access to your CMS. Separate usergroups with a comma. Example: 6,5" However, it is not coded correctly to work w/ more than one usergroup so inputting more than usergroup id will beak the board. is_member_of() requires you to input usergroup ids, not an array. So you can't use this: Code:
<vb:if condition="is_member_of($vbulletin->userinfo, $vbulletin->options['cms_disabler_usergroups'])"> Here's what I did to fix the issue. In the plugin titled "CMS - Redirector" add the following to the top: PHP Code:
then replace this line: PHP Code:
PHP Code:
|
#44
|
|||
|
|||
Thanks for that fix, I'll try and get it into an updated release shortly. Just been pressed for time on other projects. But again, thank you!
|
#45
|
|||
|
|||
No problem.
...i've actually been trying to figure out how to make the change to the template lol. I guess with the new vb version you can't put in_array($bbuserinfo[usergroupid], $some_array) in a template. It keeps spitting out an error saying that $some_array isn't an array. |
#46
|
|||
|
|||
Ok, to fix the template replace
Code:
<vb:if condition="is_member_of($vbulletin->userinfo, $vbulletin->options['cms_disabler_usergroups'])"> Code:
<vb:if condition="$cms_disabler"> Hook location: global_start Code: PHP Code:
|
#47
|
||||
|
||||
Quote:
I explained that I was looking for a way to COMPLETELY disable the CMS, and I stumbled upon this mod but it was not exactly what I needed; since I thought that other people could have my same requirement I thought it was useful to post what I discovered. I thanked the dev, and I explained why I posted those instructions; I really don't see why you wrote your post...completely useless. Anyway...no problem...forums unfortunately are full of posts like yours. Take care. |
#48
|
||||
|
||||
One item for the documentation.
Make sure you set vBCms Comments forum permissions to only allow the selected usergroups to have access to the comments as by default (at least in my case) everyone could see the comments. |
#49
|
|||
|
|||
Hi Brother Malachi, Re the user ID array. Thanks for the code update. I got around the problem quickly by setting the Moderators group as the group with access and then adding the mod groups as a secondary user group on the Admin's account. This way I get all my mods and my admins on the CMS. I guess I could also have set-up another user group called CMSviewers and then added that as a secondary group to everyone I wanted to see the CMS, probably a bit tidier and easier to delete when I'd finished. Either way it's allowed me to do what I needed to do....But thanks all the same for the code update, I really appreciate you getting this done and adding to the thread, it's certainly a much tidier way of doing it.
Rgds Pete |
#50
|
|||
|
|||
now that my forums are all set for a little bit I have some time to finally work on the CMS thanks to this mod.. I used impex to port over all the stuff from the old CMS, but it wasn't a completely clean transfer. This mod allows me to begin formatting everything correctly at my pace so it doesn't inconvenience anyone else/nobody else needs to know anything is changing until it's ready for all to see
thanks a lot! |
#51
|
||||
|
||||
Why not just disable the plugin for it?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|