Search Results for 'buddypress'
-
AuthorSearch Results
-
August 27, 2013 at 1:05 am #170484
In reply to: two page home page?
bp-help
Participant@villnoweric
Try this it is a slightly modified snippet I did earlier but fits your requirement. Follow the instructions in the code.`
// PLEASE NOTE FOR THIS TO WORK:
// Before adding this code to bp-custom.php
// https://codex.buddypress.org/developer/customizing/bp-custom-php/
// you will need to create a new page in the dashboard and name it
// something like “Dummy Page” for example or any name you choose.
// Do not add this page to your menu because it is just a dummy page
// for the redirect. Then go to Dashboard/Settings/Reading.
// Under “Front page displays” select “A static page.” Then use the
// “Front page” drop-down menu to select the page you created. In my
// example for instance I selected “Dummy Page” for my front page.
// Done! Now logged out visitors get redirected to the register page,
// and logged in users get redirected to the activity stream./* Redirects to profile upon login, and logged out users are redirected to register page */
function bp_help_redirect_to_profile(){
if( is_user_logged_in() && bp_is_front_page() ) {
bp_core_redirect( get_option( ‘home’ ) . ‘/activity/’ );}else {
if ( !is_user_logged_in() && !bp_is_register_page() && !bp_is_activation_page() )
bp_core_redirect( get_option( ‘home’ ) . ‘/register/’ );
}
}add_action( ‘get_header’, ‘bp_help_redirect_to_profile’,1 );
`August 27, 2013 at 12:33 am #170483In reply to: "Create a Page" functionality in BuddyPress?
rickkumar
ParticipantThanks for your comment.
I never said I want BP to be a facebook clone.
I love BP.I strongly feel that BP lacks depth in this functionality.
It is not useful at all. Facebook does it right.
A social network software should be able to do it right.That’s the only reason I mentioned facebook.
I hope you give this issue another consideration and help make BP more useful.
August 26, 2013 at 9:56 pm #170476In reply to: Stop Spam, Allow Members to Flag Spammers, etc.
Jose Conti
ParticipantHi @ubernaut
What WordPress and BuddyPress version do you use?
The reported users are listed in our DEV installations.
August 26, 2013 at 8:47 pm #170467In reply to: User Statistics Reporting in Buddypress?
tallmeerkat
Participanthi pcwriter. thanks for this response. I am looking for a reporting tool about users and also plugin(?) with which I can get an analysis of trending topics in the buddypress community at a given time. Does something exist?
August 26, 2013 at 8:08 pm #170464In reply to: Media Plugin for Buddypress
Tecca
ParticipantI found rtMedia to be great when I was testing it. I know you mentioned it’s not working, but it’s honestly the most quality media plugin I’ve found for BuddyPress. I think if you’re having this many problems with plugins, you might want to see if it’s your theme that’s causing these errors. Otherwise if you find other plugins, those may not work as well.
August 26, 2013 at 7:43 pm #170463Henry
MemberDisabling usernames sitewide sounds like a huge task to me. BuddyPress needs a unique identifier to use in URLs. Have you thought about providing your members with the ability to change their username?
You’d just need to send a global message to all members letting them know how they can update their username.
August 26, 2013 at 7:30 pm #170461In reply to: Media Plugin for Buddypress
Henry
MemberThere was an alternative to BuddyPress Media (rtMedia) – I think it was called BP Media. I’m not sure if it is supported anymore or even in the WP plugin repository but it might be worth a try if you can get hold of it. That said, rtMedia is working very well for me on my test site. Will be putting it live in the next few weeks.
August 26, 2013 at 7:25 pm #170457In reply to: Use email as usernane on registration
terraling
ParticipantI’m pretty certain there is no way to avoid them having a username, although in principle you could auto-generate a string of random characters that they never see.
I’m not familiar with the wordpress.com sign-up, but you could always pretty-please the Jetpack people to see if they will port it across to wordpress.org.
Or look at the various social networking plug-ins. Social Login allows “your visitors to comment, log-in and register with their social network accounts” and works with WordPress and BuddyPress.
If you want something more specific, then you may have to contract a developer to do it for you (then release it as a public plug-in!).
August 26, 2013 at 1:58 pm #170436mrshaffly
ParticipantAnyone?
August 26, 2013 at 11:31 am #170429In reply to: [Resolved] Logged-In User Profile Link URL
xiot
ParticipantThis looks nice but wasn’t what I was looking for since I have a frontpage already and don’t want to change it!
But the link within the code was pretty helpfull! I couldn’t find out where to find the bp-custom.php. Now I know that it has to be created 😀 Thanks anyway!And also thanks to @struth !
Cause of you i found out how to switch the result of is_user_logged_in() . It’s a simple “!” that needs to be in front of the function!But I still can’t imagine why the snippet was named to direct visitors to the registration page! It doesn’t do that.
Now the code is modded and it DOES redirect not logged in users to the registration page!
Feel free to use it 🙂
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') . '/member/'. $current_user->user_login . '/profile/'); exit(); } else { if ($_SERVER['REQUEST_URI'] == '/profile/' && is_plugin_active('buddypress/bp-loader.php') && !is_user_logged_in()) { wp_redirect( get_bloginfo('url') . '/register/'); exit(); }} } add_action('init', 'redirect2profile');Cheers, Lars
August 26, 2013 at 11:13 am #170427In reply to: Remove [Site Name] from email subject line
Prince Abiola Ogundipe
ParticipantThis is what i did to remove it from activation email, you can play with it to remove it from all
function fix_bp_activation_subject($subject) { return __( "Activate Your Account",'buddypress ' ); } add_filter( 'bp_core_activation_signup_user_notification_subject ','fix_bp_activation_subject');Naijaping
August 26, 2013 at 7:04 am #170414In reply to: [Resolved] Logged-In User Profile Link URL
struth
ParticipantI just hijacked Mr Jacoby code:
add_action('after_setup_theme', 'remove_admin_bar'); // remove admin bar for users function remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } } 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()){ //show buddypress user profile page global $current_user; wp_redirect( get_bloginfo('url') . '/members/'. $current_user->user_login . '/profile/'); exit(); } } add_action('init', 'redirect2profile'); ?>Into a plugin for those who don’t know how, or just don’t want to add this code to the functions.php file. you can download it HERE
Removes the admin bar for all users except Administrators and gets “global $current_user;” profile to a page you create called Profile as described by jackreichert
I’ve said it before but I’m going to say it again – you’re a genius Mr Jacoby
August 26, 2013 at 4:15 am #170412In reply to: Buddypress/Bootstrap basic theme support
tsinclair1982
ParticipantWere you creating a theme?
August 25, 2013 at 8:24 pm #170402In reply to: [Resolved] Logged-In User Profile Link URL
xiot
ParticipantHi there!
This worked quite fine for me, but i have the problem that this code doesnt bring me to a signup page when you aren’t logged in.
I tried to add the redirect with “else” but it didn’t work for me either.
The code has now changed, since I tried to figure out why it doesn’t redirect me to my register page.I’m not very skilled with PHP so maybe someone can help me out.
I want the code to redirect the not logged in user to a register pagefunction redirect2profile(){ include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_user_logged_in()){ if ($_SERVER['REQUEST_URI'] == '/profile/' && is_plugin_active('buddypress/bp-loader.php')) { global $current_user; wp_redirect( get_bloginfo('url') . '/member/'. $current_user->user_login . '/profile/'); exit(); } } else { if ($_SERVER['REQUEST_URI'] == '/profile/' && is_plugin_active('buddypress/bp-loader.php')) { wp_redirect( get_bloginfo('url') . '/register/'); exit(); } } } add_action('init', 'redirect2profile');August 25, 2013 at 7:48 pm #170400In reply to: Private Message Button Label Change
funmi omoba
ParticipantThanks for your snippet which works great with standard buddypress message system but did not work if using BP Profile Message UX plugin, is there anyway to make it work please
https://wordpress.org/plugins/bp-profile-message-ux/
tahnks
August 25, 2013 at 7:37 pm #170399In reply to: Need to Reinstall Buddypress
Ben Hansen
Participantposts will only get recorded as activity if buddypress is active the behavior you are seeing is normal. there maybe a plugin out there that can re-construct activity entries from post dates or something but i’m not personally aware of anything that does that.
August 25, 2013 at 4:52 pm #170391In reply to: Buddypress locking a member out of his own group
kagurarap
ParticipantAlso tried w3 total cache and received a fatal error so decided not to go that route either…
August 25, 2013 at 4:51 pm #170390In reply to: Buddypress locking a member out of his own group
kagurarap
ParticipantUpdate: So I decided in the end to stick with Hyper Cache, which is pretty okay, enable caching to true in the wp-config file and since I’m not expecting hundreds of visitors to interact with the social aspect of the site, it’s a small group, the images seemed to be the issue with the site’s speed and the other caching plugins were breaking buddypress features.
So I’m using Imsanity and Ewww Image Optimize plugins to control the maximum size of the images being uploaded (they get re-sized by the plugin) and to optimize the existing images I had in the library. This has helped my site’s speed a whole lot especially with the Site Activity Feed widget on the front-page.
I’m still looking into caching, looking into mem-caching but not sure if it’s necessary at this point in time for a site that if we’re lucky, has a maximum of 100 members. Hope this topic helps someone.
August 25, 2013 at 4:20 pm #170386In reply to: Private Message Button Label Change
Henry
MemberYou could do it like that but each time you update BuddyPress you’ll lose the changes you’ve made to bp-messages-template.php. I’d try to avoid making changes to the plugin core.
August 25, 2013 at 4:18 pm #170385In reply to: Private Message Button Label Change
tayenewm
ParticipantThat process seems beyond me and very long (and I cannot find the /plugins/buddypress/bp-languages folder) I just want to change the “Private Message” button label. Can I access/change it quickly like this:
1. access buddypress/bp-messages/bp-messages-template.php
2. change the ‘link text’ to the new label name in this block of code?function bp_get_send_message_button() {
// Note: ‘bp_get_send_message_button’ is a legacy filter. Use
// ‘bp_get_send_message_button_args’ instead. See #4536
return apply_filters( ‘bp_get_send_message_button’,
bp_get_button( apply_filters( ‘bp_get_send_message_button_args’, array(
‘id’ => ‘private_message’,
‘component’ => ‘messages’,
‘must_be_logged_in’ => true,
‘block_self’ => true,
‘wrapper_id’ => ‘send-private-message’,
‘link_href’ => bp_get_send_private_message_link(),
‘link_title’ => __( ‘Send a private message to this user.’, ‘buddypress’ ),
‘link_text’ => __( ‘Private Message’, ‘buddypress’ ),
‘link_class’ => ‘send-message’,
) ) )August 25, 2013 at 2:42 pm #170382In reply to: Permalinks not working with Buddypress
stuartjbray
ParticipantI guess if I am on a windows server then I need to rewrite these htaccess rules in IIS URL Rewriter, as per…
Alternatively, change to an apache server? Is BuddyPress windows compatible?
August 25, 2013 at 1:58 pm #170380In reply to: Private Message Button Label Change
Henry
MemberThis will help you. It shows you how to change most of the text labels and messages outputted by BuddyPress:
https://codex.buddypress.org/developer/customizing/customizing-labels-messages-and-urls/
August 25, 2013 at 1:31 pm #170378In reply to: Hide profile field
rtandoh
ParticipantHi
I can find the above function under the legacy branch of code base, but what is the BuddyPress 1.8 equivalent?
Thanks.
Richard
August 25, 2013 at 7:58 am #170371neo-tronic
ParticipantHi @prometheus-fire ,
Thanks for your reply. But i don’t get this to work with my site. My php-skills are btw not very good…
But: i find a Solution. For blog-posts i use this:
function bbg_record_my_custom_post_type_posts( $post_types ) { $post_types = array ('it_movies', 'it_video_games', 'it_preisalarm', 'post'); // Hier die Slugs der Custom Post Types eintragen, bei denen Erwähnungen im Beitrag selbst berücksichtigt werden return $post_types; } add_filter( 'bp_blogs_record_post_post_types', 'bbg_record_my_custom_post_type_posts' );And for comments i use this:
function bbg_record_my_custom_post_type_comments( $post_types ) { $post_types = array ('it_movies', 'it_video_games', 'it_preisalarm', 'post'); // Hier die Slugs der Custom Post Types eintragen, bei denen Erwähnungen in den Kommentaren berücksichtigt werden return $post_types; } add_filter( 'bp_blogs_record_comment_post_types', 'bbg_record_my_custom_post_type_comments' );And it works, but without custom messages. Anyway – now it works and for the Future, i wait for the buddypress-update. 😉
August 24, 2013 at 7:01 pm #170361jstuartwp
ParticipantThat works perfectly!
Thank you!
-
AuthorSearch Results