vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Making blogs visible to non members/not signed in (https://vborg.vbsupport.ru/showthread.php?t=243923)

sandy771 06-04-2010 07:12 AM

Making blogs visible to non members/not signed in
 
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

Quote:

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:

Code:

/* 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? )


All times are GMT. The time now is 11:16 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00988 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete