Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
CMS Disabler Details »
CMS Disabler
Mod Version: 2.00, by Trek (Member) Trek is offline
Developer Last Online: May 2015 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (15 votes - 4.73 average) Installs: 69
Released: 18 Dec 2009 Last Update: 25 Jul 2012 Downloads: 229
Not Supported Uses Plugins Re-usable Code Translations  

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
  • Allows you to set usergroups that can access your CMS.
  • If a user is not of this usergroup, they are forwarded to the forums.php page.
  • It will not display the "Home" button on the tabnav if the user is not in the allowed usergroups list as well.
Notes

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

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #31  
Old 28 Dec 2009, 22:29
Old-Git Old-Git is offline
 
Join Date: Dec 2009
Trek this is exactly what I'm looking for. I want my forums to load first when my Vb4 is accessed, I want only the admins to see the CMS and I want the Home button removed from the Navbar so that non-admins don't / can't find their way to the CMS until I'm ready to let them.

This is a great mod and I shall be installing it forthwith! Thanks Man for working this out and thanks for posting it. Saved me from having to re-invent the wheel or even teach myself to code VB... I have enough to do right now without learning something new!

Rgds

Pete
__________________
My Wife married Mr Right, she simply failed to appreciate that my first name is always!
Reply With Quote
  #32  
Old 29 Dec 2009, 19:19
cooltechie cooltechie is offline
 
Join Date: Apr 2004
Sounds like just what we need to test. Thanks for providing this.
Reply With Quote
  #33  
Old 29 Dec 2009, 22:41
utahraves's Avatar
utahraves utahraves is offline
 
Join Date: May 2007
Real name: Cody Cook
I'm an admin on my server and I set up the groups allowed and it told me I didn't have access to the content.php .... ?
Reply With Quote
  #34  
Old 29 Dec 2009, 23:16
Trek Trek is offline
 
Join Date: Sep 2003
Originally Posted by utahraves View Post
I'm an admin on my server and I set up the groups allowed and it told me I didn't have access to the content.php .... ?
There might be a bug in multiple usergroups. Do you have more than one listed in the settings?

Try just changing it to usergroup 6 (assuming you're in that group as normal). See if it works then.

If so, there's a problem with the multiple group checking and I'll look into it.
Reply With Quote
  #35  
Old 30 Dec 2009, 04:40
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Originally Posted by utahraves View Post
I'm an admin on my server and I set up the groups allowed and it told me I didn't have access to the content.php .... ?
I had the same problem until I logged out and back into my site.
__________________
Alibass
Reply With Quote
  #36  
Old 30 Dec 2009, 04:44
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Trek

Your mod seems to being working as you say, but I had one issue with it. When I turn it off and turn privileges on for all my groups, the Home button will not appear back on the navbar for the user groups who have been approved to view the CMS page.
__________________
Alibass
Reply With Quote
  #37  
Old 30 Dec 2009, 05:18
Trek Trek is offline
 
Join Date: Sep 2003
Originally Posted by Alibass View Post
Trek

Your mod seems to being working as you say, but I had one issue with it. When I turn it off and turn privileges on for all my groups, the Home button will not appear back on the navbar for the user groups who have been approved to view the CMS page.
Ok, I'll look into that, thanks!
Reply With Quote
  #38  
Old 03 Jan 2010, 08:42
linkasaur's Avatar
linkasaur linkasaur is offline
 
Join Date: Aug 2006
Thanks for this handy product! It works like a charm!
__________________
The Comics Corral
Reply With Quote
  #39  
Old 03 Jan 2010, 16:36
UpFriends UpFriends is offline
 
Join Date: Dec 2009
Real name: Friend with Benefits
Excellent mod! Just what I needed.
__________________
Check out the web's newest dating website to find your friend with benefits!

Limited time offer: FREE 4 LIFE membership!
Reply With Quote
  #40  
Old 04 Jan 2010, 03:16
Verionia Verionia is offline
 
Join Date: Jul 2009
Great, thanks soooo much!
Reply With Quote
  #41  
Old 14 Jan 2010, 06:00
Brother Malachi Brother Malachi is offline
 
Join Date: Jun 2008
Real name: Nick
Originally Posted by Axel Foley View Post
I don't need the CMS for my forum (not yet), so I simply did this:

1. Edited index.php in the forum root, commenting require('content.php'); and uncommenting require('forum.php');

2. Went to ACP->Plugins & Products->Manage Products and disabled the vBulletin CMS product.

Now the CMS disappeared, the button on the navbar too.

Hope it helps someone else with my same need. I'll tag this mod and see how it evolves.
Do you understand the PURPOSE of this mod?
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.
Reply With Quote
  #42  
Old 14 Jan 2010, 06:43
Brother Malachi Brother Malachi is offline
 
Join Date: Jun 2008
Real name: Nick
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:

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


Here's what I did to fix the issue. In the plugin titled "CMS - Redirector" add the following to the top:

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



then replace this line:

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

with this line:

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

Reply With Quote
  #43  
Old 14 Jan 2010, 06:57
Trek Trek is offline
 
Join Date: Sep 2003
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!
Reply With Quote
  #44  
Old 14 Jan 2010, 07:24
Brother Malachi Brother Malachi is offline
 
Join Date: Jun 2008
Real name: Nick
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.
Reply With Quote
  #45  
Old 14 Jan 2010, 07:34
Brother Malachi Brother Malachi is offline
 
Join Date: Jun 2008
Real name: Nick
Ok, to fix the template replace

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

with:

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

then add a new plugin.
Hook location: global_start
Code:

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

and that should take care of it
Reply With Quote
Reply


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

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


New To Site? Need Help?

All times are GMT. The time now is 04:43.

Layout Options | Width: Wide Color: