blogs visible to public

Hi,

I'm trying to find where I can control how to make a blog block visible to non-members on my Homepage.  The Guest and Member boxes are both ticked on the page access control for the block but the block is still invisible when a user is logged out.  I think this problem probably relates to my BxBlogsModule.php file which I have adapted in order to hide the options to control who can view/rate/comment on a blog.

All I have done is commented out all references to 'allowView', 'allowRate' and 'allowComment', which neatly removed the drop down menu from the blog creation page but *may* have left me with this current problem.  Is there any way I can set the default to "public" for viewing blogs, while removing the user-control on who can view etc., so that new blogs appear on the home page as per the blog block on the Homepage?

Hope this makes sense, my brain hurts!

Thanks,

Tom.

Quote · 19 Mar 2014

You could set default values for those in the database or instead of removing the items from the form, leave them in place; they should default to public, and hide them from the form instead with type hidden.  When the form is submitted, the values will be added to the database table for the blog post privacy levels.

Geeks, making the world a better place
Quote · 20 Mar 2014

When you commented out the privacy items; then the privacy levels are not set in the database.  Go back and uncomment out the items.  Then change the type for the items to hidden.  That will hide them on the form so that users can not change them but still allow the form to set the privacy level in the database.

Geeks, making the world a better place
Quote · 20 Mar 2014

Hi geek_girl,

Perfect!  I uncommented my BxBlogsModule.php comments (it was worth a try!), added array('type' => 'hidden'), to $aAllowView, $aAllowRate and $aAllowComment, and then amended the default setting in the bx_blogs_posts database to "3" for allowview, allowrate and allowcomment.

Works like a charm.

Many thanks,

Tom.

Quote · 20 Mar 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.