Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'questions'

Viewing 25 results - 1,701 through 1,725 (of 2,230 total)
  • Author
    Search Results
  • #73274
    Xevo
    Participant

    @ Warzan

    I’m all for earning money on plugins/templates but I don’t want people offering their services on this forum, this forum is for questions about the main software, buddypress. If people want to earn for their efforts place it on your own blog for example or be like wpmu dev and ask a subscription fee.

    O yeah. https://wordpress.org/extend/plugins/wp-postratings/

    And I did add something to the topic, that it’d be more interesting if the plugin would support rating/voting on all components.

    newbie999
    Participant

    Hello again. I posted this question on a new topic, no responses. I’ll try asking the question here since I have received responses on this thread. Thank you. Here goes:

    I added the code below in wp-content/plugins/buddypress/bp-themes/bp-default/members/members-loop.php, to display additional profile fields in the member directory and to display the member’s role (either ‘Subscriber’ or ‘Provider’). In the code below, I specifically checked for the user’s role to determine whether I need to display ‘Subscriber’ or ‘Provider’.

    Questions:

    – is there a way to check for the capability instead – i.e., if the user can ‘edit posts’ then I will display ‘Subscriber’, otherwise I will display ‘Provider’? If so, can you please let me know how to do that as I have not been able to figure it out.

    – is there a way to display a newline so that ‘Subscriber’ or ‘Provider’ will display on the next line, below the member’s title and company name. I tried to echo “n” but it’s not outputting a newline and I have no idea why.

    Thank you for the help.

    <?php

    /***

    * If you want to show specific profile fields here you can,

    * but it’ll add an extra query for each member in the loop

    * (only one regadless of the number of fields you show):

    *

    * bp_member_profile_data( ‘field=the field name’ );

    */

    if( bp_get_member_profile_data ( ‘field=Title’ ) )

    echo bp_member_profile_data( ‘field=Title’ ), ‘ (‘, bp_member_profile_data( ‘field=Company’ ), ‘)’, ‘ – ‘;

    $user = new WP_User( bp_get_member_user_id() );

    if ( $user->roles[0] == ‘subscriber’ )

    echo ‘Subscriber’;

    else

    echo ‘Provider’;

    ?>

    newbie999
    Participant

    Hello again. I posted this question on a new topic, no responses. I’ll try asking the question here since I have received responses on this thread. Thank you. Here goes:

    I added the code below in wp-content/plugins/buddypress/bp-themes/bp-default/members/members-loop.php, to display additional profile fields in the member directory and to display the member’s role (either ‘Subscriber’ or ‘Provider’). In the code below, I specifically checked for the user’s role to determine whether I need to display ‘Subscriber’ or ‘Provider’.

    Questions:

    – is there a way to check for the capability instead – i.e., if the user can ‘edit posts’ then I will display ‘Subscriber’, otherwise I will display ‘Provider’? If so, can you please let me know how to do that as I have not been able to figure it out.

    – is there a way to display a newline so that ‘Subscriber’ or ‘Provider’ will display on the next line, below the member’s title and company name. I tried to echo “n” but it’s not outputting a newline and I have no idea why.

    Thank you for the help.

    <?php

    /***

    * If you want to show specific profile fields here you can,

    * but it’ll add an extra query for each member in the loop

    * (only one regadless of the number of fields you show):

    *

    * bp_member_profile_data( ‘field=the field name’ );

    */

    if( bp_get_member_profile_data ( ‘field=Title’ ) )

    echo bp_member_profile_data( ‘field=Title’ ), ‘ (‘, bp_member_profile_data( ‘field=Company’ ), ‘)’, ‘ – ‘;

    $user = new WP_User( bp_get_member_user_id() );

    if ( $user->roles[0] == ‘subscriber’ )

    echo ‘Subscriber’;

    else

    echo ‘Provider’;

    ?>

    #73002
    foxly
    Participant

    @Gene53, @ajohnson, @Tosh, @coffeeholic

    Okay, clearly there’s something wrong in the plugin code, so I’m going to have to figure out:

    a) What your systems have in common, and

    b) What’s different between your systems and my system (because obviously it works on my system …lol).

    So, some questions for all four of you:

    1) What OS is your server running on (linux, windows, etc)

    2) What OS is your browser operating on?

    3) What browsers have you tried, and what happened in them (Opera, Safari, FireFox, IE, and Chrome)

    4) What version of WP are you using. Is it single or MU?

    5) Do you have any other plugins running? What are they? Does it still crash when you disable them?

    6) Can you please post a copy of your wp error log file. Located in the /wp-admin/er-logs/ directory.

    7) Can you please post a copy of your apache error log file. If you’re testing on xampp it’s located in xampp/apache/logs/error.log If you’re testing on a web host, you’ll need to download or ask them for a copy.

    If you guys give us good debugging info, hopefully we can get this nailed in a couple of hours.

    Thanks!

    ^F^

    #73102
    foxly
    Participant

    @Gene53, @ajohnson, @Tosh, @coffeeholic

    Okay, clearly there’s something wrong in the plugin code, so I’m going to have to figure out:

    a) What your systems have in common, and

    b) What’s different between your systems and my system (because obviously it works on my system …lol).

    So, some questions for all four of you:

    1) What OS is your server running on (linux, windows, etc)

    2) What OS is your browser operating on?

    3) What browsers have you tried, and what happened in them (Opera, Safari, FireFox, IE, and Chrome)

    4) What version of WP are you using. Is it single or MU?

    5) Do you have any other plugins running? What are they? Does it still crash when you disable them?

    6) Can you please post a copy of your wp error log file. Located in the /wp-admin/er-logs/ directory.

    7) Can you please post a copy of your apache error log file. If you’re testing on xampp it’s located in xampp/apache/logs/error.log If you’re testing on a web host, you’ll need to download or ask them for a copy.

    If you guys give us good debugging info, hopefully we can get this nailed in a couple of hours.

    Thanks!

    ^F^

    #72842
    Paul Wong-Gibbs
    Keymaster

    Right place, but there’s lots of people with questions here and only so many answers and time to answer them.

    I’m assuming that you’re using BP Default theme on a blog which is not the main blog on a WPMU install?

    #72942
    Paul Wong-Gibbs
    Keymaster

    Right place, but there’s lots of people with questions here and only so many answers and time to answer them.

    I’m assuming that you’re using BP Default theme on a blog which is not the main blog on a WPMU install?

    Nahum
    Participant

    @jivany oh yea wpmu. so all i need to do is turn on the create a blog option and all my members will automatically have blogs….and they’ll have non-editable username domains? Sounds too good to be true.

    my questions were more for getting legacy members outfitted with blogs after the fact. I don’t want to turn on the create a blog option just yet, i’m actually working towards bundling the option into 1. User signs up and they auto have a blog with their user name as their domain. I know i could remove the “just a username” button leaving the gimme a blog and that I think auto gives the user a blog with username as domain. that’s all good…

    I’m refering to mass editing all those older members to give them blogs, without having to do it 1×1 or asking them to do it. there’s a couple of premium plugins that sound my do the trick but I just don’t know if they create blogs for existing members.

    I’ve been to the mu forums…just trying to see if anyone here has tried something like this.

    Nahum
    Participant

    @jivany oh yea wpmu. so all i need to do is turn on the create a blog option and all my members will automatically have blogs….and they’ll have non-editable username domains? Sounds too good to be true.

    my questions were more for getting legacy members outfitted with blogs after the fact. I don’t want to turn on the create a blog option just yet, i’m actually working towards bundling the option into 1. User signs up and they auto have a blog with their user name as their domain. I know i could remove the “just a username” button leaving the gimme a blog and that I think auto gives the user a blog with username as domain. that’s all good…

    I’m refering to mass editing all those older members to give them blogs, without having to do it 1×1 or asking them to do it. there’s a couple of premium plugins that sound my do the trick but I just don’t know if they create blogs for existing members.

    I’ve been to the mu forums…just trying to see if anyone here has tried something like this.

    jivany
    Participant

    Basically, check your register.php main loop and only show the groups you want to show.

    You’re looking for the while loop after the bp_is_active( ‘xprofile’ ) call.

    Within the loop, you can filter out groups by doing a simple if check using if (bp_the_profile_group() == "group number") where group number is the number of the group you want to show.

    Similar sort of idea in this thread: https://buddypress.org/forums/topic/profile-fields-questions

    jivany
    Participant

    Basically, check your register.php main loop and only show the groups you want to show.

    You’re looking for the while loop after the bp_is_active( ‘xprofile’ ) call.

    Within the loop, you can filter out groups by doing a simple if check using if (bp_the_profile_group() == "group number") where group number is the number of the group you want to show.

    Similar sort of idea in this thread: https://buddypress.org/forums/topic/profile-fields-questions

    #72646
    akingston47
    Participant

    I’m pretty new to Buddypress but thinking about implementing S2Member as well. It looks very good but one thing I’m trying to do is allow my premium members to display more information about themselves than free members.

    I think I might be able to restrict free members from accessing a certain field group in their profile so that they just can’t submit the particular details such as Location and Occupation but that seems a little messy.

    I’m trying to setup a directory based site for Alternative Therapists such as Reflexologists, Nutritional Therapists, Accupunctuists, Yoga Teachers, etc, etc. I’m doing it for a client and she really likes the idea of having a social network side to the site as well because the therapists will be interested in networking with eachother and their potential clients (free members) will also be able to find them and ask questions or just read what they have to say.

    Unfortunately, however, because the search functionality in Buddypress seems quite limited not only is it difficult to narrow down a search for a particuar kind of therapist in a particular location, but it also doesn’t seem possible using S2Member to show only premium members.

    I’m thinking I might either have to scrap the idea of using Buddypress or else integrate separate directory pages but if I do that it probably won’t be very easy to tie their details for each system together.

    Sorry for the long post – but said it was best to explain it fully to see if anyone has any experience of trying to do something similar or has any good advice.

    #72094
    jordashtalon
    Member

    Oh and how would you limit the amount of activity shown?

    Is there a post which discusses the type of questions i’m asking? I couldn’t find one.

    joshmac
    Participant

    @DJPaul, oooh, that is a nice setup.

    Paul Wong-Gibbs
    Keymaster
    #72017
    dre1080
    Member

    cool, thanks! 2 more questions

    1) how do you get to show a list of all the tracks that have been posted?? not the activity but just the tracks..can this be done?

    2) any idea if i wanted it to pick up when i wrote a ‘#’ in the post form?? like i wrote #artist and it turns the #artist into a link for that artist..? like how the @ mention works…

    Jeff Sayre
    Participant

    Lots of questions to address, so I’ll do it in the order they were posed.

    @stwc

    On the BP install I’m currently working on, the following long list of plugins (all of which seem to be working flawlessly activated non-sitewide) do not even offer the option for Site-wide Activation.

    Is there a reason (or reasons) for that? Is there any possible downside? Or are they fine the way they are?

    These plugins should work fine whether or not they are activated sitewide. However, there are two reasons why a BP plugin should be tagged to activate sidewide automatically:

    1. Because they are BuddyPress-dependent plugins and require BuddyPress to work. Since Buddypress operates sitewide, then all add-on plugins are sitewide-acting by implicit reference.
    2. By virtue of the first point, only Site Admins should have access to any plugin configuration. Offering all members with blogs access to these BP-dependent plugins in their admin dashboard only creates confusion as these plugins are for BuddyPress only and not for WordPress blogs.

    ______________


    @hnla

    So for clarity if one adds ‘Site Wide Only: true’ to pluginin files main description then it forces site wide activation regardless of whether one chooses to activate normally non site wide

    This is correct. When the Site Wide Only tag is set to true, it does not matter which activation link is clicked as either action will result in sitewide activation. In fact, for all BP plugins I test, I simply click the “Activate” link right under the plugin name and not the “Activate Site Wide” link. If the plugin then shows under the Site Wide listing of plugins, I move on. If it does not, then I know that the plugin author failed to set the tag properly.

    Edit/ found a plugin that already had ‘Site Wide Only: true’ set yet does not activate site wide using the plain activate link placing it self in the site wide section unlike bp-links. Is there something else that must be set to enable the site wide activation link or the ability to force the plugin to activate site wide?

    Not that I am aware. It might be that the plugin has two Site Wide Only tags and there is a conflict. To which plugin do you refer?

    ______________


    @MrMaz

    Still unsure if I should add this tag to my plugin header. Shouldn’t it be up to the site admin to decide how the plugin is activated?

    See my response in this post to @stwc. Since your plugin requires BP to operate, there is no value in letting non-admin members have access to your plugin via their blog dashboard. The more you can do to make installation, activation, and operation of your plugin foolproof the better. Is there actual functionality that your plugin offers if activated non-sitewide? What features of your plugin even make non-sitewide activation a desirable option to Site Admins?

    ______________


    @hnla

    In an ideal world I would like BP installed much as is but described differently but along with BP are installed a series of modules that can be activated or not by admin but that these are only activated from within BP so to speak always sitewide as BP is these modules representing some essential core set of features

    I agree completely. I always refer to BuddyPress as a plugin suite but that never sat quite right with me. BuddyPress is a feature-rich platform as far as I’m concerned. It transcends the idea of a simple WordPress plugin. I also agree that many of the BP “plugins” are best described as modules as well. In fact, I consistently refer to my privacy “plugin” as the BuddyPress Privacy Component to separate it from the idea of it being just another plugin.

    I could see the possibility of BuddyPress modules having their own set of 3rd-party plugins. So BuddyPress > 3rd-party BP modules > 3rd-party module plugins.

    I also like your idea of requiring that all BP-dependent “plugins” get activated within a BuddyPress dashboard–instead of outside of BP. That could take care of all activation conflicts.

    In my version of an “ideal BP world”, BuddyPress would become the foundation of the WordPress ecosystem as it is a user-centric platform and not blog centric. WordPress then would be a layer that sits on top of BuddyPress and could be activated if desired. So, Site Admins would install BuddyPress and then could check a box to install WordPress (in single or multisite mode), bbPress, and other modules.

    Now I’m taking this thread too far of topic. ;)

    #71726
    Gene53
    Participant

    Hi Brajesh,

    Thank you, everything works fantastically well and I’m really grateful that you went out of your way to help me out.

    Thanks again,

    Gene

    p.s. I read other similar questions on these forums and I hope this thread will help out other members.

    #71653
    jivany
    Participant

    Redirect to User’s Profile Page on Login

    Place the following snippet in either wp-content/plugins/bp-custom.php or in your child theme’s functions.php file.

    function oci_login_redirect($redirect_to, $set_for, $user){
    $redirect_to = bp_core_get_userurl($user->id);
    return $redirect_to;
    }
    add_filter('login_redirect', 'oci_login_redirect', 10, 3);

    From https://buddypress.org/forums/topic/two-questions-about-the-login-process#post-8380

    (alternate method)

    Use Brajesh’s plugin (which does basically the same thing as above):

    https://wordpress.org/extend/plugins/bp-redirect-to-profile/

    #71652
    jivany
    Participant
    #71597
    Gianfranco
    Participant

    jivany, thanks a lot for taking an interest in this. I appreciate.

    I eventually ended up re-arranging things to have the best with what BP provides (limitations?).

    But I will test the above code and see if I get want I wanted.

    I’ll report later.

    Thanks.

    ;-)

    #71592
    jivany
    Participant

    @gian-ava: For your second question, check out this post https://buddypress.org/forums/topic/faq-how-to-code-snippets-and-solutions#post-13243

    I haven’t tried this but it would suggest you could do something like:

    <?php if ( bp_has_profile('profile_group_id=9') || bp_has_profile('profile_group_id=7') ) : ?>
    <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    <div id="widget1">
    <?php if (bp_the_profile_group() == "9") : ?>
    // Do whatever you want with group 9
    <?php endif; ?>
    <?php if (bp_the_profile_group() == "7") : ?>
    // Do whatever you want with group 7
    <?php endif; ?>
    </div>
    <? endwhile; ?>
    <?php endif; ?>

    The only part I’m not sure about is if you need the first call to bp_the_profile_group() on the second line (after the start of the while loop).

    #71535
    jivany
    Participant

    I took another look at this and I think I have a potential solution.

    You can filter xprofile_get_field_data and make sure that the return value is not a blank or some other non value. The downside of this method is I think you would need to then set the returned string to a known value that indicates it is not populated. The only reason I say this is ideally, you probably want to make bp_custom_get_member_list_xprofile_data return FALSE if the string is blank but I don’t think you can do this within the filter.

    As for your second issue, a really hallf-assed way to do it is with two loops. I’m sure there’s a more elegant way but I’ve never written elegant code. ;)

    That said, I don’t see a way to dump out two groups in one loop but I’m not very familiar with this code.

    5947865
    Inactive

    http://wpquestions.com/ maybe create something like this? =)

    #71507
    jivany
    Participant

    Yes, but your custom_xprofile call just does an “echo”. echo will always return something. Something might be a string or it might be a blank but it will always return something. You can’t test a function return value if you aren’t returning a value. Inside custom_xprofile, you need a “return TRUE” or something like that to be able ot use it in a boolean logic check that the if does.

Viewing 25 results - 1,701 through 1,725 (of 2,230 total)
Skip to toolbar