cpert
Forum Replies Created
-
Forum: Plugins
In reply to: [Frontend Publishing] Custom success/failure and redirect optionsOops.. you’re right of course. Pressing the Continue Editing button opens up the front end posting form. Thanks.
Forum: Plugins
In reply to: [Frontend Publishing] Custom posts with custom fieldsWould it be possible to add other fields too, such as Published On Date?
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] How to set default activity privacyHi Meg.
Is there a way we can re-open this question? I made the changes you suggested and wasn’t able to get it working. (see last reply).
Should I send a copy of the entire functions.php file for you to look at?
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] How to set default activity privacyI haven’t been able to get the code change to take affect.
Should I send a copy of the entire functions.php file?Thanks.
CalvinForum: Plugins
In reply to: [BuddyPress Activity Privacy] How to set default activity privacyThanks.
Sorry. I add the new code, it still doesn’t seem to have the desired effect. I’m hoping the default (My Friends) would be selected in the list.
An other alternative is to set it so only My Friends, My Friends in Group, and Group Members show in the list.
The site I’m working on is called MyDoops.com.Here is the bottom of the Functions.php file in the bp-default theme directory.
… code above
function bp_dtheme_remove_nojs_body_class() { ?><script type="text/javascript">//<![CDATA[ (function(){var c=document.body.className;c=c.replace(/no-js/,'js');document.body.className=c;})(); //]]></script> <?php } add_action( 'bp_before_header', 'bp_dtheme_remove_nojs_body_class' ); ?> add_filter('bp_profile_activity_visibility_levels_filter', 'bp_make_friends_as_default_privacy_level', 10, 1); add_filter('bp_groups_activity_visibility_levels', 'bp_make_friends_as_default_privacy_level', 10, 1); function bp_make_friends_as_default_privacy_level( $visibility_levels ) { $visibility_levels['public']['default'] = false; $visibility_levels['friends']['default'] = true; return $visibility_levels; }
..end of file
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] How to set default activity privacyHi.
I paste the code at the very bottom of the functions.php file in the bp-default directory and save it. When I test it, I see messages flash briefly at the top of the screen echoing something about the ‘add_filter’ lines. But, the drop down behavior isn’t changing.
(should I send you the entire file?)
Thanks so much for your help.
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] How to set default activity privacyThanks for the prompt response.. I’ll try it and let you know how it works.
Cheers!