Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 4,226 through 4,250 (of 22,632 total)
  • Author
    Search Results
  • #257209

    In reply to: Featured Member Plugin

    mrjarbenne
    Participant

    I would suggest checking out this one, which will work for members, but can also be leveraged to feature other content as well:

    https://wordpress.org/plugins/cac-featured-content/

    #257205
    modemlooper
    Moderator

    This would be a lot of custom development. Read this post about consuming external API in WordPress http://ben.lobaugh.net/blog/46117/wordpress-interacting-with-external-apis

    #257202
    r-a-y
    Keymaster

    The Notifications %s string looks like it is available:
    https://plugins.svn.wordpress.org/buddypress/tags/2.6.1.1/buddypress.pot

    If you’re using a custom translation from a previous version, you need to merge your language files together. Here’s a quick tutorial I found on Google:
    http://www.marketpressthemes.com/blog/how-to-merge-two-po-files-using-poedit/

    You might also benefit from a translation that is already available here:
    https://translate.wordpress.org/projects/wp-plugins/buddypress

    #257192
    delfindelfin
    Participant

    How do I know if my server is able to write to the .htaccess file? The content of the file is:

    Options +FollowSymlinks
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    

    Still I have the same error. I think you are right, it’s a WordPress issue

    #257180
    r-a-y
    Keymaster

    I don’t believe this is a BuddyPress issue. When you change your permalinks, are you able to visit a regular WP post permalink? If not, it’s a WordPress issue.

    I would say make sure your server is able to write to the .htaccess file.

    Also, you might have to alter your .htaccess file to add the following to the top of the file:

    Options +FollowSymlinks

    #257171
    Paul Wong-Gibbs
    Keymaster

    Yes. There’s some sort of bug in the W3 Total Cache’s object cache file. Last time a few of us looked into it, we didn’t figure out what the problem was. However, we tested several other object cache loaders (I think https://github.com/tollmanz/wordpress-pecl-memcached-object-cache and https://wordpress.org/plugins/wp-redis/) and the problem did not exist. i.e. it’s a problem with W3TC.

    I don’t have any advice other than the unhelpful “don’t use W3TC for object caching”. 🙁

    #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

Viewing 25 results - 4,226 through 4,250 (of 22,632 total)
Skip to toolbar