PDA

View Full Version : Making blogs visible to non members/not signed in


sandy771
06-04-2010, 07:12 AM
I want to allow people to view the blogs on my CMS system (vBulletin 4) who are either not registered or are not logged in.

Is there a way of doing this?

sandy771
06-09-2010, 07:22 PM
Bump

There must be someone out there clever enough to point me in the right direction...

Videx
06-10-2010, 01:15 AM
I think by default the blogs are already viewable by Guests. If not, have you looked in the usual place - Usergroups>Usergroup Manager>Pick a group>Edit?

sandy771
06-10-2010, 06:48 AM
Its not a control panel issue I am afraid.

I received this from someone at vB

It is hard-coded into the blog.php page to not allow unregistered users to see the blog page (see around line 328

The code the seem to be referring to is:

/* Check they can view a blog, any blog */
if (!($vbulletin->userinfo['permissions']['vbblog_general_permissions'] & $vbulletin->bf_ugp_vbblog_general_permissions['blog_canviewothers']))
{
if (!$vbulletin->userinfo['userid'] OR !($vbulletin->userinfo['permissions']['vbblog_general_permissions'] & $vbulletin->bf_ugp_vbblog_general_permissions['blog_canviewown']))
{
print_no_permission();
}
}


I tried commenting it out but it made no difference, I could not log out and then go direct to the blog, nor could I hit the blog button on the front page - in both cases I was presented with a login page.

So I assume that there is something else. I am not very familair with php and not at all familair with vBulletin hacking so some pointers would be useful.

Videx
06-10-2010, 01:15 PM
Huh? I checked before I answered and guests can see all my blogs. Do you have a link?

sandy771
06-10-2010, 01:26 PM
That is interesting

The text of the message (email) was

It is hard-coded into the blog.php page to not allow unregistered users to see the blog page (see around line 328).+ If you want to change this, this would require modifying the code (i.e., 'hacks', plugins, or template modifications).+ We can't offer official support for code modifications or for forums running modified code

This is quite important to me as although I want the forums to be closed and for my customers only I do want to be able to blog and not have to use third party blogging software - which is why I went for vbulletin to start with.

I'll have another look and see if I can work out what is going on. I wonder whether it is because the forum is locked down that the blogs are also. If you find an answer I would of course be interested :)

Videx
06-10-2010, 03:38 PM
I think they misunderstood the question. Or I am. Like I said, it's easy to make the blogs public. I'm not sure what you mean by "locked down", but yes, I could imagine that preventing the blogs from being seen.

janaf
06-10-2010, 08:31 PM
It is set in ACP - Usergroups - Usergroup Manager - Not Logged In Group- Can View Other's Blog => YES/NO

This should enable unlogged in users to see blog entries.

(But what is ACP - Blog - Blog Category Permissions for? )