Search Results for 'wordpress'
-
AuthorSearch Results
-
April 5, 2018 at 1:09 pm #271821
In reply to: Send Message to Members with Clickable link
Venutius
ModeratorI’ve raised the links problem on BuddyPress Trac, I’ve been able to add rich text editing to the compose and reply boxes for messages, it’s quite involved doing it but if you’d like that feature I can help you implement it.
April 5, 2018 at 9:18 am #271805In reply to: Friends list as categories
Venutius
ModeratorI think you should add this as a new feature request into BuddyPress Trac, I think it should be a core feature since you will want to for example send a message to all friends in category X, or send an activity update to just those friends. I think that functionality would need to be enabled in core.
April 5, 2018 at 8:05 am #271801In reply to: Send Message to Members with Clickable link
Venutius
ModeratorIf you are going to implement the visual editor for messages, you will need to overload the members/single/messages/compose.php file. You might like to use BP Template Overloader to help you manage your overloads
April 5, 2018 at 6:49 am #271797In reply to: Add BuddyPress to Theme
Venutius
ModeratorMost themes support BuddyPress these days, thanks to template compatibility in that the BuddyPress pages are displayed and work. What most BuddyPress theme’s mean when they say they support BuddyPress is that they have modified the BP theme files and/or css in order to provide BP specific features.
There’s over 100 template files that can be overloaded, most BP specific themes do not touch the majority of these, they tend to concentrate on just the main pages such as the members and group list and profile pages to give them a theme specific feel. Much of this modification is simply to add their own specific css to allow better control of how a page looks.
To make overloading of the template files easier I created a plugin called BP Template Overloader. This displays all of the files available for overloading, allows overloads to be set up and allows you to compare your overloaded file with the BP master file.
April 4, 2018 at 9:28 pm #271789In reply to: Blocked Error Message – Mobile Only
Venutius
ModeratorThis kinda sounds more like an authentication problem that one with BP per se, but you say it only happens on the BuddyPress login, not the WordPress login? When you say “run it on a responsive sit” what do you mean?
April 4, 2018 at 9:00 am #271766Paul Wong-Gibbs
KeymasterBecause the object cache caches query results from the database and if you modify the database – either directly or using WP’s DB APIs – you to clear it. Otherwise you’ll end up with inconsistent results.
Using WP-CLI is probably easiest for this: https://developer.wordpress.org/cli/commands/cache/flush/
If you don’t know enough to write these PHP commands yourself, using some shell scripting and the BuddyPress WP-CLI commands will probably be easier: https://github.com/buddypress/wp-cli-buddypress/
April 4, 2018 at 8:41 am #271764Venutius
ModeratorOne issue that people see is Hotmail rejecting the default email address that WordPress uses, you can change this using CB Change Mail Sender, see if that fixes it.
April 3, 2018 at 7:07 pm #271746Paul Wong-Gibbs
KeymasterAlso clear WordPress object cache after manipulating the DB directly.
April 3, 2018 at 7:04 pm #271744Paul Wong-Gibbs
KeymasterPHP error log files are another source of information.
p.s. WordPress does not have a “birthday date” field by default. BuddyPress provides the “Extended Profile” screen. If some other plugin has added a field with that same name/heading, and BuddyPress causes it to disappear, then there’s probably some sort of code conflict you’d need to investigate.
As I said above, PHP error logs are a good place to start figuring this. And venutius’ suggestion to use Query Monitor to see if the cause is a slow DB query.
April 3, 2018 at 7:02 pm #271743In reply to: Adding a tab to the Users->Your Profile Section
Paul Wong-Gibbs
Keymaster@johnnymarin Searching the BuddyPress code base for “Extended Profile” would have shown you the relevant WordPress action hooks to use are
edit_user_profileandshow_user_profile.Have a look at
class BP_Members_Admin->profile_nav()for an implementation example. 🙂April 3, 2018 at 10:59 am #271713In reply to: “Take Photo” not working on Firefox
Paul Wong-Gibbs
KeymasterThis is broken in Firefox. We have a fix and targeting it for the 3.0 release: https://buddypress.trac.wordpress.org/ticket/7676
April 3, 2018 at 7:07 am #271709In reply to: “Take Photo” not working on Firefox
Venutius
ModeratorI’m getting the same as you, or at least on mine it works better on Chrome than it does on Firefox. I think you should raise a trac ticket for it.
April 3, 2018 at 4:11 am #271703In reply to: Customize member loop
Venutius
ModeratorI think you are really talking about new page, one that performs a search of the members profile fields and comes up with matches. If I were you, I’d look at using BP Match Me as a basis for this, or maybe BP Profile Search and then providing my own custom code to automate the search process.
April 2, 2018 at 6:03 pm #271696Venutius
ModeratorThe following change will remove the What’s New area from the Activity page, it will still be visible in Groups and on the users profile activity page.
You will need to set up a childtheme (there’s plenty of plugins that will do this for you).
<?php /** * BuddyPress - Activity Post Form * * @package BuddyPress * @subpackage bp-legacy */ ?> <form action="<?php bp_activity_post_form_action(); ?>" method="post" id="whats-new-form" name="whats-new-form"> <?php /** * Fires before the activity post form. * * @since 1.2.0 */ do_action( 'bp_before_activity_post_form' ); if ( bp_is_my_profile() || bp_is_group() ) : ?> <div id="whats-new-avatar"> <a href="<?php echo bp_loggedin_user_domain(); ?>"> <?php bp_loggedin_user_avatar( 'width=' . bp_core_avatar_thumb_width() . '&height=' . bp_core_avatar_thumb_height() ); ?> </a> </div> <p class="activity-greeting"><?php if ( bp_is_group() ) printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) ); else printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) ); ?></p> <div id="whats-new-content"> <div id="whats-new-textarea"> <label for="whats-new" class="bp-screen-reader-text"><?php /* translators: accessibility text */ _e( 'Post what\'s new', 'buddypress' ); ?></label> <textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10" <?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?> ><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea> </div> <div id="whats-new-options"> <div id="whats-new-submit"> <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php esc_attr_e( 'Post Update', 'buddypress' ); ?>" /> </div> <?php if ( bp_is_active( 'groups' ) && !bp_is_my_profile() && !bp_is_group() ) : ?> <div id="whats-new-post-in-box"> <?php _e( 'Post in', 'buddypress' ); ?>: <label for="whats-new-post-in" class="bp-screen-reader-text"><?php /* translators: accessibility text */ _e( 'Post in', 'buddypress' ); ?></label> <select id="whats-new-post-in" name="whats-new-post-in"> <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ); ?></option> <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0&update_meta_cache=0' ) ) : while ( bp_groups() ) : bp_the_group(); ?> <option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option> <?php endwhile; endif; ?> </select> </div> <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" /> <?php elseif ( bp_is_group_activity() ) : ?> <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" /> <input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id(); ?>" /> <?php endif; ?> <?php /** * Fires at the end of the activity post form markup. * * @since 1.2.0 */ do_action( 'bp_activity_post_form_options' ); ?> </div><!-- #whats-new-options --> </div><!-- #whats-new-content --> <?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?> <?php /** * Fires after the activity post form. * * @since 1.2.0 */ endif; do_action( 'bp_after_activity_post_form' ); ?> </form><!-- #whats-new-form -->Just place this file content in your themes/child-theme/buddypress/activity/post-form.php file. Activity, replacing everything that’s in the current file.
If you want an easier way to manage your template overloads you should look at BP Template Overloader, which will help you keep track. When you overload a theme page, you need to remember that you will have to take responsibility for keeping it up to date since any changes to the master file will no longer be loaded.
Scott Hartley
ParticipantTry this plugin.
March 31, 2018 at 10:51 am #271674In reply to: changing default avatar – codex info not working
March 30, 2018 at 11:36 pm #271663In reply to: Forgotten Password
Venutius
ModeratorHi there,
Regarding point 1) This could be to do with the source address that is being used for the emails WordPress is sending. it’s pretty old now but I use CB Change Mail Sender to set an appropriate mail sender address.
Regarding point 2) I suggest this must be down to a plugin conflict or some other problem, as I can’t replicate your issue. have you tried it with just BuddyPress running?
March 30, 2018 at 6:26 pm #271658In reply to: Shortcode question [bp_profile_url]
Venutius
ModeratorI’ve been looking at that, it seems it’s not possible to use that shortcode and create a link with it from a wordpress post, I tried several ways and none delivered the required result.
I’m trying to contact the plugin developer at the moment as I’ve written some extensions to this, I think creating a short code that returns a link to the user name would be quite simple, I could look at this later and let you know how I get on.
March 30, 2018 at 10:09 am #271648Venutius
ModeratorHave you looked at overloading your BuddyPress pages?
This is the process of getting BuddyPress to load your costomised pages instead of the default pages. For example, the page that loads the “What’s new” section and post form is located in
plugins/buddypress/bp-templates/bp-legacy/buddypress/activity.posts-form.phpIf you copy this file to
themes/your-child-theme/buddypress/activity/posts-loop.phpyou can edit this file and remove the “What’s new” section. You would need to know php to do this.More information on overloading bp templates is located here: https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
A plugin that tries to make the management of your overloads easier is https://wordpress.org/plugins/bp-template-overloader/
March 29, 2018 at 6:30 pm #271640In reply to: Enfold + BudyyPress= Responsive Issues
Venutius
ModeratorWhat I’m doing at the moment is running a mobile specific theme, my main wordpress theme just does not scale down right. By running a theme switcher I’m able to have a mobile specific setup that works a lot better overall.
Regarding mobile devices in particular the button styles used in the current BuddyPress template set is not ideal, I’m hoping this will improve with Nouveau. What I do on the mobile side is I tend to place all the main bp options in the main menu, which with my theme works pretty well.
I think you have to be very careful with what features you offer on mobile, the bbPress forums for example don’t work that well, you can get the basic members pages to work, have chat, basic groups with activity feeds but trying to do much else gets very difficult with mobile.
March 29, 2018 at 4:04 pm #271637In reply to: Using header cover
Venutius
ModeratorI think what you are looking for is the ability to place a shortcode on a page, that displays the members header on a page of your choice for any given member id.
There isn’t such a thing, however https://wordpress.org/plugins/buddypress-profile-shortcodes/ comes close in that it allows you to display most of the components of the members header on a page.
BuddyPress Profile shortcodes is a pretty simple plugin, I think it should be possible to combine VapVarun’s contributed code with BP Profile Shortcodes in order to create a shortcode that does something similar to what you are looking for.
March 29, 2018 at 3:31 pm #271636In reply to: Using header cover
Venutius
ModeratorIf you want to get to know the structure of the BP overload files, could I suggest you try installing https://wordpress.org/plugins/bp-template-overloader/ this maps out all of the overload files, it’s pretty daunting the sheer number of files you can modify, but if you look for that one file you can view it’s contents.
Also the link I mentioned but forgot to include about overloading BP is here. https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
March 29, 2018 at 11:15 am #271626In reply to: Change url links on members loops
Venutius
ModeratorOne possible way of achieving this could be to implement custom rewrite rules for the URL, I’ve not tried it but here’s a page that describes how it’s done:
March 29, 2018 at 6:55 am #271622In reply to: Adding a tab to the Users->Your Profile Section
Venutius
ModeratorThat’s a WordPress page so you might be wise to ask in the WordPress Forums as well. I don’t knw, hopefully someone will come along who knows?
March 28, 2018 at 9:43 pm #271616Venutius
ModeratorHave you enabled the wordpress debug and log file? I think that’s where I’d start looking, see if there are any errors shown. I’d also install Debug Bar and Query Monitor.
Query Monitor will allow you to see if the WP query is failing.
-
AuthorSearch Results