Changing defaults on blog posts

I have a site I am setting up but I don't like the defaults on the "add blog post".   At the bottom of the new blog form are these three fields

Allow Viewing To: (public)

Allow Rating To: (public)

Allow Posting Comments to: (public)

I have three privacy groups: public, members and associates (friends).   I would like to keep the viewing default to public as is, but I would like to delete "rating" entirely, and I would like "allow posting comments to default to  "members" only.   Could someone advise me as to how to make these changes?

Thank you

Rob

 

 

 

Quote · 12 Sep 2012

you will have to edit /modules/boonex/blogs/BxBlogsModule.php

the code that generates the form starts around line 1642. Generate Form for NewPost/EditPost

i guess you could comment out :

$aAllowRate = $this->oPrivacy->getGroupChooser($this->_iVisitorID,

'bx_blogs', 'rate', array(), _t('_bx_blog_privacy_rate'));

to hide the rate question... 

To change the default on comments you are going to have to do some database digging here to change the default on that one....

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 12 Sep 2012

Take a look at the attached modules/boonex/blogs/classes/BxBlogsModule.php file

it removes the rating form field from the new/edit blog post form.  You'll still have to remove the rate block in page builder.  If you search the attached file for //REMOVE  ... you'll see the lines that were commented out.

Not sure about the comments thing, but non-members can't post comments anywhere by default... unless you changed it.  Public comments aren't allowed on any of my sites, so I'm not really sure why that option is still on the list in the first place. 

BxBlogsModule.php · 100.8K · 158 downloads
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 12 Sep 2012

opps HL has the right path on that file...  sorry about that.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 12 Sep 2012

Thanks Jay, that seemed to have worked to get rid of the rating, though I haven't tested yet. 

I did poke around in the database and found the table "bx_blogs_posts" where there is a field called "allowComment".  The "default" field, however, in this is blank.  Should I just type in the word "members" there - or is this passed from the program in some way?

Quote · 12 Sep 2012

i think it goes by numbers...  1, 2, 3,  .... its been a while i would have to look.   if you add members there just for the hell of it  clear the cache after the db change and see if it sets it to members.

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 12 Sep 2012

Thanks Jay, and HL - for some reason I didn't even think of the fact that non-members can't add comments anyway. 

Quote · 12 Sep 2012
 
 
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.