BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 24722

    Hi Richard,
    What is the post type name. ‘Concours’ is the label of that post type( seems to me as WordPress recommends using lower cases for the name )

    Also, If I understand it correctly, you want it for ‘post’ as well as ‘Concours’ both. Is that right?

  • Keymaster
    (BuddyDev Team)
    Posts: 24722
    Brajesh Singh on in reply to: Error when running BP Gallery with CanvaKala #763

    Hi George,
    Can you please PM me the login details. Seems like that plugin is premium and I can not check the code. Will look on your site and see what is causing this.

  • Keymaster
    (BuddyDev Team)
    Posts: 24722
    Brajesh Singh on in reply to: Ajax Registration with Social Login #757

    Thank you Milo.
    You helped improve this plugin and I am happy it is working now. Closing this topic. Please feel free to open new topic if you need any help 🙂

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24722
    Brajesh Singh on in reply to: Ajax Registration with Social Login #754

    Oops, a Php file should start with <?php //you code //your code

    If you missed the first php tag, These are the error you get. Sorry about this trouble.

  • Keymaster
    (BuddyDev Team)
    Posts: 24722
    Brajesh Singh on in reply to: Ajax Registration with Social Login #752

    In that case, please create one
    Here is a link to understand it.

    https://buddydev.com/docs/guides/guides/buddypress-guides/what-is-bp-custom-php/

  • Keymaster
    (BuddyDev Team)
    Posts: 24722
    Brajesh Singh on in reply to: Ajax Registration with Social Login #750

    Hi Milo,
    No problem 🙂
    Here is the code

    https://buddydev.com/support/forums/topic/ajax-registration-with-social-login/page/2/#post-738

    and bp-custom.php should be in your wp-content/plugins directory.
    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 24722
    Brajesh Singh on in reply to: Ajax Registration with Social Login #748

    Hi Milo,
    Did you put the code I posted here in your bp-custom.php?

  • Keymaster
    (BuddyDev Team)
    Posts: 24722
    Brajesh Singh on in reply to: [Resolved] Member Directory Template #744

    Hi eGuard,
    You can use the template on as many pages as you want. Just use bp_get_template_part() to include this file where you want.

    As you mentioned, the only thing that changes on different pages is the arguements passed to bp_has_members

    There are two ways to handle that. you write a function that returns appropriate arguements for each of these use and pass the returned value to bp_has_members()

    The second approach is to filter

    `bp_before_has_members_parse_args’ or ‘bp_after_has_members_parse_args’ and modify the argument based on the current page.

    Hope that helps.

    Will get back to you on the other topic a little late today.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24722

    Hi Richard,

    1. Yes

    2. Currently, I was not filtering for post types, so most probably you are checking for admin account and even the pages are being listed there. If you want to query only for a few post types, you will need to modify that query and add something liek this

    post_type =’post__type1′ || post_type=’post_type2′ etc. If you can provide me the post types you need, i will supply the complete query.

  • Keymaster
    (BuddyDev Team)
    Posts: 24722

    Hi Richard,
    Thank you for posting this.

    The problem with second approach is that while the url may be valid for newer comments/activity( if there are less than 20 activities), It won’t work if an activity goes out of the current page loop( being old enough). That’s why we are linking to the single activity thread.

    Does that clarify the use case or you still see the point in making it like the second one?

    I am open to suggestions and will love to improve the plugin