By moramata on
I have blog module enabled and I find that for every authenticated user that sign up, a blog node type node is created for the user. I don't want all users to have a blog node. How do i prevent it? Thanks
I have blog module enabled and I find that for every authenticated user that sign up, a blog node type node is created for the user. I don't want all users to have a blog node. How do i prevent it? Thanks
Comments
Create a new role
First create a new role, then disable permission to create blog entries for authenticated users and enable for your new role. Now assign the new role only to people you want to have a blog.
nevets. Thanks. But I don't
nevets. Thanks. But I don't have option to disable blog create permission in user access control (Drupal 5.x.x) . However, I have this option
blog module
edit own blog
And it is not enabled for authenticated user. As soon as somebody sign up, the system creates a blog node for that user (I can see the blog path in the url alias listing)
That is the correct permission to enable/disable
For the other issue I am guessing you are using pathauto and it is creating an alias to a new users blog page (not creating a blog node). The alias is created even if they do not have permission to create blog entries.
Yes, that is correct. Path
Yes, that is correct. Path auto is creating an alias and when I go the url it says xxx's Blog and an empty page. But I think it is the system that creates a blog for every authenticated user because I can reach to the empty page by /blog/userid
Is there any way to stop this. I don't want thousands of useless url and their aliases. If there is no way to stop it using the core blog module, is there any other module I can use for blog that does not do this?
I don't know why it is has never been an issue for other bloggers. If I want to use Drupal for blogging and allow authenticated user for comments. It appears to me that thousands of useless url will be created. Is it the software architecture of any blogging software? Do they always create thousands of empty pages? If so, I have not used any other blogging software. This is just driving me crazy. Thanks
I can not speak for other blogging software
Technically Drupal does not create a blank page for each blog, the blog module simply understands the path blog/{uid} where {uid} is a valid user id. So every user will have a blank "page" simply because the module handles the path. Pathauto simply provides and alias so blog/{username} also works. Short of writung custom module I think any other solution is going to handle any path generically (i.e. part of the path will be uid). Using a custom type and the view module you could at least produce a message to the effect the user does not have a "blog". One could also write a custom module that only shows a "blog" page if the user can create blog entries but that raises the question of how you would handle uid's for users without permission to create "blog" entries.
=-=
the only time blog/uid is even seen as a blank page with username is as an admin. authenticated users cannot access that path, they get an access is denied page when permissions are set correctly.
there are not useless, paths being generated any where AFAICT, looking at the url alias table.
Hi: What I am finding is
Hi:
What I am finding is that even anon user is able to see the Blah Blah's Blog page (though a blank one).
Also, pathauto is creating all those useless url aliases. Is it possible in path auto to it turnoff. I think it is not possible. Is it possible to generate 404 (page not found) using mod_rewrite? If so, how do I write it thanks.
=-=
did you at some point run a bulk update using pathauto ?
what version of pathauto is in use ?
I would like to see if I can reproduce this behavior you speak of.
_____________________________________________________________________________________________
give a person a fish and you feed them for a day but ... teach a person to fish and you feed them for a lifetime