-
Mark replied to the topic Possible Bug: When Displaying a Members Loop Above Cover Image on Member Profile in the forum How-to & Troubleshooting 8 years, 8 months ago
Hi @imath!
Interesting, I noticed the relation of those three entries were breaking the plugin/widget combination I was messing around with as a workaround. I ended up getting it to work by moving the code around in relation to those files. Took me forever though, lol. I am not a coder so have no clue what much of this stuff means but can move…[Read more]
-
Mark replied to the topic Possible Bug: When Displaying a Members Loop Above Cover Image on Member Profile in the forum How-to & Troubleshooting 8 years, 8 months ago
@djpaul Hi Paul,
I have no clue what that means! Will copy my details from this ticket into a bug report when I get a chance. It’s 3:22AM so I will do so probably tomorrow.
So I just pieced some code from Buddypress 2.5.0 (previously used code from 2.4.0 files during testing) files together using class-bp-core-whos-online-widget.php and…[Read more]
-
Mark started the topic Possible Bug: When Displaying a Members Loop Above Cover Image on Member Profile in the forum How-to & Troubleshooting 8 years, 8 months ago
Hi,
When trying to run a simple custom member loop (like the code example at bottom of page) on a member’s profile page, directly above their cover image header (determined it only happens when the custom loop code is ran anywhere before the <?php do_action( ‘bp_member_header_actions’ ); ?> section of that code ), it breaks the private mes…[Read more]
-
Mark replied to the topic Buddypress 2.5.0 Email Token to Display a Members Avatar in the forum Requests & Feedback 8 years, 8 months ago
Awesome, thanks so much! Keep up the great work Paul.
Best!
mark -
Mark replied to the topic Buddypress 2.5.0 Email Token to Display a Members Avatar in the forum Requests & Feedback 8 years, 8 months ago
Hey @djpaul!
Thanks for the quick reply. Basically I’d like to be able to include a clickable avatar of a member in the emails that are sent out instead of just an html link to their profile. Many community websites, online dating sites, etc., do this. For example, would be cool when a new member sends a friend request. Right now when a member…[Read more]
-
Mark started the topic Buddypress 2.5.0 Email Token to Display a Members Avatar in the forum Requests & Feedback 8 years, 8 months ago
Hi guys,
Great update, really like the new email features. I was looking through the email tokens and I was surprised to not see one that allows member avatars to be shown in email templates. Did I miss it? If not, any chance it can be added by me (non coder) or in a future update?
Best Regards,
Mark
-
Mark started the topic Need help converting PHP to run within my functions.php file. in the forum How-to & Troubleshooting 8 years, 9 months ago
Hi Everybody,
Hoping I can get one of you experts to chime in on this for me. I’m a newbie to coding and can’t figure out how for the life of me how to convert some PHP code to run within the functions.php file.
I want to plug it into my template via an action instead of copying and modifying yet another template file in my child theme.
The…[Read more]
-
Mark replied to the topic Display something different to male and female members based off xprofile values in the forum How-to & Troubleshooting 8 years, 9 months ago
Not sure what I was going for before but using the below code seems to do the trick, and it outputs things in a more efficient manner. If anybody knows an even cleaner way to do this, please let me know.
<?php
global $bp;
$args = array( 'field' => 'Gender', 'user_id' => bp_loggedin_user_id() );
$gender = bp_get_profile_field_data($args);if (…[Read more]
-
Mark started the topic Display something different to male and female members based off xprofile values in the forum How-to & Troubleshooting 8 years, 9 months ago
Hi,
I’m trying to display something different to male and female members on my site based off their selected xprofile value (created a gender field with male and female values) but can’t figure it out. I pieced the below code together after Googling around for awhile. I thought it would work but it simply echos ‘male’ twice on the page instead of…[Read more]
-
Mark replied to the topic Need help combining bp_has_members() values to customize members loop in the forum How-to & Troubleshooting 8 years, 9 months ago
Hi @slaffik,
Just got home and did some additional testing. It is working! This ticket can be resolved. Thank you so much for all your help, really appreciate it.
Best Regards,
Mark -
Mark replied to the topic Need help combining bp_has_members() values to customize members loop in the forum How-to & Troubleshooting 8 years, 9 months ago
Hi @slaffik,
Replacing
$custom_ids_str = 'include=' . implode(",", $custom_ids);
with$custom_ids_str = implode(",", $custom_ids);
orreturn $custom_ids;
seems to have resolved my issue! I have to run out the door so I plan on doing more testing when I get home, but so far I believe it is working. After I get home and do some thorough testing I…[Read more] -
Mark replied to the topic Need help combining bp_has_members() values to customize members loop in the forum How-to & Troubleshooting 8 years, 9 months ago
Hi @slaffik,
The code I am using on in my template is below. I am positive females are online as this is running on my local box and I have multiple female and male testing accounts that I am using for testing.
<?php
[Read more]
$user_ids = my_custom_ids( 'gender', 'female' );
if ( bp_has_members( array( 'type' => 'online', 'include' => $user_ids ) ) ) :… -
Mark replied to the topic Need help combining bp_has_members() values to customize members loop in the forum How-to & Troubleshooting 8 years, 9 months ago
Anybody else have any ideas as to why this function isn’t working?
Thanks!
-
Mark replied to the topic Need help combining bp_has_members() values to customize members loop in the forum How-to & Troubleshooting 8 years, 9 months ago
Hi @slaffik,
Thank you for helping me. Unfortunately, tried th function and it did not work. Do you have any ideas?
Regards,
Mark
-
Mark started the topic Need help combining bp_has_members() values to customize members loop in the forum How-to & Troubleshooting 8 years, 9 months ago
Hi,
I’m having a hard time accomplishing something that is probably really simple but I just don’t have the coding knowledge to figure it out. Basically I want to customize a members loop by combining multiple bp_has_members() functions.
I’d like to combine
<?php if ( bp_has_members( 'type=online' ) ) : ?>
and<?php if ( bp_has_members(…
[Read more] -
Mark replied to the topic Filter Profile Fields in the forum How-to & Troubleshooting 8 years, 9 months ago
Hi @klame,
I am a newbie at all this too. I discovered that the function you pulled off Buddypress.org doesn’t have to be modified to work. You have to simply copy and paste it in your functions.php file as/is without changing a thing. What matters and needs to be modified is the php to render the members loop on your page (e.g.,
<?php if (…
[Read more] -
Mark replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 8 years, 10 months ago
No problem @henrywright, thank you for your help. My coding experience is nil so it has been an interesting experience as I have to Google around for everything. It’s great to have this forum which is full of code snippets to use/modify and experts like yourself to ask for help when I hit a wall. Thanks!
-
Mark replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 8 years, 10 months ago
@henrywright Hi Henry, I was referring to this one:
if ( bp_is_groups_component() && bp_is_current_item( 'events' ) ) {
// Code.
}I had to use
bp_is_current_action( 'events' )
in place ofbp_is_current_item( 'events' )
-
Mark replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 8 years, 10 months ago
@henrywright Thanks Henry, unfortunately your function didn’t work either, however, you put me on the right track! Before speaking to you I had already sworn off
bp_is_groups_component()
. Interestingly enoughbp_is_current_action
is also needed alongside it to do what I need.Here’s what worked:
function wp_redirectauser() {
[Read more]
if (… -
Mark replied to the topic [Resolved] Conditional Tag to Target Specific Buddypress Group Page in the forum How-to & Troubleshooting 8 years, 10 months ago
@henrywright This conditional tag doesn’t seem to work for me. When a subscriber tries to access a specific tab within a group or their profile I want to redirect them to my sales page. I got this to work fine with the ‘events’ page on member profiles but not groups. Using
bp_is_groups_component()
redirects all group pages, not just the events…[Read more] - Load More
@markob17
Active 1 year ago