The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Disable CMS, but only for users, not admins
What I want to do is get the forums working first, then enable the CMS later. But I don't want to enable the CMS and have to skin it while it's live. I want to be able to skin it and whatnot, then enable it when it's completed so the end user experience isn't total crap. =)
Anyone know if this is possible? Someone suggested removing perms to the CMS from people, but then everyone will get a "You do not have permssion" message when accessing the main page of the site. Not what I would consider an acceptable solution for it as this would still show the unskinned site somewhat too. Anyone have any other ideas? |
#2
|
||||
|
||||
I'd first turn off the tab in the navbar or put a condition around it to only show to the admins. Then I'd create a plugin that checks what page and the usergroup and if it isn't an admin on THIS_SCRIPT == vbcms, then give them no permission. Something like that should work although I've never tried it.
|
#3
|
|||
|
|||
Hmm, that might work. I gotta figure out HOW to do it, but.... sounds like it would work. Instead of no permissions, I guess I could just forward them to the forums somehow? (I don't want them to see a no permissions anything)
|
#4
|
||||
|
||||
If they have no link to the page (since the tab is gone), then you shouldn't have to forward them because they really should never end up there in the first place.
Anyway, I plan on doing this on my site - having the CMS there only for the mods and admins so I can set it up after we go live with the upgrade - and that is how I plan on going about it. |
#5
|
|||
|
|||
Ok, I have the tab removed unless you're an admin now.
Quote:
By default when you goto the website the CMS page is loaded, right now the tab isn't there when I'm logged out, but I'm still on the main CMS "The Front Page". If I don't forward someone to the forums page, what would I do? Sorry, I just don't get how the logic works. =) How do I deny them permission? Maybe that's the part I'm missing? What I'd really like to do is just get them to the forums seamlessly. I created a plugin as so: Code:
if (THIS_SCRIPT == 'vbcms') { if (is_member_of($user,6) == true) { echo("<!-- Is admin! -- >"); } else { echo("<!-- Is NOT admin! -- >"); } } |
#6
|
|||
|
|||
why not redirect to forum.php Trek ??
|
#7
|
||||
|
||||
Open your index.php page and change the lines to this:
PHP Code:
|
#8
|
|||
|
|||
Wasn't sure how.
Quote:
|
#9
|
|||
|
|||
I was going to ask this question myself... thanks guys!
|
#10
|
|||
|
|||
Lynne,
can you spell out for me how I should go about disabling the HOME button from the Nav Tab bar? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|