Search Results for 'buddypress'
-
AuthorSearch Results
-
September 9, 2016 at 6:17 pm #258589
In reply to: Order by custom field in member loop
ositive
ParticipantI tryed to work also with this solution (provided by @shanebp too):
https://buddypress.org/support/topic/creating-a-new-order-by-filter-in-groups-loop-with-custom-sql/
but I do not obtain to order members by rating.. is this the right approach??function antares_members_filter_options() { echo '<option value="rating">rating</option>'; } add_action( 'bp_members_directory_order_options', 'antares_members_filter_options' ); function antares_ajax_querystring( $query_string, $object ) { if ( 'members' != $object ) return $query_string; if ( ! bp_is_members_directory() ) return $query_string; $query_args = wp_parse_args( $query_string, array() ); $page = $query_args['page']; if( isset( $query_args['action'] ) && $query_args['action'] == 'rating' ) { $query_args = array(); $query_args['page'] = $page; $query_args['orderby'] = 'rating'; $query_args['order'] = 'ASC'; $query_args['include'] = antares_get_members(); $query_string = http_build_query( $query_args ); } return $query_string; } add_filter( 'bp_ajax_querystring', 'antares_ajax_querystring', 32, 2 ); function antares_get_members() { global $wpdb; $sql = "SELECT a.ID as id, a.user_login AS name, a.display_name AS displayname, AVG(star) AS rating, COUNT(star) AS reviews FROM {$wpdb->prefix}users AS a LEFT JOIN {$wpdb->prefix}bp_activity AS b ON a.ID = b.usercheck WHERE (b.is_activated is null or b.is_activated=1) GROUP BY id ORDER BY rating DESC"; $buff = array(); $result = $wpdb->get_results( $sql , OBJECT ); foreach ($result as $row) { $buff[]= $row->id ; } $query_str= implode (',', $buff); return $query_str; }September 9, 2016 at 5:45 pm #258588In reply to: New Member Emails Not Sending
macroccs
ParticipantI am fairly new to WordPress, so I can’t answer with certainty. As far as I can tell, it’s just the Buddypress emails that aren’t sending.
Plugins Include:
BuddyPress Follow Version 1.2.2
BuddyPress Global Search Version 1.1.5
BuddyPress Group TinyChat Pro Version 1.4
BuddyPress Groups Extras Version 3.6.9
BuddyPress Message Attachment Version 2.1.1
BuddyPress Reorder Tabs Version 1.0.9
BuddyPress Security Check Version 2.1.2
Buddypress Social Version 2.0
BuddyPress User Blog Version 1.1.1
Chat by Flyzoo – Group Chat & Live Support Version 2.2.7
cometchat Version 1.0.0
Disable Comments Version 1.5.2
Embedly Version 4.0.12
Events Manager Version 5.6.6.1
Inline Google Spreadsheet Viewer Version 0.10.2
Insert Adsense Version 2.0
Invite Anyone Version 1.3.11
Send From Version 2.2
VideoWhisper Video Presentation Version 4.1.3
WangGuard Version 1.7.2
WordPress Reset Version 1.4
WP Project Manager – Sub Task Version 0.1
WP Project Manager PRO Version 1.5
WP Project Manager pro – BuddyPress Integration Version 1.2
WP Super Cache Version 1.4.8September 9, 2016 at 4:41 pm #258584danbp
ParticipantHi!
1) yes – as i already explained
2) yes
3) the solution is to patch the file manually. It will be available in a future bbPress update, but i ignore the date… It’s better to patch immediatly, update can be in a long time.
Here is the patch.
– In red you see the current code.
– In green the new one you can use.Remove the line in red and replace it by the green one. Note this modification in a safe place, in case the patch won’t be applied at next bbP update. This can happen and is available for absolutly any plugin, theme and even WP when it comes to patch core files.
You see also the line number so it’s very easy to find it inside the file.
The concerned file is mentionned in bold, above the diff. code itself.
FYI the complete path iswp-content/plugins/bbpress/includes/extend/buddypress/activity.phpI suppose you know how to copy/paste ? ๐
September 9, 2016 at 4:21 pm #258583danbp
ParticipantIsn’t possible at the moment.
My site is getting heavily brigaded by spammers
Sorry for you, but adding moderation to status wouldn’t avoid spammers signicantly.
Have you installed WP by following some basic security recommandation ?
Do you use some anti spam plugins ?
How many members do you have and to what do you estimate the amount of spammers in regard of them ?
Have you inactive users in the list ?
Are you on a MS or single install ?Maybe you could also blacklist some words from updates publication.
September 9, 2016 at 3:45 pm #258581In reply to: Any plugin for social sharing
danbp
ParticipantYou’re refering to a premium add-on for witch only people who buyed the licence have access. You’ve better to ask on their support or at MyCred forum.
Personally i use Buddypress Social on SWA and Simple Share Buttons Adder for the blogs (multisite install).
September 9, 2016 at 10:06 am #258557In reply to: tinymce in activity replies and comments
jbboro3
ParticipantThat code is for plain text tinymce in “post form”.. This will render in the post form but not in the comment form (though without rich text editor you can implement it easily anywhere). The problem is only with rich text editor which you can insert images, bold font, italic etc without displaying codes (as in text form editor).. When you are on to threaded forum (multi-level commenting) you will have to figure out three things here.. 1st Post form (the one you posted above), 2nd comment form (replies to the original post) and the replies form (replies to the comments which is threaded in nature)..
The one I’m talking about is – I could able to implement first two steps i.e, post and comment form in rich text editor format, but still figuring out the last format i.e., replies which is messing up the things.. The thing is that buddypres is implementing both comment and replies in the same ids which needs to be corrected to be able to implement with tinymce and also the AJAX on the replies collapse behavior which doesn’t support with the buddypress right now
September 9, 2016 at 9:17 am #258552In reply to: User dashboard url
jbboro3
ParticipantYou can’t directly get working url without using little bit of php code (while you’re accessing users profile).. If your content page allows php code, try this: /dashboard”>Dashboard
else,
if you are looking for just a profile link of users (any users), then create a page named “profile” and add this code in your functions.php or custom-functions.php :
function redirect2profile(){ include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if($_SERVER['REQUEST_URI'] == '/profile/' && is_plugin_active('buddypress/bp-loader.php') && is_user_logged_in()){ global $current_user; wp_redirect( get_bloginfo('url') . '/members/'. $current_user->user_login . '/profile/'); exit(); } } add_action('init', 'redirect2profile');Above line will work only if you have set the members directory as “members” in the buddypress settings.. If you named it other, then simply mention that instead of “member” in the /members/ place.
By doing this you can simply paste url = http://www.mywebsite.com/profile anywhere.. When the users click on the link, it will be directed to their respective profile page..
But, but: The later tricks will be much slower to access the given link than the former..Choice is yours!
Good luck.
September 9, 2016 at 8:30 am #258550In reply to: buddypress translestion
danbp
ParticipantHi!
1. presuming you dl the translation file (po & mo) ?
2. what have you renamed ? Normally there is nothing to rename for po/mo file names.
3. which code did you added to functions.php? Usually there is nothing to add there for translation.See here for details: https://codex.buddypress.org/translations/
Note: Hebrew language file (buddypress_he_IL.mo) is uncomplete (72%), that’s probably why your register page is still in english.
There is also no PTE for hebrew which makes difficult for users to get the awaiting for validation strings.The only solution for you is to download what is currently available in hebrew and to complete this translation yourself or to get in touch with this guy.
Perhaps you want to contribute to translation in your language? Read here if interested.
September 9, 2016 at 8:29 am #258549In reply to: User dashboard url
Paul Wong-Gibbs
Keymaster@missmad If you wanted to create a link to go to a specific screen on the logged-in user’s profile, use
http://buddypress.dev/members/me/profile/Obviously swap in your actual domain. Note the
members/me/bit — that’s the magic part. If that’s found, it redirects to the logged-in user’s profile following whatever comes after it in the URL.September 9, 2016 at 8:16 am #258547In reply to: tinymce in activity replies and comments
bigkahunaburger
ParticipantHi @jbboro3
I had replies working before, but now has the same issues as the main activity editor:
https://buddypress.org/support/topic/add-tinymce-to-activity-post-reply-form/
September 9, 2016 at 8:13 am #258546In reply to: CSS causing cover image to disappear.
karmatiger
Participantwhere did you place the function? When I put it in bp-custom.php the cover image still crashes when I upload copies of the css files to buddypress/css to my Kleo child theme
September 9, 2016 at 7:50 am #258545In reply to: tinymce in activity replies and comments
jbboro3
ParticipantI could able to implement rich text editor in the comment section by adding/modifying some js files but for the replies and threaded comments it’s a huge task.. To be honest, buddypress are not meant to be work as smooth in threaded comments (at least as of now). I will update If I can successfully implement tinymce in both comments and replies section. Cheers!
September 9, 2016 at 7:36 am #258544In reply to: Widget doesn’t show up on Home Profile
jbboro3
ParticipantHi, @djpaul thanks for the response.
The condition is that: Yes, widgets shows up everywhere (including BP profiles and group pages) but they are perfectly working as an error or 404 not found page.. If I edit ‘404 page not found’ or error page (such as background color and as such), they all get reflected in the buddypress pages, and vice-versa.
I even tried with dynamic widgets and display widgets plugin to see if that can identify the exact problem, but they are not helping either.. I tried with custom db query to identify the basic problem but they are not helping either..
function custom_error_pages()
{
global $wp_query;if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 403)
{
$wp_query->is_404 = FALSE;
$wp_query->is_page = TRUE;
$wp_query->is_singular = TRUE;
$wp_query->is_single = FALSE;
$wp_query->is_home = FALSE;
$wp_query->is_archive = FALSE;
$wp_query->is_category = FALSE;
add_filter(‘wp_title’,’custom_error_title’,65000,2);
add_filter(‘body_class’,’custom_error_class’);
status_header(403);
get_template_part(‘403’);
exit;
}if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 401)
{
$wp_query->is_404 = FALSE;
$wp_query->is_page = TRUE;
$wp_query->is_singular = TRUE;
$wp_query->is_single = FALSE;
$wp_query->is_home = FALSE;
$wp_query->is_archive = FALSE;
$wp_query->is_category = FALSE;
add_filter(‘wp_title’,’custom_error_title’,65000,2);
add_filter(‘body_class’,’custom_error_class’);
status_header(401);
get_template_part(‘401’);
exit;
}
}function custom_error_title($title=”,$sep=”)
{
if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 403)
return “Forbidden “.$sep.” “.get_bloginfo(‘name’);if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 401)
return “Unauthorized “.$sep.” “.get_bloginfo(‘name’);
}function custom_error_class($classes)
{
if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 403)
{
$classes[]=”error403″;
return $classes;
}if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 401)
{
$classes[]=”error401”;
return $classes;
}
}add_action(‘wp’,’custom_error_pages’);
I can’t really trace back the exact problem.. I’m not so well versed with the buddypress thing, maybe those are making me harder to identify the problem..
Seems Like I may have to seek for new installation but that’s very discouraging..
September 8, 2016 at 8:44 pm #258540In reply to: removing DELETE from activity stream
shanebp
ModeratorAre you referring to the Delete button on an activity item?
If so, create a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\activity\entry.php
And then remove this line:
<?php if ( bp_activity_user_can_delete() ) bp_activity_delete_link(); ?>September 8, 2016 at 3:54 pm #258531danbp
ParticipantI don’t know, sorry ! And i’m even unsure if it is not a WP bug (what i suspect) or a little BP or bbP issue.
I asked twice for this on BuddyPress Slack, without answer at this time.
Suggest you open a bug ticket for this on Trac and add a link to this topic.
You can loggin there by using the same credentials as on this forum.September 8, 2016 at 2:57 pm #258529ico33
ParticipantI have another wordpress blog, without bbpress and buddypress. I tried to install there buddypress and bbpress, and try.
WELL: the problem is absolutely the same. On another different blog. How is this possible?
September 8, 2016 at 2:44 pm #258528ico33
ParticipantDeleted the 2 plugins: bbpress and buddypress. Then re-installed both. Did another test: a new topic, then deleted. Still present in activity. The problem remains. Damn!
At this point a question: is there a way to exclude bbpress from buddypress activity? Not through code, i’m not expert. Maybe a function, a plugin, or something to say to activity: not look at bbpress.
September 8, 2016 at 1:51 pm #258523In reply to: Restricting profile fields to groups
danbp
ParticipantHi !
not the absolute solution, but at least a starting point. Here’s a tutorial by BuddyDev which explains how you can do that.September 8, 2016 at 1:45 pm #258522In reply to: default cover photo problems
danbp
ParticipantHi !
Try this plugin, it does exactly what you need. In BP options, leave Replace BP 2.4 functionality unchecked and you’re done.
https://wordpress.org/plugins/buddypress-cover-photo/September 8, 2016 at 1:27 pm #258521In reply to: “Create Group” button not showing
danbp
ParticipantHi !
unable to recreate this issue on a standart install and 2016 activated.
This button comes only up on Group Directory: All Groups | My Groups | Create Group and not when you’re inside an existing group (where you see Send invites).
There is another button for this on the WP Toolbar > Usermenu > Groups > Create Group
And both are displayed correctly on Twenty Sixteen.Within buddypress.css default file, there is no specific rule for it.
In case of, button’s ID on BuddyMenu is #group-create-navFor now,
– is group creation allowed for all users (see in BP options) ?
– do you see the button in the usermenu (top right corner) and does it work ?No idea what’s your issue, but i don’t believe it is BuddyPress. Maybe a plugin or a JS issue. Difficult to say more without a live URL. ๐
September 8, 2016 at 12:13 pm #258517Topic: “Create Group” button not showing
in forum How-to & Troubleshootingclaudiosinopoli
ParticipantHi there,
I recently installed WordPress 4.6.1 and BuddyPress 2.6.2
I’m using a child theme of the Enfold theme by kriesi.at and everything runs nice but the “Create Group” button inside the Groups page is missing so I can see only “Memberships” and “Invitations”.
It works though with the theme Twenty-Fourteen and Twenty-Fifteen but not with the Twenty-Sixteen.
I was googling this and most of the people says that’s an issue related with fact that the_title(); tag in the themeโs page.php is placed “outside the WordPress loop”.
Unfortunately nobody has a solution.
Can you please tell me how to fix this issue? Some php lines in the child’s functions.php or something like that?
Thanks a lot.September 8, 2016 at 2:06 am #258509In reply to: BuddyPress on hosted shared server
Scott Hartley
ParticipantI can say this I have seen some sites with several thousand views a day do just fine on shared hosting. Since this site though will have a few concurrent users (logged in with BuddyPress) you will want the server side caching with varnish.
I think you should be just fine a simple managed hosting for this site go with the HostGator host \0 you will save some money and time
September 7, 2016 at 8:05 pm #258505In reply to: Intermittent 404s on non-BP permalinks (Multisite)
r-a-y
KeymasterYour issue might be related to this:
https://buddypress.trac.wordpress.org/ticket/6448September 7, 2016 at 7:09 pm #258502In reply to: Error when delete activity stream comment on post
buddywhatshisname
ParticipantThanks for the reply r-a-y, and good to know about the issue tracker. I posted incorrectly today — I’ve tested the problem has resolved itself — yay for you guys!
Here’s my steps, for the record:
Post a BuddyPress comment in the activity stream page /community/activity/ into My Profile You should see your new entry on the activity page like this: Blah Your Name posted an update right now Test post for deletion Comment [0] Favorite Delete On that same page, click that Delete button immediately below your post (url=/community/activity/delete/2001/?_wpnonce=blah) to delete that comment.September 7, 2016 at 6:56 pm #258500In reply to: Post was removed
r-a-y
KeymasterIs this the post?
-
AuthorSearch Results