Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 4,251 through 4,275 (of 22,651 total)
  • Author
    Search Results
  • #257170
    Paul Wong-Gibbs
    Keymaster

    If you set permalinks to something not-default, and then visit a wordpress blog post on your site, does it work?

    #257144
    buddycore
    Participant

    First you are creating a custom function called automatic_group_membership() this takes one parameter $user_id.

    This function terminates if there is no $user_id provided, meaning you don’t run rogue code and your site is more optimised.

    When a $user_id is present the groups_accept_invite() function is run. This function is a BuddyPress core function you can find it in wp-content/plugins/buddypress/bp-groups/bp-groups-functions.php on line 1400.

    It accepts two parameters a $user_id and a $group_id. You need both in order to create the relationship.

    This function is “hooked” with add_action() which is a WordPress core function. This function add_action() has many hooks available for various situations. You can read more about hooks here https://codex.wordpress.org/Plugin_API/Hooks.

    Essentially it’s an opportunity to run your own code against WordPress core, or in this case BuddyPress core. BuddyPress provides the hook and we use them to achieve cool things.

    So the hook in this case is bp_core_activated_user and the code we want to run when this hook is available would be the customer function automatic_group_membership which is passed as a second parameter.

    I’m not sure where the $user_id gets populated along the way here, nor the $group_id maybe someone can help?

    Otherwise, I would do this not on activation but when a user has logged in for the first time.

    Then we have access to global $bp which contains a loggedin_user->id which can be used with this function and you could manually set the $group_id in bp-custom.php

    #257105

    In reply to: Login Redirect

    coffeywebdev
    Participant

    You could try using the WordPress API, there is a function called login_redirect()

    /**
     * Redirect user after successful login.
     *
     * @param string $redirect_to URL to redirect to.
     * @param string $request URL the user is coming from.
     * @param object $user Logged user's data.
     * @return string
     */
    function my_login_redirect( $redirect_to, $request, $user ) {
    	//is there a user to check?
    	if ( isset( $user->roles ) && is_array( $user->roles ) ) {
    		//check for admins
    		if ( in_array( 'administrator', $user->roles ) ) {
    			// redirect them to the default place
    			return $redirect_to;
    		} else {
    			return home_url();
    		}
    	} else {
    		return $redirect_to;
    	}
    }
    
    add_filter( 'login_redirect', 'my_login_redirect', 10, 3 );

    You need to add something like the code above your child theme functions.php file, or you can create a plugin and add this code to it.

    https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect

    Henry Wright
    Moderator

    I haven’t read that article but I mean using a complete WordPress install as a testing environment. It’s important to have something separate from your live website.

    SophieVerlinden
    Participant

    Thanks for your quick reply.
    Is this what you mean? https://codex.wordpress.org/Test_Driving_WordPress

    Could there also be another solution, something I didn’t mention already?

    buddycore
    Participant

    I use a shared hosting environment and performance is sluggish at best and I’ve taken a lot of time to develop a theme that is barebones with regard to what WordPress and BuddyPress both give you.

    So, you may want to setup in an environment where you can be provisioned for more hardware resources or better hardware.

    Like Paul says though, there are many successful sites out there. I’d do your research and speak with the host.

    I’m not savvy in this area, only speaking from experience,

    #257067
    Henry Wright
    Moderator

    The bp_activity_add action fires at the end of adding a new activity item. So you can hook a custom function to that and add your custom post within that. Here’s an example:

    add_action( 'bp_activity_add', function( $r ) {
    
        // Insert a new post.
        wp_insert_post(
            array(
                'post_type' => 'activitfeed',
                'post_title' => __( 'Hello world', 'text-domain' ),
                'post_content' => $r['content'],
                'post_status' => 'publish'
            )
        );
    } );

    Ref: https://developer.wordpress.org/reference/functions/wp_insert_post/

    Paul Wong-Gibbs
    Keymaster

    > Whats the maximum visitors you can have on a site using your plugin and wordpress

    There is no easy answer for this. WordPress runs well on a variety of small to extremely large sites. Scalability comes down to the exact code being run on the site, the amount of traffic and user interaction, and the infrastructure supporting the site.

    Using a metric such as “number of visitors” isn’t particularly useful when it comes to community or e-commerce sites, because those require lots of user interaction, and that impacts performance differently to “read-only” sites. By that, I mean like newspapers, where visitors just read articles.

    #257060
    Paul Wong-Gibbs
    Keymaster

    The member filtering isn’t going to work like that by default. You’d need to write some code, though I think it’d work.

    The bigger question for you is to decide how you want the BuddyPress/social data to behave across all these sites. You either want to activate BuddyPress network-wide in WordPress, or consider enabling multiblog mode: https://codex.buddypress.org/getting-started/customizing/bp_enable_multiblog/

    sharmavishal
    Participant

    “heavy traffic sites WordPress and plugins will struggle with a bottle neck being caused”

    Kindly explain the above in detail as to how your external php developer reached to this conclusion? If he can specify the bottlenecks would help

    PS: i do run couple of BP+WC enabled sites and it does have tangible traffic and i dont find it slow or sluggish

    #257008
    buddycore
    Participant

    You can create a multitype form with html and process it with PHP, or an existing WordPress function.

    https://codex.wordpress.org/Function_Reference/wp_handle_upload

    You would need to modify the database to store your file upload paths also.

    #257007

    In reply to: Public posts

    buddycore
    Participant

    Sounds like you’re using a theme that’s stopping this or when you publish a post you have it set to private.

    It’s more for WordPress forums given posts are a WordPress feature and not a BuddyPress one.

    Look at your theme files, index.php and look for anything that looks like it’s making those posts only accessible to logged in users. Something like is_user_logged_in().

    #256995

    In reply to: Profile Print

    r-a-y
    Keymaster

    You’d have to add a custom “Print” button in your template. Or perhaps you could use a WordPress plugin.

    If you go the custom code route, here’s an article that might help:
    http://stackoverflow.com/questions/16894683/how-to-print-html-content-on-click-of-a-button-but-not-the-page

    r-a-y
    Keymaster

    The login page is not handled by BuddyPress.

    Please post your issue on the WordPress support forums:

    Support Forums

    It’s most likely a plugin conflict somewhere.

    #256978
    Slava Abakumov
    Moderator

    BuddyPress registration page is quite big, it has a lot of inputs.
    You can install a widget, called (BuddyPress) Log in. Here is info about it.
    If you use Jetpack, there is a module there, that gives ability to define widgets visibility. Here are other plugins: one, two & etc.
    Thus you will have ability to define, that this widget should be displayed only on Registration page in sidebar (or any widget zone that is defined in your theme).

    Or you can manually edit BuddyPress template files and include a shortcode or PHP code to display a login form in any place of your registration page. See docs for that.

    #256974

    In reply to: New templates??

    shanebp
    Moderator

    There is a project re new templates. You can join the effort. More info…

    r-a-y
    Keymaster

    @tutorbe @mongmuon @kinstahosting – Thanks for testing on HHVM. I’ve confirmed the bug and have a patch ready:
    https://buddypress.trac.wordpress.org/attachment/ticket/7197/7197.01.patch

    Please test and let me know if it works for you.

    #256950
    danbp
    Participant

    May be a forgotten custom function in child theme or bp-custom.php ? May be a role or a membership plugin ? Who knows ?
    You have to debug !

    #256926
    skitzpress
    Participant

    Thanks for the reply @danbp

    I have not built the site and I also have very little technical and coding knowledge (sorry!) I will update WordPress later but wasn’t sure how to back everything up?

    There is a lot of plugins installed:Admin Menu Editor, Advanced Custom Fields,Advanced Custom Fields PRO, bbPress,BuddyPress, DropBox Folder Share, Easy FancyBox, Gravity Forms, Gravity Forms + Custom Post Types, Gravity Forms CSS Ready Class Selector, Gravity Forms Remove Entries, jonradio Multiple Themes, Login Security, Members, No Page Comment, OPcache Dashboard,Page Specific Menu Items, PHP Code For Posts, Post Types Order, Social Media Feather, Styles with Shortcodes for WordPress,
    TAO Schedule Update, WordPress Importer, WP Google Maps, WP Google Maps – Pro Add-on, wp_mail return-path

    Are any of these know to conflict with BuddyPress?

    Not sure on the custom functions as far as I know… I’m not confident enough to debug and the site it is also live so not sure what to do?

    Think I will update WordPress then disable all plugins except BuddyPress and try on a twenty theme but if that doesn’t work, which seems like the case in other past posts, I’m not sure need help!

    Thanks again

    danbp
    Participant

    @intothemythica,

    guess you have to follow instructions belonging to the actual WP/BP version… Haven’t you seen this notice ?
    ***The following pertains to administrators using WordPress 3.0 in network mode)***

    BP should be on the same site where WP is installed.

    Follow Codex from here and note that:

    One site of the Network

    C. BuddyPress Activated in Main Site only
    D. BuddyPress Activated in Secondary Site only
    Posts, comments, or activities of the users in sites other than where you activated BuddyPress won’t be recorded in the Activity Streams when you install BuddyPress in only one site of the network.

    Installation in WordPress Multisite

    #256902

    In reply to: Poor Avatar quality

    3T_MJ
    Participant

    well, I did that already. The original pic is a jpg taken with a proper DSLR. But doing the same crop via buddypress and my image editing programme makes a notable difference, it’s set to 72 dpi when editing. Not sure what compression buddypress uses (0.9 or lower?) when storing the image but it seems bad. It seems worse compared to ste crop wordpress does when uploading pics. And to make it worse, the buddypress crop file size is larger compared to doing the same crop with the image editing programme – and that with lower quality. I’m devastated.

    #256897
    danbp
    Participant

    Add this snippet to bp-custom.php and comment/remove what you don’t need

    function bpex_admin_bar_remove() {
    global $wp_admin_bar;
    
    	// Remove the whole WP logo menu
    //	$wp_admin_bar->remove_node( 'wp-logo' ); 
    
    	// remove only About BuddyPress 
    	$wp_admin_bar->remove_node( 'bp-about' ); 
    
    	// remove only About bbPress
    //	$wp_admin_bar->remove_node( 'bbp-about' );
    
    }
    add_action( 'wp_before_admin_bar_render', 'bpex_admin_bar_remove' );

    Related BP 2.6.1.1 admin menu reference: bp-core/classes/class-bp-admin.php:485

    Related WP function: https://codex.wordpress.org/Plugin_API/Action_Reference/wp_before_admin_bar_render

    #256889
    skitzpress
    Participant

    I am having this issue with BuddyPress 2.6.1.1 & bbPress 2.5.10 plugins installed

    I have used the BuddyPress repair tool but it didn’t work?

    Running WordPress 4.4.4 and the Sparkling theme

    Any ideas as this seems to be a common issue looking back through older topics

    Irony is when I forgot my password to this forum it sent an email instantly!!!

    Thanks in advance

    #256876

    In reply to: Members display name

    danbp
    Participant

    Try this plugin:
    https://wordpress.org/plugins/buddypress-usernames-only/
    (old but still working)

    #256862
    shanebp
    Moderator

    1. Yes – If a site admin, on your profile > Messages > Compose… [checkbox] This is a notice to all users.

    2. Yes with https://wordpress.org/plugins/crowdmentions/

    3. No

    4. Yes – per user setting on whether they want such emails: Profile > Settings > Email

Viewing 25 results - 4,251 through 4,275 (of 22,651 total)
Skip to toolbar