Search Results for 'wordpress'
-
AuthorSearch Results
-
September 29, 2016 at 5:21 pm #259239
In reply to: [Resolved] Account Details Profile Details Merging
Henry Wright
ModeratorYou should be able to log in to the WordPress admin area > Users > Profile Fields and then drag the Account Profile fields to the Account Details group.
September 29, 2016 at 7:49 am #259213In reply to: Dedicated pages for groups, is possible?
danbp
Participantthe first solution would be to use a group blog, but it may be a heavy project. So, IMHO, best way would be to create a plugin and using Group Extension API.
You can also check for an eventual existing plugin who fit to or narrow your goal and customize it.
September 29, 2016 at 7:42 am #259212In reply to: BuddyPress pages style issues
danbp
ParticipantHi,
color scheme’s are usually defined by the theme. Positioning elements needs some ID’s or class correctly defined and a medium knowledge for HTML & CSS handling.
if you create a child theme, you can change a lot of things related to BuddyPress, including CSS.
Read through the theme guidelines on BP Codex to get a general overview and check also the documentation of your theme.
Unfortunately, you use a premium theme and, as we have no access to his code, we can’t assist you more for it. Any questions related to it should be asked on your theme support.
But don’t hesitate to search the BuddyPress forum using keywords like css, template and so on…
September 28, 2016 at 2:30 pm #259195In reply to: bp-template-notice failure
melodies
ParticipantI upgraded from BuddyPress 2.6.1.1 and WordPress 4.5.3.
September 28, 2016 at 8:54 am #259190In reply to: [Resolved] Can I enable profile views?
danbp
ParticipantHi @donsauce,
there is no such setting in BuddyPress, but it exist a plugin !
See:
https://wordpress.org/plugins/buddypress-profile-views/September 27, 2016 at 8:30 pm #259182In reply to: BuddyPress Favorites in
danbp
ParticipantHummm, now it’s me who doesn’t understand !
You asked first
is there any way we can add the existing buddypress favorites to the blog postsand now you say
I wish to have it in blogs – so […] I can press FavoriteSorry if i misunderstand your request, english is not my mother language… Do you want to add a [favorite] button to each blog post ? Or do you want to remove some filters from activity favorites ?
September 27, 2016 at 6:02 pm #259174In reply to: Changing visibility in Activity page
danbp
ParticipantPlease note that you don’t need to add your site url in each of your topic. It’s useless and considered as a bad practice when nobody asked specifically for it.
About privacy, read here
September 27, 2016 at 1:19 pm #259155danbp
ParticipantHi,
no need to triple post. One topic is enought. (i deleted the 2 others).
You have trouble with a plugin, and this plugin has is own support. You have to ask there and give more details about your install (WP/BP version, used theme name, plugin list).
September 26, 2016 at 1:00 pm #259117simon1970
ParticipantHi,
For some reason all the above methods don’t work for me. I even tried uninstalling and re-installing PoEdit but no joy. Below is the .mo file that was automatically created using the above method. Note the translations are there but it all looks a bit messed up with nonsense at the start. Is this what an .mo file should look like?
Þ• L|¨x©’”qµŒ’h´Ÿw½þ5þ4‚3‚¶Registering for this site is easy. Just fill in the fields below, and we’ll get a new account set up for you in no time.Thanks for registering!
To complete the activation of your account, go to the following link: {{{activate.url}}}Thanks for registering!
To complete the activation of your account, go to the following link: {{{activate.url}}}Your account was activated successfully! You can now log in with the username and password you provided when you signed up.Your account was activated successfully! Your account details have been sent to you in a separate email.Project-Id-Version: BuddyPress 2.6.2
Report-Msgid-Bugs-To: https://buddypress.trac.wordpress.org
POT-Creation-Date: 2016-09-26 13:45-0700
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
PO-Revision-Date: 2016-09-26 13:49-0700
Language-Team: ENGLISH <jjj@buddypress.org>
X-Generator: Poedit 1.8.9
Last-Translator:
Plural-Forms: nplurals=2; plural=(n != 1);
Language: en_GB
Registering for this site is easy! Just fill in the fields below and we’ll get a new account set up for you in no time!Thank you for registering with Skewen Angling Club!To continue, please verify your email address via the email we have just ”
“sent to you.</br></br></br></br></br></br></br></br></br></br></br></br></”
“br></br></br></br></br></br></br></br></br></br>Thank you for registering with Skewen Angling Club!To continue, please verify your email address via the email we have just ”
“sent to you.</br></br></br></br></br></br></br></br></br></br></br></br></”
“br></br></br></br></br></br></br></br></br></br>Thanks for verifying your email address! Once your account has been approved we will notify you via email with your login details.Thanks for verifying your email address! Once your account has been approved we will notify you via email with your login details.Thanks,
Simon
September 25, 2016 at 10:09 pm #259111danbp
Participanthi Henry @henrywright,
wp-content/languages/plugins/buddypress-en_GB.mothis path is the one used by GlotPress’s official automated translation updates for BP (and any other plugin translation if it exist). Same behave for the languages/themes/ directory.
If you add a customized po/mo there, it will be overwritten at next update !
Since i18n new improvements in WP 4.6, the only way to keep the integrity of a custom translation actually, so far i know, is to use this plugin: wpt-custom-mo-file, who allows you to override and use your own translation files for any WordPress themes or plugins.
Just to let you know. 🙂
September 25, 2016 at 4:16 pm #259106simon1970
ParticipantHi,
Thanks for this info. I’m not sure what I am doing wrong but when I follow the instructions step-by-step in the article, nothing changes. The default “You have successfully created your account!” message appears after registration. I edited the .po file in DreamWeaver then (I believe) I created a .mo file using PoEdit and uploaded the two files to wp-content/languages/plugins but nothing changes. I say “I believe” because this is the only part I’m not 100% on. All I did was open the .po file in PoEdit and save it again. When I checked the folder there was a .mo file present, so I assumed it had worked, but perhaps it had not worked? I opened the .mo file in DreamWeaver and checked its contents. Here are the contents:
Þ• $,8É9Project-Id-Version: BuddyPress 2.6.2
Report-Msgid-Bugs-To: https://buddypress.trac.wordpress.org
POT-Creation-Date: 2016-08-04 22:00:54+00:00
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
PO-Revision-Date: 2016-09-25 16:51-0700
Last-Translator: JOHN JAMES JACOBY <jjj@buddypress.org>
Language-Team: ENGLISH <jjj@buddypress.org>
X-Generator: Poedit 1.8.8
Plural-Forms: nplurals=2; plural=(n != 1);
Language: en_USIs this correct or have I done something wrong?
Thanks,
Simon
September 24, 2016 at 4:25 pm #259085In reply to: PLEASE HELP: No confirmation emails
phound1
ParticipantThank you both for your response. I actually am getting with a local wordpress specialist and we are trying to work at the issue. I will absolutely try testing comment moderation notification email as you suggested. Thank you both for your time and I will report back to you both soon!
September 23, 2016 at 5:04 pm #259070danbp
ParticipantHi,
perhaps try this
https://wordpress.org/support/topic/set-default-subscription-status/September 23, 2016 at 7:56 am #259059danbp
ParticipantHi,
user metas are part of wordpress and stored in wp_usermeta table
xprofile datas are part of BuddyPress and stored in 4 different tables wp_bp_xprofile_ > data, meta, fields, groupsSeptember 23, 2016 at 5:47 am #259053bikerwp000
Participant<?php /** * Plugin Name: BP Loop Filters * Plugin URI: https://codex.buddypress.org/add-custom-filters-to-loops-and-enjoy-them-within-your-plugin * Description: Plugin example to illustrate loop filters * Version: 1.0 * Author: imath * Author URI: http://imathi.eu * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt */ // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; class BP_Loop_Filters { /** * Constructor */ public function __construct() { $this->setup_actions(); $this->setup_filters(); } /** * Actions * * @uses bp_is_active() * @uses is_multisite() */ private function setup_actions() { /** * Adds the random order to the select boxes of the Members, Groups and Blogs directory pages */ // Members component is core, so it will be available add_action( 'bp_members_directory_order_options', array( $this, 'random_order' ) ); // You need to check Groups component is available if ( bp_is_active( 'groups' ) ) { add_action( 'bp_groups_directory_order_options', array( $this, 'random_order' ) ); } // You need to check WordPress config and that Blogs Component is available if ( is_multisite() && bp_is_active( 'blogs' ) ) { add_action( 'bp_blogs_directory_order_options', array( $this, 'random_order' ) ); } /** * Registers the Activity actions so that they are available in the Activity Administration Screen */ // You need to check Activity component is available if ( bp_is_active( 'activity' ) ) { add_action( 'bp_register_activity_actions', array( $this, 'register_activity_actions' ) ); // Adds a new filter into the select boxes of the Activity directory page, // of group and member single items activity screens add_action( 'bp_activity_filter_options', array( $this, 'display_activity_actions' ) ); add_action( 'bp_member_activity_filter_options', array( $this, 'display_activity_actions' ) ); // You need to check Groups component is available if ( bp_is_active( 'groups' ) ) { add_action( 'bp_group_activity_filter_options', array( $this, 'display_activity_actions' ) ); } // You're going to output the favorite count after action buttons add_action( 'bp_activity_entry_meta', array( $this, 'display_favorite_count' ) ); } } /** * Displays a new option in the Members/Groups & Blogs directories * * @return string html output */ public function random_order() { ?> <option value="random"><?php _e( 'Random', 'buddypress' ); ?></option> <?php } /** * Registering the Activity actions for your component * * The registered actions will also be available in Administration * screens * * @uses bp_activity_set_action() * @uses is_admin() */ public function register_activity_actions() { /* arguments are : - 'component_id', 'component_action_type' to use in {$wpdb->prefix}bp_activity database - and 'caption' to display in the select boxes */ bp_activity_set_action( 'bp_plugin', 'bpplugin_action', __( 'BP Plugin Action' ) ); /* Activity Administration screen does not use bp_ajax_querystring Moreover This action type is reordering instead of filtering so you will only use it on front end */ if ( ! is_admin() ) { bp_activity_set_action( 'bp_plugin', 'activity_mostfavs', __( 'Most Favorited' ) ); } } /** * Building an array to loop in from our display function * * Using bp_activity_get_types() will list all registered activity actions * but you need to get the ones for your plugin, and this particular function * directly returns an array of key => value. As you need to filter activity * with your component id, the global buddypress()->activity->actions will be * more helpful. * * @uses buddypress() * @return array the list of your plugin actions. */ private function list_actions() { $bp_activity_actions = buddypress()->activity->actions; $bp_plugin_actions = array(); if ( !empty( $bp_activity_actions->bp_plugin ) ) { $bp_plugin_actions = array_values( (array) $bp_activity_actions->bp_plugin ); } return $bp_plugin_actions; } /** * Displays new actions into the Activity select boxes * to filter activities * - Activity Directory * - Single Group and Member activity screens * * @return string html output */ public function display_activity_actions() { $bp_plugin_actions = $this->list_actions(); if ( empty( $bp_plugin_actions ) ) { return; } foreach ( $bp_plugin_actions as $type ):?> <option value="<?php echo esc_attr( $type['key'] );?>"><?php echo esc_attr( $type['value'] ); ?></option> <?php endforeach; } /** * Displays a mention to inform about the number of time the activity * was favorited. * * @global BP_Activity_Template $activities_template * @return string html output */ public function display_favorite_count() { global $activities_template; // BuddyPress < 2.0 or filtering bp_use_legacy_activity_query if ( ! empty( $activities_template->activity->favorite_count ) ) { $fav_count = $activities_template->activity->favorite_count; } else { // This meta should already have been cached by BuddyPress :) $fav_count = (int) bp_activity_get_meta( bp_get_activity_id(), 'favorite_count' ); } if ( ! empty( $fav_count ) ): ?> <a name="favorite-<?php bp_activity_id();?>" class="button bp-primary-action">Favorited <span><?php printf( _n( 'once', '%s times', $fav_count ), $fav_count );?></span></a> <?php endif; } /** * Filters */ private function setup_filters() { add_filter( 'bp_ajax_querystring', array( $this, 'activity_querystring_filter' ), 12, 2 ); add_filter( 'bp_activity_get_user_join_filter', array( $this, 'order_by_most_favorited' ), 10, 6 ); add_filter( 'bp_activity_paged_activities_sql', array( $this, 'order_by_most_favorited'), 10, 2 ); // Maybe Fool Heartbeat Activities! add_filter( 'bp_before_activity_latest_args_parse_args', array( $this, 'maybe_fool_heartbeat' ), 10, 1 ); } /** * Builds an Activity Meta Query to retrieve the favorited activities * * @param string $query_string the front end arguments for the Activity loop * @param string $object the Component object * @uses wp_parse_args() * @uses bp_displayed_user_id() * @return array()|string $query_string new arguments or same if not needed */ public function activity_querystring_filter( $query_string = '', $object = '' ) { if ( $object != 'activity' ) { return $query_string; } // You can easily manipulate the query string // by transforming it into an array and merging // arguments with these default ones $args = wp_parse_args( $query_string, array( 'action' => false, 'type' => false, 'user_id' => false, 'page' => 1 ) ); /* most favorited */ if ( $args['action'] == 'activity_mostfavs' ) { unset( $args['action'], $args['type'] ); // on user's profile, shows the most favorited activities for displayed user if( bp_is_user() ) { $args['user_id'] = bp_displayed_user_id(); } // An activity meta query :) $args['meta_query'] = array( array( /* this is the meta_key you want to filter on */ 'key' => 'favorite_count', /* You need to get all values that are >= to 1 */ 'value' => 1, 'type' => 'numeric', 'compare' => '>=' ), ); $query_string = empty( $args ) ? $query_string : $args; } return apply_filters( 'bp_plugin_activity_querystring_filter', $query_string, $object ); } /** * Ninja Warrior trick to reorder the Activity Loop * regarding the activities favorite count * * @param string $sql the sql query that will be run * @param string $select_sql the select part of the query * @param string $from_sql the from part of the query * @param string $where_sql the where part of the query * @param string $sort the sort order (leaving it to DESC will be helpful!) * @param string $pag_sql the offset part of the query * @return string $sql the current or edited query */ public function order_by_most_favorited( $sql = '', $select_sql = '', $from_sql = '', $where_sql = '', $sort = '', $pag_sql = '' ) { if ( apply_filters( 'bp_use_legacy_activity_query', false ) ) { preg_match( '/\'favorite_count\' AND CAST\((.*) AS/', $where_sql, $match ); if ( ! empty( $match[1] ) ) { $new_order_by = 'ORDER BY '. $match[1] .' + 0'; $new_select_sql = $select_sql . ', '. $match[1] .' AS favorite_count'; $sql = str_replace( array( $select_sql, 'ORDER BY a.date_recorded' ), array( $new_select_sql, $new_order_by ), $sql ); } // $select_sql is carrying the requested argument since BuddyPress 2.0.0 } else { $r = $select_sql; if ( empty( $r['meta_query'] ) || ! is_array( $r['meta_query'] ) ) { return $sql; } else { $meta_query_keys = wp_list_pluck( $r['meta_query'], 'key' ); if ( ! in_array( 'favorite_count', $meta_query_keys ) ) { return $sql; } preg_match( '/\'favorite_count\' AND CAST\((.*) AS/', $sql, $match ); if ( ! empty( $match[1] ) ) { $sql = str_replace( 'ORDER BY a.date_recorded', 'ORDER BY '. $match[1] .' + 0', $sql ); } } } return $sql; } /** * Cannot pass the favorite data for now so just fool heartbeat activities */ public function maybe_fool_heartbeat( $r = array() ) { if ( empty( $r['meta_query'] ) ) { return $r; } $meta_query_keys = wp_list_pluck( $r['meta_query'], 'key' ); if ( ! in_array( 'favorite_count', $meta_query_keys ) ) { return $r; } else { $r['since'] = '3000-12-31 00:00:00'; } return $r; } } // 1, 2, 3 go ! function bp_loop_filters() { return new BP_Loop_Filters(); } add_action( 'bp_include', 'bp_loop_filters' );September 22, 2016 at 12:17 pm #259017In reply to: On updation blank screen appears
danbp
ParticipantPaul Wong-Gibbs
Keymaster(This error message in your screenshot refers to some other plugin, not BuddyPress. But anyway:)
To remove any plugin in WordPress, go into
wp-content/plugins/with FPT or however, and delete the plugin folder — in this case,BuddyPress.If you visit
your-site.com/wp-admin/plugins.phpdirectly, WordPress should disable the missing plugin.If you happen to not be logged in, and so can’t get into
wp-adminbecause of the error… you could edit something in the database with SQL, but it sounds like you aren’t technically proficient with SQL to do this (it’s easy to break something else), so the last option — and this is a nuke — rename your theme folder to something else, rename the entire plugins folder to something else, then you should be able to log into wp-admin. WordPress will switch to one of the default twenty* themes. You can then rename the plugin folder back and start reactivating them one-by-one, and then switch the theme back.September 22, 2016 at 8:28 am #259012In reply to: How to manage Avatars?
Paul Wong-Gibbs
KeymasterUnfortunately there aren’t any management features built into WordPress to deal with uploaded user/group pictures (or cover images) in the same way that WordPress has its media library. This may change, but probably not for a long while, or until a contributor appears who really, really wants to fix this.
I wouldn’t worry about unused images on your server. If you’re worried about disk space, get a better host with more filesystem space. This shouldn’t be an issue nowadays.
September 22, 2016 at 8:18 am #259010In reply to: PLEASE HELP: No confirmation emails
Paul Wong-Gibbs
KeymasterExactly. The first thing you want to do @phound1 is verify if WordPress sends its own emails. An easy example is the comment moderation notification email. If it does not work, obviously fixing that is the first step. Let us know, we’ll try to point you in the right directions.
djsteveb
Participant“need a FTP script” – tried filezilla?
I use smart ftp more often, but filezilla is free last I checked.ftp in, download a backup of all the files.
Don’t know what you mean by “SQL script to remove buddypress” – I would use phpmyadmin to login to your sql database, click export, custom, check ‘add drop table’ – and save a copy..
then I would go to (via ftp or file manager in cpanel) – site / wp-content/plugins
I’d rename the plugins folder to /plugins-hold – then create a new /plugins folder
at that point you should be able to login to the site if you to sitename/wp-admin/
I’d immediately check appearance – themes – change to default.. then start adding the needed plugins one by one.. if you find that enabled two plugins at once causes a problem – you probably have found the conflict.
Of course it could be a theme issue, a corrupt database, a hacked site – who knows.. but that’s what I would do.. I’m not an expert, and double check the documentation at wordpress.org for making backups. ( https://codex.wordpress.org/WordPress_Backups )
Hope that helps.September 21, 2016 at 12:13 pm #258973In reply to: BuddyPress too many redirects – URGENT
Paul Wong-Gibbs
KeymasterI see your site has a HTTP Basic Auth. user/password, so I can’t track down down where it’s redirecting to/from.
How exactly did this problem occur? If you have the site going live in a couple of days (hopefully), then it must have been working to get it ready, so what did you do to break this?
Please also let us know if you’re running WordPress multisite or not.
September 20, 2016 at 11:59 pm #258962In reply to: BuddyPress Branding
Henry Wright
ModeratorHere’s an example of what’s allowed:
Activity Stream Plus for BuddyPress
Note, the following is an example of what isn’t allowed:
BuddyPress Activity Stream Plus
You may come across older plugins that use the 2nd naming style. That’s because the guidance above was introduced by the WordPress Plugin Review Team relatively recently.
September 20, 2016 at 11:48 pm #258961In reply to: Custom Theme Template Path
Christian Freeman (codelion)
ParticipantAwesome, thanks! The template overload and BP theme compat documentation is really insightful.
My goal with this is to create a plugin that loads a BuddyPress theme which can work along with nearly any WordPress theme I switch to. With that said, in your expert opinion, which of the methods you’ve provided will work best from an overall compatibility perspective?
September 20, 2016 at 9:41 pm #258956In reply to: Customize BP Activity Plus Plugin
danbp
ParticipantBetter to ask for this the plugin support
September 20, 2016 at 8:50 pm #258952In reply to: BuddyPress Branding
danbp
ParticipantHi,
you can use BuddyPress in the plugin name, under condition the public can understand clearly that it is an add-on FOR BP and not a part OF BP.
For the domain name, i presume it’s the same trademark condition as for wordpress: no, you can’t. You can use bp-something[dot]com but not buddypress-something[dot]com
BuddyPress comes like WordPress under GPLv2 license and has similar terms of use.
-
AuthorSearch Results