Search Results for 'wordpress'
-
AuthorSearch Results
-
November 21, 2014 at 12:49 pm #229283
Niels Pilon
ParticipantNope, it returns an error that there are no members to display. I guess that I could replace ‘Robin van Persie’ with something blank like this
substr( strstr( ' ', ' ' ), 1 )Just to clarify, this is the full code in my functions.php to sort the members:
function alphabetize_by_last_name( $bp_user_query ) { if ( 'alphabetical' == $bp_user_query->query_vars['type'] ) $bp_user_query->uid_clauses['orderby'] = "ORDER BY substring_index(u.display_name, ' ', -1)"; } add_action ( 'bp_pre_user_query', 'alphabetize_by_last_name' ); // To reflect the alphabetical sorting of the member directory, you // could also format the names to show the last name first. Here is // a helper function to format names as follows: Last, First Middle // Etc. // // To use this function every time a user's name is shown or queried, // simply add it as a filter: // // <code>add_filter ('bp_get_member_name', 'format_last_name_first' );</code> // // To only reformat the name in the member directory, change your // members/members-loop.php file in your (child)theme. Look for // <code>bp_member_name()</code> // and replace it with // <code>echo format_last_name_first ( bp_get_member_name() );</code> /** * Helper function for formatting a name: Last, First Middle Etc. * * @param string $name * @return string Formatted name **/ function format_last_name_first( $name ) { if ( $first_space = strrpos( $name, " ") ) $name = substr( $name, $first_space + 1 ) . ", " . substr( $name, 0, $first_space ); return $name; } // BONUS: To make alphabetical sorting the default sorting, use the // function below. // // In order for this to work properly, <code><option value="alphabetical"></code> // must be the first option for the members-order-select in // members/index.php. function sort_members_alphabetically( $qs = '', $object = false ) { if( $object != 'members' ) //for members only return $qs; if ( empty( $qs ) || ! strpos( $qs, "type=" ) ) { $args = wp_parse_args($qs); $args['type'] = 'alphabetical'; $args['action'] = 'alphabetical'; $qs = build_query( $args ); } return $qs; } add_action( 'bp_ajax_querystring', 'sort_members_alphabetically', 11, 2 );I guess that members are sorted by the default WordPress first and last name fields right? Just because we’ve added some custom fields to the member profile pages to split their names in first name, ‘surname prefix (it’s for words like ‘van’ ‘de’) and last name. Not all members have a surname prefix though.
November 21, 2014 at 8:06 am #229279In reply to: Registration via BuddyPress won't work
MaWe4585
Participanti think i found my problem.
in bp-core-functions.php there is this part:
// Nonce check failed
if ( empty( $result ) || empty( $action ) || ( strpos( $matched_url, $home_url ) !== 0 ) ) {
$result = false;
}i wrote $matched_url and $home_url to the log-file and TADAA
$matched_url = http://localhost:40080:40080/wordpress
$home_url = http://localhost:40080/wordpressYes, twice the port in matched_url.
This seems odd to me, can anyone say if it is correct this way, or if it is a bug?November 20, 2014 at 3:32 pm #229237In reply to: How to list extended profile fields
shanebp
ModeratorThis will require good coding skills. You may need to hire a developer. Or maybe somebody will be willing to create the code for you.
To any devs: BP 2.2 will include ‘BP_XProfile_Query‘ to make these kinds of tasks much easier !!!
November 20, 2014 at 7:51 am #229223In reply to: Buddypress plugin causing problem with other plugin
Hugo Ashmore
ParticipantAt this stage we can’t help as you provide no idea of what sort of issue you are having; this plugin author you contacted replied to you thusly You might want to contact one of the developers of the plugin that is causing the problem and send them the information in your console no information though!
Not sure why you have arrived at the conclusion BuddyPress is the issue here though, BP is coded very tightly to WP standards and is less a plugin and more an extension of WP functionality.
You actually list a number of fairly complex plugins that you consider cause the issue and seem to have posted this question on bbPress forum their response is going to be the same as ours at this stage without much more information, but frankly if one states a number of plugins appear to cause an issue on an individual basis then the one common denominator would likely be the problem and in this case that’s the bol.com plugin, but that’s not pointing the finger so to speak at bol but the resolution will lie with bol rather than bbPress or BuddyPress.
https://wordpress.org/support/topic/produktlink-doesnt-workNovember 19, 2014 at 6:58 pm #229209In reply to: [Resolved] Notification – what's wrong here?
Security
ParticipantHi i think i know whats happening here i was working on status theme to make it work with the latest versions of both buddypress and wordpress and i faced the similar issue so this is what i did to resolve it goto wp-content>>themes>>yourthemename>>members folder>>single>>home.php and add these lines of code there
elseif ( bp_is_user_notifications() ) : locate_template( array( 'members/single/notifications.php' ), true );just before this kinda statement // If nothing sticks, load a generic template
next create a file named notifications.php in wp-content>>themes>>yourthemename>>members folder>>single folder and add these lines to it<?php /** * BuddyPress - Users Notifications * * @package BuddyPress * @subpackage bp-legacy */ ?> <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> <ul> <?php bp_get_options_nav(); ?> <li id="forums-order-select" class="last filter"> <?php bp_notifications_sort_order_form(); ?> </li> </ul> </div> <?php switch ( bp_current_action() ) : // Unread case 'unread' : bp_get_template_part( 'members/single/notifications/unread' ); break; // Read case 'read' : bp_get_template_part( 'members/single/notifications/read' ); break; // Any other default : bp_get_template_part( 'members/single/plugins' ); break; endswitch;and try to reload your site now your problem should be solved.
Note: only create notifications.php if its not already there and please backup your site before making these changesNovember 19, 2014 at 6:49 pm #229207In reply to: [INFO] Useful s2member/buddypress knowledge
shanebp
ModeratorRe: 2. Importing s2member custom fields to buddypress fields
Instead of, for now, editing the codex page, please note the args parameter for add_action.So the ‘2’ here is the arguments parameter.
add_action('wp_login','s2_profile_field_update',10,2);
So the hook provides 2 arguments – very handy & useful.
But your example doesn’t use them in the function s2_profile_field_update.
You can use the $user arg instead of$current_userand thereby get rid of that global.
Use this to see the data in $user:function hook_arg_display( $user_login, $user ) { var_dump( $user ); } add_action('wp_login','hook_arg_display',10,2);imo: There is no Option 1.
November 19, 2014 at 5:04 pm #229196In reply to: Top bar – Help me please
Security
ParticipantHi @icaroferreira try theme my login plugin to bring the login process to front end then use custom admin bar plugin to remoove or add links on your admin bar https://wordpress.org/plugins/custom-admin-bar/screenshots/
November 18, 2014 at 1:01 pm #229156In reply to: [INFO] Useful s2member/buddypress knowledge
shanebp
ModeratorI wrote a function that would check a users information when they login.
Your function runs on every page load.
You could use this hook instead to run only on login. Note that the hook provides all the WP_User info that you need in the $user parameter.For the user_id gathering, bp_parse_args is the way to go.
An s2member codex page would be very useful. It will be editable.
November 18, 2014 at 12:45 pm #229153In reply to: Invalid activation key
telatabi
ParticipantI found a temporary solution for this problem.
https://wordpress.org/plugins/bp-disable-activation-reloaded/This plugin provides “disable activation e-mail”. User registers the form and directly go to main page. Activation code is not necessary.
But I hope, someone find real solution. I looked all forum the same problems, but there isn’t any solve.
November 18, 2014 at 8:50 am #229144In reply to: [INFO] Useful s2member/buddypress knowledge
Hugo Ashmore
Participant@myg0t Thanks for sharing that with the community, S2 Member has wide use so this ought to be useful to people.
One point though it’s best not to advise that people edit a core file /buddypress/bp-templates/bp-legacy/..etc BP has a fairly well defined template hierarchy overload allowing files to be copied to the theme or child theme, those are the copies one should edit.
Another minor point rather than have to edit & pass the arguments in the template could bp_parse_args() perhaps work for this?
Using bp_parse_args() to filter BuddyPress template loopsIn respect of the profile data would not setting the user visibility options on the profile field/s in the backend not work to provide the privacy for address fields, just a thought but I may have missed the point of this aspect.
Lastly this could make a nice user example guide for the BP codex if you’d care to post it there and we’ll slot it under a section appropriate.
November 17, 2014 at 7:44 pm #229134In reply to: buddypress rtl
Henry Wright
ModeratorHi @zemenik
Have you tried searching the WordPress Themes Directory? Perhaps search for something like “rtl language support” or just “rtl” and look through the results retuned for themes that are compatible with BuddyPress.
November 17, 2014 at 2:21 pm #229124In reply to: groups added to phpbb?
shanebp
ModeratorIntegrating phpbb with BuddyPress would be a lot of work and would require a good developer with strong knowledge of both BP and phpbb.
I’m not aware of any plugin that bridges phpBB with WP and BuddyPress.
November 17, 2014 at 8:27 am #229118In reply to: members list shows when not logged in..
gyfi
ParticipantThis one solved my problem:
https://wordpress.org/plugins/buddypress-members-only/November 16, 2014 at 10:19 pm #229107In reply to: move Bp scripts (js) to footer
JibsouX
Participantokey thanks in fact i will use the wonderfull plugin : BWP Minify 😉
November 16, 2014 at 3:33 am #229095In reply to: move Bp scripts (js) to footer
Henry Wright
ModeratorYou’ll have to deregister them and then re-register them ensuring the fifth param of wp_register_script() is set to true
https://codex.wordpress.org/Function_Reference/wp_register_script
Note: Careful things don’t break as a result of moving scripts to the footer.
November 15, 2014 at 8:23 pm #229090shanebp
ModeratorThere are several plugins for that.
Do a search for front end post.November 15, 2014 at 3:05 pm #229078In reply to: Unban from Group?
Skyrie
Participant@hnla I agree, especially since a lot of BuddyPress sites (including my own) prohibit a user from seeing the backend at all. We need an option in the actual frontend for the admin of a group to be able to unban, perhaps with a list of banned members. Right now my users have to contact a member of our staff to get someone unbanned from their group, which they shouldn’t have to do.
I’ve raised a ticket for this issue:
https://buddypress.trac.wordpress.org/ticket/6013November 14, 2014 at 11:27 am #229063In reply to: changing multisite to single WP site using BP
Paul Wong-Gibbs
KeymasterSwitching from multisite to normal flavour WordPress looks kind of complicated. I came across http://wpebooks.com/2010/09/how-to-enable-multisite-in-wordpress/ from a good source (see page 24 of the PDF).
Make backups of everything first. 🙂
November 14, 2014 at 12:56 am #229053In reply to: Rename "Add Friends" and "Cancel Friendship Request"
modemlooper
ModeratorYou edit this text via a language file.
or wordpress.org/plugins/quick-localization/
November 13, 2014 at 7:43 pm #229044In reply to: How to list extended profile fields
wrify
ParticipantThank you for your reply. Maybe I didn’t explain myself well or maybe I am using the wrong approach.
What happens is as follows:
I have a set of categories listed on a page. These categories are for content purposes. Click on a category and get the list of post under that category. Just a regular WordPress thing.
However, I need to do the same thing for type of users.
For example:
Under arts, I list categories as Arts, Photography, News etc. (These are for content)
But the I need to list Artists, Photographers, Galleries (These are for users)
Thanks,
JoeNovember 13, 2014 at 2:12 pm #229026Hugo Ashmore
ParticipantCool thanks:
https://buddypress.trac.wordpress.org/ticket/6007Closing thread.
November 12, 2014 at 11:20 pm #229014In reply to: Comments not showing up in activity stream
ronia
ParticipantNovember 12, 2014 at 9:42 pm #229010In reply to: I can't upload a profile photo
marcmiquel
ParticipantI did! With no success…He doesn’t reply. I know that it must work with this combination of plugin + theme + wordpress because I tried it in an empty one. But I just cannot lose all the work done in this website.
Do you know of any ‘cleaner’ or restore to defaults for certain things? Thanks!Marc
November 12, 2014 at 5:09 pm #228997In reply to: I can't upload a profile photo
marcmiquel
Participant“Buddypress Upload Avatar Ajax” upload the pics in a folder during the registration as I checked right now. But then they don’t appear in the profile. Plus, the tab associated to user profile area “change…” does not appear. What could it be? I tried with a new wordpress and theme and it works, so it must something related to my specific combination. I deactivated all the plugins besides buddypress and this one, but still, it does not work. I am afraid using super caché before or any security plugin broke my wordpress…Any idea?
November 12, 2014 at 1:04 pm #228987In reply to: Comments not showing up in activity stream
jbird
ParticipantJust a little more info…
I’ve tried this with all plugins deactivated except buddypress and akismet, and also with the twenty thirteen theme. Still no blog comments are showing up in the Activity Stream at all in either scenario. I would think that should eliminate plugin or custom theme conflicts as issues.
I have WordPress multisite installed elsewhere on my domain, but this is installed in a fresh, single WordPress installation (4.0) in a different directory.
I’ve seen a bunch of old threads in this forum that talk about search engine blocking being a factor, but I’m not sure which settings are relevant to that in the recent version of WP.
I am desperate for some insight!
Cheers,
Jason -
AuthorSearch Results