Forum Replies Created
-
In reply to: bp_get_member_type() is not working in the loop
Or better still, what does
var_dump( $type );show you?In reply to: bp_get_member_type() is not working in the loopI set up two types (‘kw’ & ‘max’) so what i want to achieve is that the echo $type; prints ‘kw’ or ‘max’ depending on what the user is.
That’s great, but what does
echo $typeactually print to screen? For example:<?php do_action( 'bp_before_directory_members_list' ); ?> <ul id="members-list" class="item-list" role="main"> <?php while ( bp_members() ) : bp_the_member(); ?> <?php $user_id = bp_get_member_user_id(); $type = bp_get_member_type( $user_id ); echo $type; ?>In reply to: How to remove ajax request from post activity?Hi @chatty24
The JavaScript that carries out the Ajax request listens for a click on
#aw-whats-new-submit. Whilst it might not be the most elegant solution, you could just change this ID in your template file and the JS won’t execute.In reply to: bp_get_member_type() is not working in the loopThanks for providing your code. Are you printing
$typeto screen? What do you get when you doecho $type;?In reply to: [Resolved] Extended Profile InfoGreat to hear you got things working!
In reply to: Broken Links [Resolved]Hi @jessy-marco
Thanks for pointing this out. I’ve opened a Trac ticket to try to get this fixed.
In reply to: bp_get_member_type() is not working in the loopOut of interest, can you try
echo bp_get_member_type( bp_get_member_user_id() );Perhaps there’s a weird character in the code you’ve written. That’s all I can think of?
In reply to: [Resolved] Extended Profile InfoHi @format19
These are the capabilities that admins have which editors don’t:
- activate_plugins
- create_users
- delete_plugins
- delete_themes
- delete_users
- edit_files
- edit_plugins
- edit_theme_options
- edit_themes
- edit_users
- export
- import
If you’re not comfortable granting full admin rights, then perhaps you could cherry-pick these? As you probably know,
the add_cap()function will add capabilities to a given role.In reply to: bp_get_member_type() is not working in the loopIn that case, your code should work. There must be something weird happening causing it to not work.
In reply to: Custom Post TypeI’m not sure I understand what you mean by “posted a new taxonomy”?
In reply to: bp_get_member_type() is not working in the loopThe fact that hard-coding the user ID works indicates the problem is with
bp_get_member_user_id(). Can you echo it to screen to see what value it returns? And sorry to double-check but are you sure you’re using it within the members loop?In reply to: bp_get_member_type() is not working in the loopThat’s strange.
bp_get_member_user_id()will get you the member’s ID if it’s used within the loop. Your code looks sound to me so I’m puzzled as to why this isn’t working.In reply to: Buddypress 2.2 and Links page@hnla that’s even more of a good idea if the site in question has many plugins installed. There’s simply no way of knowing how some plugins will interact with a new version of BP unless they’ve been tested. My advice is, don’t rely on the plugin developer to do it. Instead, set up a test install and do it yourself! Before go live.
In reply to: Add Friend only with Admin RoleHi @jeremy_lv
Unfortunately, the functionality you describe isn’t available in BuddyPress currently. You could try opening a topic in the Ideas forum. Alternatively, you could attempt coding it yourself or perhaps search for a plugin in the WordPress Plugin Directory.
If you decide to go-it-alone and code yourself, then feel free to open a new topic here for each specific question you may have.
Hope this info helps!
Hi @disha76
P2 is made by Automattic so you can be sure the theme is of the highest quality. Whilst I haven’t tried it myself, I’ve heard it offers some great features such as inline comments and real-time updates. If you notice a problem with it, then try opening a support ticket on their support forum.
Hope this helps 😀
In reply to: BP 2.2 Broke Chat and MessengerHi @scaffies
Thanks for the report. Whilst this won’t resolve the issue, it might be worth mentioning that the BuddyPress team don’t reach out directly to plugin developers before each update. However, developers that choose to integrate their plugin with BuddyPress are urged to check the blog for important updates on upcoming releases. Beta versions and release candidates are made available which allow for some testing time before ‘go live’.
Hope this info helps.
Now, on to the issues at hand. Is it possible to provide a link to the Chat and Messenger plugins? I’ll try to take a look to see what the issue could be.
In the mean time, please try to let these developers know (via their support channels) there’s an issue and hopefully they’ll be able to look into a hotfix if one is needed.
In reply to: Display more profile fields in member listSOLVED, again, thank you
Great 😀
In reply to: Display more profile fields in member listTake a look here for how it’s done in the default template.
In reply to: Display more profile fields in member listYou should have given a field name when you created the field in the back-end?
In reply to: Sitewide Activity Feed CSSHi @mrjarbenne
Using Twenty Fifteen with just BuddyPress and BuddyPress follow activated, I can’t seem to reproduce the problem. Can you provide some details of your set-up and open a Trac ticket so that it can be investigated? With the default theme and no plugins things should work so I’m a little puzzled. The core dev team will know more.
In reply to: Display more profile fields in member list…as I don’ know diddly about php… where do I place it?
Ah OK. Take a look at the BuddyPress Template Hierarchy article which should explain how templates work in BP. You’ll need to create your own templates if your theme doesn’t already have them.
Hi @chatty24
Try:
function chatty24_no_html_activity( $content ) { // Remove all HTML tags from the content and return the result. return wp_filter_nohtml_kses( $content ); } add_filter( 'bp_activity_content_before_save', 'chatty24_no_html_activity' );Please note I haven’t tested.
In reply to: Display more profile fields in member listYou can use the following to do that.
bp_member_profile_data( 'field=the field name' );Be sure to replace the field name with your actual profile field name. Also note it must be used within the members loop.
In reply to: Need a plug-in for video chatHi @alexmoon
I’ve not seen a plugin that can do this but you may have some luck searching in the WordPress Plugin Directory.
In reply to: Public messageUnfortunately, this isn’t currently possible. You’d need to either a) find a plugin or b) write some custom code to do the job for you.