Forum Replies Created
-
In reply to: Paid Themes
You can ask questions here, but you may not get answers.
If you’re paying for a theme, then the theme sellers should offer support.Remember that almost any WP theme will work with BuddyPress 1.8 and up.
So if you’re going to spend $55, you have a lot of choices.
You don’t need a BP specific theme.In reply to: add to html markup in bp_activity_action()Look at that function in
buddypress\bp-activity\bp-activity-template.phpUse one of the two filters to make your changes, probably with some string operations.
How are members designated ?
Per BP Group ?
Per course ?So if a student is enrolled in Course A, they are automatically a member of Group A?
It’s not hard to only use a subset of all site members.
You just need to know the parameter that controls which group/course a logged-in member is part of. Then you can adapt this example:In reply to: Create html image link to logged in user's profile<a href="<?php echo bp_loggedin_user_domain; ?>profile/"> <img src="http://mydomain.com/images/myprofile.png> </a>>We have a search members plugin
Plugin name? Link?In reply to: How to stop spam registrations (HELP!!)First you said:
>I disabled registrations using “Registration is disabled” from the network admin settings/network settings and the spam registrations continue.Now you say:
>– disable registrations (network admin) and the automatic reg stopsNot sure why things have changed, but it’s a clue.
btw – did you change the salts in your wp-config ?
https://codex.wordpress.org/Editing_wp-config.php#Security_KeysIn reply to: Profile Link in PluginsAs the name suggests, bp_loggedin_user_domain() gets the profile url for a member who is logged in.
It won’t work until the person logs in.
We hope your next question is not:
How can I get the Profile link for a person who is not logged in?In reply to: How to stop spam registrations (HELP!!)>Forums are enabled (it’s a primary purpose for the site)
Understood, but try deactivating bbPress.
If the spam regs stop, you know it’s a bbPress issue and you can post a bug report on their site.If they don’t stop, at least you know it’s not bbPress.
In reply to: edit profile fields missing>Wow, so basically in order for members to have access to edit all of the fields that they entered while signing up, we have to pay for a custom plugin to get access to those fields?
Let me repeat:
They are accessed on the front-end on a member’s profile page.
your-site.com/members/peteratomic/profile/If it’s your profile or you are an admin, you will clearly see an ‘Edit’ button.
>Utterly mind-boggling why this functionality isn’t built in to BP.
It is built into BP.In reply to: edit profile fields missing> they’re totally inaccessible afterward
They are accessed on the front-end on a member’s profile page.
your-site.com/members/peteratomic/profile/>Clicking the “your profile” link in the backend brings up a page
In the Dashboard, that link takes you to the DashBoard > User > Edit screen which is a standard WordPress screen.
If you want to view and edit BuddyPress Extended Profile fields on that screen,
then you might be interested in this premium plugin:
http://www.philopress.com/products/bp-dashboard-user-profile-edit/In reply to: Linking Front End Fields to Back End Fields>Will this plugin show every single back end field and allow it to be modified etc?
Yes.
>do you have a free/cut down/trial version of the plugin
No.
If you have more questions, please contact us directly at PhiloPress.
In reply to: Linking Front End Fields to Back End FieldsWe have a premium plugin that shows xprofile fields on the User > Edit screen in the Dashboard:
http://www.philopress.com/products/bp-dashboard-user-profile-edit/
In reply to: Themeing best practice now?It’s the BP-Default theme that won’t exist.
re over-riding templates in your theme:
https://buddypress.org/support/topic/child-theme-structure-for-editing-plugin-files/In your child theme, create a folder called ‘buddypress’.
In that folder, use the same dir structure as bp-legacy and put only the files you want to over-ride the files in bp-legacy.In your case, the structure would be:
your-theme/buddypress/members/single/profile/edit.php
your-theme/buddypress/members/single/profile/profile-loop.phpIn reply to: Hide 'view all matched members' message>I’m familiar with this text but where does the following text originate from?
Look in members-loop.php for class=”pagination”
Remove it in template over-ride.
In reply to: Guys….. What is the point of including filters if…The OP is mixing 2 ideas.
1. He complains that filters on saving data aren’t retro-active.
2. He wants the activity strings to be built dynamically instead of hardcoded into the database.Re 1 – I don’t know of any filter on save that will handle prior existing data. The very idea is unworkable. Instead use a filter on the display. That is inefficient but will handle prior data.
Re 2 – That would require a major re-write of the activities code. Building dynamic strings would have some advantages – but speed is not one of them.
In reply to: Sorting by xprofile fieldTry using ‘alphabetical’ in the basic members loop.
iow. without 2 while ( bp_members() ) : bp_the_member() loops and all the xprofile calls.That will determine if the problem is in BP or your code.
In reply to: Sorting by xprofile field>I have tried adding the “type=”alphabetical”
It should be
if ( bp_has_members( 'type=alphabetical' ) )When doing that, you should enable BuddyPress to WordPress profile syncing
via Dashboard > Settings > BuddyPress > SettingsIn reply to: Getting an array errorIt’s not an error.
There is some debug info being called, probably near the top of members-loop.php.
Look for a var_dump and/or echo statement.A developer put it there. Ask everyone who worked on your install about it.
In reply to: Editing Buddypress Activation EmailWrite a filter.
buddypress\bp-members\bp-members-functions.php Line 1396
$message = apply_filters( ‘bp_core_signup_send_validation_email_message’, $message, $user_id, $activate_url );
In reply to: Member Profile Meta Key ValueNot sure what you mean by meta key, but…
Use something like phpmyadmin to look at the database tables.
There are 4 tables, for example wp_bp_xprofile_fields
The info you need is in one or more of those tables.It’s not a filter, it’s an argument.
Look at
function bp_has_members in
bp-members/bp-members-template.phpYou will see this argument
'include' => false, // Pass a user_id or a list (comma-separated or array) of user_ids to only show these usersSo write some sql, something like :
global $wpdb; $group_ids = $wpdb->get_col("SELECT user_id FROM $wpdb->bp_groups_members WHERE group_id = 9"); $group_ids = implode(',', $group_ids); if ( bp_has_members( 'include=' . $group_ids ) )In reply to: Sitewide Chat for BuddypressArrowchat is the usual solution.
In reply to: Remove User ActivationsYou can avoid the need for activation email by using this code in bp-custom.php
function bp_disable_validation( $user_id ) { global $wpdb; $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_status = 0 WHERE ID = %d", $user_id ) ); } add_action( 'bp_core_signup_user', 'disable_validation' ); add_filter( 'bp_registration_needs_activation', '__return_false', 100 );But the next screen will still inject this $title:
“Check Your Email To Activate Your Account!”Even with a template over-ride!
I think it’s reasonable that if this filter is applied:
add_filter( ‘bp_registration_needs_activation’, ‘__return_false’ );That you shouldn’t need a database operation.
And the $title should not be injected.Currently, the only way I see to change that $title is to hack a core file.
Hacking core files is NOT recommended.
That said, see:
plugins\buddypress\bp-members\bp-members-screens.php and find Line 515.[ I’d love to be wrong about all this and hope somebody has an easier approach. ]
If you’d like to help BP and anyone else trying to solve this problem,
please submit an enhancement ticket at https://buddypress.trac.wordpress.org/
Use the same user / pw you use here.Now… a question for you… On your site http://causeanddesign.com you have a very nice help tour using overlay boxes. The first box says: “Welcome. Every nonprofit deserves good design and good technology.”
Did you write a custom script / plugin for this?
Or find an existing plugin?>- The ideal, which I’ve not entertained (as it does not seem possible at present) is that the activity stream is retained but correctly hidden from users who are not members of the group.
Easy to do. Take a look at:
buddypress\bp-templates\bp-legacy\buddypress\groups\single\home.php>1. I don’t like customisations, the more we make the more we need to maintain and the more likely it is that an update will mess with one or more of them.
Do a template over-ride of home.php and you’ll have no problem with updates.