authenticated user can post an article that an anonymous user can see?
Thanks.

Comments

yesman123’s picture

i want to create a view where only an authenticated user can post. i can do that, but the problem is that an anonymous user can not see the articles posted.

yesman123’s picture

i want an authenticated user to post articles that everyone can see, how to do it?

yesman123’s picture

i dont want blogs, i want to create another content type to do it. how to do it?

JohnForsythe’s picture

Take a look at CCK.

--
John Forsythe
Blamcast - Custom theme design and more...

yesman123’s picture

thanks, i will.

yesman123’s picture

i used views module. but it did not give 'public' option as in admin when an authenticated user was posting.

.carey’s picture

Go to Administer > Access Control and make sure permissions for the 'node module' is granted for anonymous users to 'access content'.

[Edit: I may have misunderstood what you are wanting, please clarify if you still don't have the answer you seek.]

yesman123’s picture

i want authenticated users (not anonymous users) to be able to post articles (say, job posts, but not in blogs) for everyone to see.

nickmaynard’s picture

drupal 5 lets you make new content types. make one for whatever it is that you want. then go in access controls and give permission to authenticated users to make that type, and then make sure anonymous users have permission to access content. the end.

johnnoc’s picture

:-) i just can't leave this thread alone...it's just plain amusing :-))

great advice nickmaynard! the best!!!!

John
---------------------------------
http://www.drupalnorge.no
hvor oversettere, utviklere, leverandører, og brukere av Drupal i Norge samles.

yesman123’s picture

i tried it, but anonymous users were not able to see any post written by authenticated users.

johnnoc’s picture

Probably you are doing something wrong, because this is one of the most basic methods.

Well... what content type are you trying to show to anonymous users? is this a custom type? i can probably give you step by step instructions if you explain further what you really want to achieve.

John
---------------------------------
http://www.drupalnorge.no
hvor oversettere, utviklere, leverandører, og brukere av Drupal i Norge samles.

.carey’s picture

I was assuming the first part and so only stated the second part.

That's exactly how I did it for my site - although I'm using 4.7 (for now) and created content types by copying page and story modules as needed.

yesman123’s picture

Here is the problem: if an authenticated user is a member of a group, then his posts will not be seen (unless you are a member of the group). If the user does not belong to any group, then everyone can see his posts. If you are an admin, you have a option of choosing 'public' when you post. But for a regular user, there is no such an option.
I was wondering what is going on. Could it be some group configuration issues?

.carey’s picture

Are you using some type of 'groups' module?

johnnoc’s picture

You have the og module installed then.

Go to Administer › Organic groups › Organic groups configuration

Configure "Node authoring form".

I reckon, basing from your post and comments here, your config will possibly be:

  1. Enable "Audience checkboxes"
  2. Under "Visibility of posts", tick on "Visibility chosen by author/editor using a checkbox on the posting form. Checkbox defaults to Public."
  3. For "Audience required:", tick on "optional"

 

John
---------------------------------
http://www.drupalnorge.no ›› hvor oversettere, utviklere, leverandører, og brukere av Drupal i Norge samles.

yesman123’s picture

hey, this was exactly what it was, thanks a lot! the site now works the way it has never worked before.

somebodysysop’s picture

I just did exactly what you describe to enable "Audience checkboxes". However, when I click on create -> node (page in t his case), the Audience box lists only the OG Groups. There is no checkbox for Public/Private or anything, and posts are viewable to all. What do I need to do?

johnnoc’s picture

Did you do all the 3 steps stated above?

I haven't really experimented with the OG module, so I cannot give a 100% answer. I just quickly installed the module on my sandbox site just to check about your initial question.

Anyway, the second instruction above says tick on "Visibility chosen by author/editor using a checkbox on the posting form. Checkbox defaults to Public." So basing from that, all nodes are public as default UNLESS the user creating/editing a node ticks one of the listed groups. So, I assume that if the user chooses a group as an audience then it will only be visible to that group. If there's no choice then the node is public.

I suggest you try creating a node then tick on a group... check if it is still visible to all or only to that group.
I suggest you try creating a node then DONT tick on any group, check if it is visible to all.
...Just for you to compare the behaviour of actions taken.

John
---------------------------------
http://www.drupalnorge.no/support
din side hos Drupal Norge med hjelp og støtte til Drupal, på norsk.