Search Results for 'buddypress'
-
AuthorSearch Results
-
September 30, 2015 at 10:49 am #244934
In reply to: Buddypress group member subscribe to group forum
danbp
ParticipantHi,
consider this plugin:
https://wordpress.org/plugins/buddypress-group-email-subscription/September 30, 2015 at 12:09 am #244930In reply to: Contact form on profile
Henry Wright
ModeratorYou could try the BuddyPress Ideas forum:
September 29, 2015 at 8:22 pm #244917In reply to: Exclude groups from get_total_group_count
pandreas
ParticipantThank you for your answers and recommendations!
The custom function that I have written before, I suppose it does what I want very well. Am I right?
Here it is again.
function filter_bp_get_total_group_count() { global $wpdb; $hidden_sql = "WHERE slug not in ('health', 'social', 'cultury')"; $bp = buddypress(); return $wpdb->get_var( "SELECT COUNT(id) FROM {$bp->groups->table_name} {$hidden_sql}" ); };September 29, 2015 at 5:23 pm #244914In reply to: Redirect users who aren’t logged in
@mcuk
ParticipantHi,
Maybe using this would help stop users who aren’t logged in seeing things you don’t want them to in the first place (and therefore they won’t be able to try and access it). Not really the redirect solution you are after but it may be of use. Works with BuddyPress (I don’t use bbPress).
//Prevents non logged in users seeing pages other than those permitted function bpcustom_restrict_bp_pages() { global $bp; //These pages are permitted to logged out users if( bp_is_blog_page() || bp_is_register_page() || bp_is_activation_page() ) { return; } if( !is_user_logged_in() ) { bp_core_redirect( $bp->root_domain ); } } add_action( 'get_header', 'bpcustom_restrict_bp_pages' );September 29, 2015 at 3:50 pm #244913In reply to: Profile Field Text Area Max Character or Word Length
@mcuk
ParticipantHi @danbp thanks for reply.
Tried the code you wrote in the link above and it works fine. But as with the one referenced in my first post it reduces the string length upon display rather than preventing the user typing in a large number of characters in the first place (and the data being stored in database).
So moved onto looking at the code snippet by @henrywright for the sign up page. Would be suitable if i could convert it to work with profile fields. Got to this stage with a few q’s:
function my_textarea_validation() { $custom_field_id = bp_get_member_profile_data( 'field=Mini Bio' ); //is the use of $_POST['field_' . $custom_field_id] correct to access desired profile field? if ( strlen( $_POST['field_' .$custom_field_id] ) > 5 ) { global $bp; //which $bp->... error message to use? $bp->signup->errors['field_'] = __( 'CUSTOM ERROR MESSAGE', 'buddypress' ); } } //which hook to use? (to affect the textarea on Profile > Edit navigation tab) add_action( '???', 'my_textarea_validation' );September 29, 2015 at 2:24 pm #244910In reply to: Pagination gives error on buddypress tab
ggsalas
ParticipantHi @danbp
I think I have done the same configuration as you, but don’t work for me. Could be possible thar your code not work with the new version of Buddypress?
This are my posts:

This is that I see with
'posts_per_page' => 2,:

Before, I have tested with Twenty Thirteen, Now I’m testing with Twenty Fifteen theme.
I have created a bp-custom.php file on plugins/ folder and deleted my previous plugin.
The only plugin I have active is Buddypress:

—
I would like to display only one tab with the posts of the displayed user, without subtabs. My goal is remove “My posts” and “My Comments”. I would like to display the posts inside the “Contributions” tabSeptember 29, 2015 at 2:17 pm #244909In reply to: Comments on photos by BP members’ account
caesarhills
ParticipantThanks for your reply, after reading it I’ve seen is the most adviced plugin for that aim.
Is there any live demo working or a live showcase of it?
I didn’t get if as the admin of the website I could create a page for mediapress grid album in which I’m the only one allowed to upload pics and letting all the registered members commenting on the pics, but at the same time as I said, not allowing anyone to upload their pics in that grid.
It should work like instagram but just with the buddypress accountsSeptember 29, 2015 at 11:45 am #244902In reply to: Pagination gives error on buddypress tab
ggsalas
ParticipantHi @danbp
I have added your code as plugin on my new test site. On this site have activated only 2 plugins: buddypress and your code.
This is what I see on the “My posts” tab (there is no navigation):

I would like to display only one tab with the posts of the displayed user, without subtabs.
September 29, 2015 at 2:40 am #244896In reply to: Slug Conflict (/search/) with Buddypress
nautinz
ParticipantSorry missed these
1. Which version of WordPress are you running?
4.3.12. Did you install WordPress as a directory or subdomain install?
root dir3. If a directory install, is it in root or in a subdirectory?
root4. Did you upgrade from a previous version of WordPress? If so, from which version?
no5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
Yes6. Which version of BP are you running?
2.3.37. Did you upgraded from a previous version of BP? If so, from which version?
no8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
Can I submit this to you privately?9. Are you using the standard WordPress theme or customized theme?
http://themeforest.net/item/porto-responsive-html5-template/410698710. Have you modified the core files in any way?
no11. Do you have any custom functions in bp-custom.php?
not yet12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
WP 4.3.113. Please provide a list of any errors in your server’s log files.
actually none!14. Which company provides your hosting?
digitalcoean/cloudflare15. Is your server running Windows, or if Linux; Apache, nginx or something else?
nginxSeptember 29, 2015 at 12:11 am #244894In reply to: Profile Field Text Area Max Character or Word Length
danbp
ParticipantHi,
read here, maybe it helps
https://buddypress.org/support/topic/how-to-check-if-the-length-of-field-is-too-long/or try:
https://wordpress.org/plugins/buddypress-xprofile-validate-with-regex/September 28, 2015 at 8:09 pm #244882jbakuk
ParticipantHi @modemlooper, thanks for getting in touch.
Yes I have site tracking active and I’m not using custom post types, thanks for the code though it will come in handy if and when I do.
There was no problems before moving url, I’ve double checked and there is no entries of the old url in the database.
Is there a buddypress php file that might not have updated the url? That’s all I can think of but I can’t find anything.
Right now it’s looking like I might just have to delete everything and start over 🙁
September 28, 2015 at 3:09 pm #244873modemlooper
Moderatordo you have site tracking option on in the BuddyPress settings? Also custom post types do not show by default and you have to add them.
add_post_type_support( 'custom-post-type-name', 'buddypress-activity' );September 28, 2015 at 3:07 pm #244872In reply to: Linking BuddyPress, WooCommerce and rating systems.
modemlooper
ModeratorDoubt there is a plugin this specific. I’m not sure the specifics but are you saying anyone can review a woo product if they are not logged in?
BuddyPress doesn’t have a specific method for logging in its the same login as WP.
You might try this http://stackoverflow.com/questions/24747095/woocommerce-require-registration-to-buy
September 28, 2015 at 2:56 pm #244871In reply to: Editing the Single Message Template
modemlooper
ModeratorRead this on overriding BP templates in your theme. https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
Basically you’d copy single.php to your theme/buddypress/members/single/messages/single.php keeping the same folder structure
September 28, 2015 at 2:49 pm #244870modemlooper
Moderatorhook into the filter bp_core_signup_send_activation_key and send a different email message linking them to the form you want them to fill out. On your form submission you can then do the activation link
/** * Filters if BuddyPress should send an activation key for a new signup. * * @since BuddyPress (1.2.3) * * @param bool $value Whether or not to send the activation key. * @param int $user_id User ID to send activation key to. * @param string $user_email User email to send activation key to. * @param string $activation_key Activation key to be sent. * @param array $usermeta Miscellaneous metadata about the user (blog-specific * signup data, xprofile data, etc). */ if ( apply_filters( 'bp_core_signup_send_activation_key', true, $user_id, $user_email, $activation_key, $usermeta ) ) { bp_core_signup_send_validation_email( $user_id, $user_email, $activation_key ); }September 28, 2015 at 6:25 am #244863In reply to: Code for adding new members to groups automatically?
danbp
ParticipantHi,
This question was asked many times in the past. Search the forum. Ie.
September 28, 2015 at 5:39 am #244861In reply to: Rename Home URL+Slug in BP Group
sharmavishal
Participant@danbp thanks for your reply. its highly appreciated. I understand its bit unnecessary.
Am using a custom home page via BuddyPress Groups Extras. So on my site the home page for groups is gpages which doesnt have a slug in the URL which is great.
now my second tab is “Home” which i renamed to “Activity”. This is also fine. But the slug of Activity page is “home”. so when i click on the activity tab the URL in the broswer shows group/name/home.
I believe the previous versions of BP the home page was actually named as Activity right?
the only way i can fix this is via hacking the core BP file bp-groups-loader.php
// Add the "Home" subnav item, as this will always be present $sub_nav[] = array( 'name' => _x( 'Activity', 'Group screen navigation title', 'buddypress' ), 'slug' => 'activity',Thanks once again
September 27, 2015 at 11:21 pm #244857In reply to: Notifications of my own forum topic replies-bug?
Henry Wright
ModeratorWhilst notifications is a BuddyPress component, it’s actually bbPress that handles this particular notification via their
bbp_buddypress_add_notification()function. If you pass the following link to the bbPress guys, they should be able to take it from here.Ref: https://github.com/ntwb/bbPress/blob/master/src/includes/extend/buddypress/notifications.php#L98
If you need anything else just shout.
September 27, 2015 at 11:06 pm #244855In reply to: Lost Password not working
Henry Wright
Moderator3 reports in 3 weeks sounds as though there could be an issue here. Can you open a ticket on Trac?
https://buddypress.trac.wordpress.org/
You can use the same username and password that you use here in the forum to log in. Please provide as much background info as you can regarding your setup.
September 27, 2015 at 10:43 pm #244852In reply to: Notifications of my own forum topic replies-bug?
VeeLow
ParticipantAccording to bbpress, this is a BuddyPress thing. They don’t think notifications hooks up with bbpress subscriptions.
In case it wasn’t clear, I’m talking about “Notifications,” the BuddyPress feature. The little pop-up number balloons. Not emails (to which one can subscribe). When I search support forums I see that people use these terms very loosely, but I was trying not to do that!
September 27, 2015 at 8:15 pm #244845In reply to: Add custom field to activity feed
deadbeat007
ParticipantB) new activity items going forward
The premise of my client’s site is basically Twitter, but for quotes. A user can enter a quote that their friend said, then tag their friend (assuming the friend has an account) and attribute the quote to them.
The quote will then appear in the activity stream, along with the tagged user’s avatar and username.
I figured BuddyPress would be my best bet for this, since it allows users to add friends and @mention other users, but now I’m a bit lost as to how to manage what my client it looking for.
September 27, 2015 at 10:46 am #244834In reply to: Best Theme for Busy Community?
Henry Wright
ModeratorThere’s currently also 29 themes in the WordPress Theme Dir tagged “BuddyPress”. See here. I’m not sure if any of these will be different to the themes you’ve seen already at BP Inspire, but it’s worth taking a look 🙂
September 27, 2015 at 10:16 am #244831In reply to: Best Theme for Busy Community?
Henry Wright
ModeratorHi @julia_b
http://www.bpinspire.com/ might be useful to you. It showcases lots of popular BuddyPress websites and themes.
September 26, 2015 at 4:52 pm #244824In reply to: Restricting Group Deletion to Super Admin
danbp
ParticipantCheck for group_creator.
September 26, 2015 at 3:57 pm #244823In reply to: Rename Home URL+Slug in BP Group
danbp
ParticipantIMO, you’re strugling with something unnecessary.
The group home tab shows the group activity by default and URL when on this page isdomain.com/groups/groupname/Your function is ok and it is not necessary to add /activity/ to the original slug. The action name for group activity page is
home. If you add it manually to ‘domain.com/groups/groupname/home’, home will be stripped by default. And if you change home to xyz, you’ll get a 404 error.Renaming the tab to a more accurate string is possible of course. Changing the group activity URL isn’t.
function my_bp_groups_default_tab() { global $bp; $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['name'] = 'Group Activity'; } add_action('bp_groups_setup_nav', 'my_bp_groups_default_tab'); -
AuthorSearch Results