How do I give certain users access to specific Wordpress pages? - php

I've been searching for a good answer to this question for years and I wanted to ask it here. I've even raised the question on Wordpress forums to no avail.
Is there a way to give certain users access to specific pages on Wordpress? For example, I may want a school teacher to edit only their personal page and the classroom's pages, but let the principal edit anything.
I've searched for a plugin which can get close, but the only ones I found are terrible. They're complicated, unreliable, aren't secure (according to WordPress), and cause other problems on the site.
Most CMS programs come with a feature to limit (or grant) access to certain pages or groups of pages based on the user. Can Wordpress do this?
Thanks!
Brendan

Related

WordPress Multisite Geolocation Subdomain

There are other questions on this, but none seem to fit my user case.
I have two instances of a website, both are in English but using WordPress Multisite there is European version and an American version of the site.
This was set up by a predecessor, but I am trying to find an alternative to WordPress Multisite because most of the posts (~75%) belong on both Europe and America versions, and I don't want the content creators to have to worry about logging in to two dashboards and posting the same post twice.
This really doesn't have to be a WordPress specific question, I am just wondering how typical networking is done for a job like this where:
1). Theme is to remain the same
2). Posts are mostly the same and it would be nice if there was just one dashboard and plugin/function on a post to say publish for Europe, America, or both.
3). Users would have to opt-in to join the Europe site if they were already on the America site, but they wouldn't have to re-register, kind of like how users can join across the StackOverflow network.
I think I know how to do this if I were to write my own little CMS using another PHP or Node framework, it would just be a property of the various posts as to what geo they were published for and similarly each user would say what geo they were registered for, and then when querying the database from a given subdomain I would query for posts by the geo attached to that subdomain, as a kind of constant in the query.
Given I have WordPress install, what is the easiest way to accomplish such goals in WordPress or do I need my own solution? Also how do sites like StackOverflow manage users across various networks?
Furthermore if I wanted to accomplish this in a more do-it-yourself framework like Laravel, what are some of the general principles in order to accomplish this and not manage two sites but leverage something like Cloudlfare to point to subdomains based on gelocation and serve the same site but with different database queries?
I don't even understand why you would need a multisite setup for this. All you are trying to do is organise content, and within Wordpress you do that with taxonomies.
You can use the built in ones like categories or tags or you can create your own. Customise default settings based on geo ip information, or a user setting, or just lets users pick or whatever you want.
You can set it up so users to have to opt in to read posts tagged from across the pond, or just set their default to show local posts but give them a link to view all, or again just put a setting in their admin section.
Build your own CMS if you want, but seems like a real waste of time when this is pretty much exactly what Wordpress was designed for and they probably have 50,000+ developer hours headstart on you.

Allow users to edit a Single page on Wordpress

i manage my company website which runs WordPress. There are several chapters across the USA. I have pages setup for them so that people can view our chapters content. I was wondering, instead of them emailing me the changes they want. Is there a way where i can allow the users to only be able to edit a single page, without giving them access to the entire WordPress admin page/ website.
I would be willing to pay for a commercial plug if this option exists. Thanks for reading this.
There are Various Free / Paid Solution will be available for this based on your Model You can Choose any one of the following or there could be many other ways to get this done these are some of the way
You Can make them Editor and The Owner of the Chapter which they blong so in this way they will not have any rights to Edit other Chapters they will be only able to edit the Chapters which they own.To restrict other access in this case you can use plugin like User Role Editor and many other available at Wordpress repo.
You can also customize plugin like WP User Frontend to achieve the front end edit possible.
A Complete Custom Solution where use need not to login they simply submit the Changes which will be logged as article draft and you can later review and approve.
i think there will be much more way but it will be completely based on your applications nature so hope this helps to you.

Allow authors to only post on admin-approved pages?

Apologies in advance if this is a silly question but I've been thrust into running full stack (website as well as iOS and Android apps) for a company after they previously contracted work to some sloppy programmers. Documentation is sparse and the code base is a mess.
They're running the site off of WordPress. A feature of the site/apps is to allow certain users (the authors) to post updates.
Each author has a page of their own. When a post goes up, it goes live on the aggregated feed as well as their own unique author page.
Currently authors can post, however the issue is that they can post to any page. Whats worse is they have access to other features of the site (such as creating new pages, etc.)
How can I properly police these author permissions? Is there a different type of user group more suitable to what I am trying to accomplish?
Thanks!

edit magento navigation without coding

I just recently started working with a Magento site, and so far I'm really not liking it. I need to remove a couple links from the main navigation, but I can't seem to find the option for it. I've googled it numerous times, and all I see are examples for coding the navigation. My question is, can you edit the site navigation like you can with say wordpress? Seeing how it's a cms I'd imagine the user should be able to make changes to the navigation using some type of interface, and without having to pull the files from the server and edit them.
Also just out of curiosity, for anyone experienced with Magento would you say it's a good choice for a cms? I've heard of it before, but haven't seen many sites that use it.
No!, so you have three options here.
Learn how to extend the navigation with the 100's of tutorials out there, it is really not that hard, assuming you have a theme you just have to edit app/design/frontend/[theme]/default/template/page/html/topmenu.phtml
Get an extension to do it for you.
Hire a developer to do it for you, we create a static block with installer for the html which make it slightly more user friendly to update in the future.
Stackoverflow is a bad place to ask questions like this, it is aimed at programmers and doing such a procedure is rudimentary stuff, I really hope you are a client trying to be cheap rather than someone who claims they can run this site.
Edit: The cms features are ok but you need to be able to code to set them all up so the end user can make the changes with WYSIWYG.
If you don't want to code for navigation then you can do below things
1) Create category and then Display Settings=>Display Mode=>static block only and Display Settings=>CMS Block=>static block name. In static block u can include in page url or custom page
2)You need to hire developer
If you're using Magento and have an integrated WordPress blog, it's possible to design a completely custom menu in the WordPress Admin using the menu builder. You have complete control over what menu items you want and the hierarchy of each item.
To get this to work, you need to integrate your WordPress blog using WordPress Integration in full integration mode. Your Magento template also has to be using the default Topmenu block.

Need to build a news article based site - any open source solution I can tweak? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have a freelance project where I have to build a news articles based website. Let me go over it a bit. The site is such that you have a super admin and you have writers - writers join the website by sending in an application along with a sample of their writing skills - if approved the admin approves them and an account is created for the writer. Aside form writers anyone can join the website - upon joining members get a free blog and can post comments on articles and other users blogs.
The writers as stated earlier can post actual articles which are categorised. The categories however are quite.. well.. deep ended you have Main sections - then you have categories within the main section - then you have sub categories and then.. further sub categories...and then articles. Don't ask me why because well thats the clients requirement and he won't budge from it.
Aside that the website would have a page where you see all blog posts by all users. All users would have a profile page. Also down the line the client would like to add in a forums section where all members can host discussions. He would also like to add in an online store where he could sell certain articles via paypal or so..
I can build this thing myself from scracth using Php mysql and a bunch of classes I've developed over time but I'm interested in looking to use a third party open source option for this which pretty much handles all the work. Keeping all the requirements stated in mind - what could be used to build something of this nature. I've seen the following news websites: www.gulfnews.com and www.thenational.ae - I assume they're both built on some similar open source platform...
What would be a good extensible CMS or open source package that could meet all the requirements stated above...wordpress, drupal? I'm open to suggestions - it has to be Php MySQL based as thats my tool of choice..
EDIT============
Basically I have no experience with Drupal at all so I'm completely new to using it. Would the end result be an independant website or would it be intertwined with drupal such that I'd have to have drupal set up on the clients end for it to be able to work? Sorry if my question sounds lame :(
I'd recommend drupal: http://drupal.org/
You can create a writer role for your writers. The taxonomy module will take care of your categorization needs. The blog module will provide individual blogs for all or selected users and provide a page to display all blog entries, as well as pages that only display specific blogs. You can use CCK if you need more to your articles than is provided by the built-in page or story content types, and views if you need to tweak the output. All users have a profile by default, and you can easily add to it with the profile module.
You can do all of this without any coding whatsoever.
Later on, you can easily add a forum, paypal integration, almost ANYTHING ELSE using only contributed modules.
Checkout http://www.drupalsites.net/ to see lots of sites built with drupal.
Drupal should fit your needs nearly out of the box.
You can argue Wordpress is not a CMS, but Wordpress MU offers everything you need, except the forum and store, but there are good plugins for that.
Wordpress MU has extensive support for user roles and nested categories.
Th MU part means that you can have one install for multiple blogs, and a central part.
http://Wordpress.com is ran using Wordpress MU.

Categories