Make content visible only to author in Drupal - drupal

I want to allow members of a Drupal website to upload their own content to the site (something like a blog post or questionnaire), but have it visible only to themselves (hidden from other members with the same role). The idea is to have them store some personal content that other members don't need to see, but that only the author member would need to see (or have access to) when using the site.
What modules would I need to use? Or how could I go about setting that up?

You can do this easily with http://drupal.org/project/content_access

I don't know if you've already solved this problem, but I recently did something similar with a shared blog in Drupal 7. I wanted users to have both private and public blog posts. I used the Save Draft module (http://drupal.org/project/save_draft) to add an extra button to the content editing screen, which I called Save (Unpublished) rather than "Save Draft" -- I used the String Overrides module to make that happen (http://drupal.org/project/stringoverrides). In the admin panel for permissions, Authenticated users were granted to right to view and edit their own unpublished items. Users could thus save their blog posts in a way that others could not see them. Then I used Views (http://drupal.org/project/views) to create a list view that used the criteria content type = blog, state = unpublished, and content author = current user. This gives users a list of their unpublished blog posts.

The https://drupal.org/project/view_own module handles this exactly the way you are looking for.

Related

let wordpress create new page with users content

I am wondering what would be the best way to let wordpress create idivual pages :
the project is as followed :
User makes account
Wordpress creates account and an account page, this page however is completely different from the wordpress theme. (easy i know, You could compare it with a profile page for the user but with much more content to fill in)
after user has filled in additional content wordpress should create the new page with the specific page design. Users should be able to edit content afterwards. Paying users should be able to export the generated page. Pages should be visible for public and be like domain.com/user
I am not sure how the best approach would be for this project as i am not that familiar with wordpress. My first thought is trough a childtheme, but im not sure if this would work.
Any advice?
Kind Regards
Try BuddyPress, this is exactly what it is designed for.

alter content administration page (admin/content)

I'm working on some drupal installation and googled the whole day, but I can't figure out an answer to the following question:
How is it possible to alter the admin/content page in a way that specific roles are only able to see or filter out limited content types?
Please notice that I don't want to restrict node access in general, I just want to make this page less confusing for editors with different roles and tasks.
I know there is the administration views module and there I can set filter fields in the way I want. The problem with this is that I'm not able to enter the views access restrictions and so all I can do is limit the view's content types for all roles.
Can somebody give me a hint how to solve this?
Thank you very much and sorry for bad english.
One way would be to make a custom module.
In this module you would create a page with hook_menu().
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu/7
Then in the page callback function that you create you load global $user and switch between the $user->roles, out putting different HTML lists of links depending on their role. If you want something a little more dynamic you can always load the various content types with node_type_get_types().
Then go into structure -> menus -> navigation and disable the default link, replacing it with the new page you created.
If you aren't 100% clear on how to do a couple of these things comment here and I will update my answer.

private wordpress post

Is it possible to create a category/post that will not show in the post listing but the post will be available via direct link.
Basically, I want the post/page/category to be viewable only by those I sent the link. I don't want to make it available in the post listing. I don't want it password protected also.
If possible that that the specific post is not visible to search engine, that's much preferable.
Thanks
Yes there is. You could always:
1) Register a Custom Post Type. In this example, we would name it something like "Private".
2) Set up your archive template (archive-private.php) to either redirect to a different page (maybe homepage, or 404), or style it in some way to look like a different page (maybe homepage, or 404) so the posts can't be listed
3) Set up your single post template (single-private.php) to format and display your private post however you like.
You wouldn't have to worry about your existing queries targeting any private posts, no passwords would be required, and the single-posts will be viewable and the archive not viewable. The nice thing too is that if you set 'public' to false in your arguments, the posts won't show up in any searches within the site.
As far as hiding it from search engines themselves, you need to set that within your Robots.txt File.
Bear in mind, this won't PREVENT Search Engines from displaying what's in your Disallow list. It is up to the Search Engine itself as to whether or not it will honor your disallow list.
No, there is not. If there is a way, you'd have to extensively modify your theme's PHP settings.

Wordpress or Drupal: Plugin for sub threads

I'm looking for a wordpress OR drupal plugin with which the users of my site can create a sub discussion to an article by themselves and invite other users to join. This subdiscussion should be invisible to not invited Users. Is there anything similar? Or could I do this some other way?
I didn't decide for wordpress or drupal by now, so which ever cms can do this will be it.
Thanks for your answers!
I don't know of such a module for Drupal but if you'll go for the custom module route here's some pointers to how it could be implemented:
Create a content type called Subarticle, enable comments and add a Node reference field to it. Allow your users to create nodes of that type.
For the widget of the node reference, use the Node Reference URL Widget module which will create a link on each Article, something like Create a Subarticle, automatically making the new subarticle point to the article.
For display, views could be used with a node argument on the node reference field.
For invites and visibility, check out Organic Groups. When a new subarticle is saved you'll have to programmatically create a new organic group, make the current user the owner and add the subarticle to that group. With an organic group he can then invite users.
You could use Vanilla, that can be easily integrated wtih Drupal or Wordpress (or anything). Check out this podcast to see how easy it is to plug into WP. There are plugins for Vanilla that provide the private thread functionality you are looking for.

Members only based plugin for Wordpress

Can anyone recommend me a good members-only plugin? I want to hide pages (and their tabs) if users aren't signed in.
So far I have found:
'Member Access' which doesn't hide the tabs
'wp-members' which wouldn't work with 2.8.4
'user access manager' which was too complex clunky to be useful.
There should be something basic out there for what I need, but no luck so far.
Justin Tadlock is a WordPress heavy (wrote the popular Hybrid theme framework), recently released a comprehensive user management plugin called Members, which among other things can turn your blog into a login-only venue:
Private Blog: Allows you to create a
private blog that can only be accessed
by users that are logged in (redirects
them to the login page).
But I get the impression that you're looking to keep some part available to the public users and other parts only for registered users.
You can also use this plugin to restrict certain areas of your blog, screenshot example here: based on role
Hiding the tabs from the public user is the challenging part. Themes typically aren't designed with private portions in mind; you'd have to hack it yourself or get someone to do it for you.
If are familiar with php and WP structure, you can add a few lines of code to a few template files to redirect users to login page if they are not signed-in. Let me know if you want to go that way. I can try to provide sample code. Are you using one of the basic themes?
I have a plugin called "LJ Custom Menu Links" that can do what you are asking. However as the name suggests they are custom links, so you would have to hand add the pages you want. But it does/and can only show a link when a user is logged on if that is what you want. Combined with "pagemash" plugin which will hide pages from the menu generated by WP itself leaving only the pages linked to by the LJ Custom Menu Links plugin.
However I was under the impression if you made a Page private then it wouldn't show up unless someone was logged in, or am I wrong on that one?
A good option is to use three difference plugins:
Member Access
Register Plus
AJAX Login Widget++
You can find my post on all these here:
http://sbhosting.com/wordpress-member-area/
Try CMS Members
I know it hide some pages for non-members.
A paid option is this. It's VERY good. I use it on several websites. Called Wishlist Memeber
For me s2member does the job. You don't have to use the paypal option, you can stick with free membership.

Resources