Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 6,026 through 6,050 (of 32,678 total)
  • Author
    Search Results
  • #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?

    #257088

    Topic: Groups creation

    in forum Showcase
    andyeuph
    Participant

    Wordpress version – 4.5.3 running suffusion theme
    Buddypress version – 2.6.1.1
    Web address http://www.theeuphonium.com

    On the groups page the ‘groups’ button does not allow the creation of groups, even when logged in as admin. The only way I can create a group as an admin is to go to the dashboard and do this from there. I would like users to be able to create their own groups. Even when logged in as a contributor who has that role allowed, this is not possible as the add group function does not appear in their dashboard, and the add group button does not work on the groups page. Also on both the groups and member pages the search bar is cut off at the top so is not useable.
    Thanks
    Andy

    #257084
    thilina82
    Participant

    Hi,

    I am new to wordpress and launced a buddypress site recently.

    I want to customize the registration confirmation text and the text on the top of registration page “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.”.

    I changed and saved both text in the register.php file but no effect. Register page still shows the old Text. I tried deactivating BuddyPress and re-activating again. even that did not help.

    I am using BuddyPress 2.5.3 with BuddyBoss theme version 2.1.3

    Appreciate your help to solve this. Thanks in Advance.

    Thilina.

    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,

    tajanator
    Participant
    I have wordpress version: 4.5.3
    All plugins / themes are currently up to date.

    Not sure why, but none of my profiles will load. I don’t seem to be having any other issues, that I can see. But when you click on anyone’s “profile” including your own, it just loads and eventually gives up loading followed by this error message:

    The tajanator.com page isn’t working
    tajanator.com redirected you too many times.

    I am not sure what to do with this. I have tried disabling plugins to see if something was distrupting the buddypress plugin, but that didn’t change anything.

    The members page loads just fine if you want to test my issue out:
    http://tajanator.com/members

    Anyone have any idea what is going on here?

    #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

    black6f7574
    Participant

    How can I restrict access (to a role or an user) to Buddypress’ private messaging system? I was trying to use the current_user_can WordPress function, but it requires the capability as the argument. The problem is that buddypress doesn’t make use of any sort of role. So, what would be the right way to do it?

    biginternational
    Participant

    I work for a UK organisation and we are building a new computer games marketplace for a our retail devision and they predict large volumes of traffic from the offset. We have a dedicated server ready for hosting and we are planning to use your BuddyPress plugin along with WooCommerce. On speaking with an external PHP developer we use today he noted that on heavy traffic sites WordPress and plugins will struggle with a bottle neck being caused. Whats the maximum visitors you can have on a site using your plugin and wordpress before the system becomes slow and slugish and potentially damaging our brand with a poor experience. Any advice with potential limitations would be greatly appreciated we want to provide our loyal gaming community customers with a great social hangout space for communicating. cheers Paul

    #257034
    anthlon
    Participant

    Hi, I’m using Buddypress (2.6.1.1) and LearnDash (2.2.1.1) and the BuddyPress for LearnDash add-on (1.1.0.0) with WordPress (4.5.3) to create a website that allows users to learn more about certain subjects and also gives them a place where they can speak about the content that’s on the website, for this I decided to use BuddyPress since it’s Activity Feed and use of Groups seemed like a very good fit for what I was looking for.

    I’m having a bit of trouble getting comments made on the LearnDash Courses appearing in the BuddyPress Activity feed, I was following this:
    Post Types Activities Page
    When I add:
    add_post_type_support( 'sfwd-courses', 'buddypress-activity' );
    to bp-custom.php the creation of a new course is posted to the activity feed, however you can’t comment on it from the activity feed and comments on the Course Page don’t show on the Activity Feed.

    Adding the function Customize_page_tracking_args() to my bp-custom.php also doesn’t change anything and I’m still told that “Admin has added a new item”
    Activity Feed Post

    Pastebin of bp-custom.php

    #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().

    #257003
    NicolasGruwe
    Participant

    Hi !

    I’m asking if it’s possible to set wordpress posts publics and visible by anyone ? Event the non logged-in users.

    I have a public blog in my site but posts are actually not accessible, thx !:)

    #256996
    znitsarn
    Participant

    WordPress 4.3.5
    BuddyPress 2.6.1.1
    Issue happens with all themes, including default.

    Emails are not sending when a user registers, but if I go into wordpress users and resent email then it does it.

    Tried two “test email” plugins so far and both work.

    Any idea what it could be?

    #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.

    #256986
    lucio463
    Participant

    Hello, I am new to WordPress and BuddyPress and worried about safety, then wanted to know if it is common to find plugins that share data / stealing / etc, and how to find it. In particular was doubt in a plugin, BuddyPress Follow (https://br.wordpress.org/plugins/buddypress-followers/)

    #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.

Viewing 25 results - 6,026 through 6,050 (of 32,678 total)
Skip to toolbar