-
Henry Wright replied to the topic in the forum Henry Wright 12 years, 3 months ago
User meta is great for saving a key and value to a user’s ID in the database. For example, user with ID 385 might have a favourite colour. You could then use usermeta to save this info:
User ID: 385
Key: colour
Value: purpleupdate_user_meta( '385', 'colour', 'purple');The database description can be found…[Read more]
-
Henry Wright replied to the topic HTML Showing Up in Profile Pages in the forum How-to & Troubleshooting 12 years, 3 months ago
function remove_xprofile_links() {
remove_filter( ‘bp_get_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 9, 2 );
}
add_action( ‘bp_init’, ‘remove_xprofile_links’ );This function above (called remove_xprofile_links) and it’s hook to bp_init might be what you need to remove. Try removing all of the above from bp-custom.php
-
Henry Wright replied to the topic HTML Showing Up in Profile Pages in the forum How-to & Troubleshooting 12 years, 3 months ago
Humm, I’ll have to look into it to see exactly what’s going on here.
-
Henry Wright replied to the topic HTML Showing Up in Profile Pages in the forum How-to & Troubleshooting 12 years, 3 months ago
I think
xprofile_data_value_before_saveis the hook you want to use. So, if you add this to functions.php your xprofile fields will accept HTML:remove_filter( 'xprofile_data_value_before_save', 'xprofile_sanitize_data_value_before_save', 1, 2 );Note: Use this with caution. Not sanitizing incoming data is dangerous so you will need to…[Read more]
-
Henry Wright replied to the topic Display post count in sidebar for author ID in the forum How-to & Troubleshooting 12 years, 3 months ago
@natehawkes right, I see… Yes, somebody in the bbPress forum should be able to help!
-
Henry Wright replied to the topic Display post count in sidebar for author ID in the forum How-to & Troubleshooting 12 years, 3 months ago
-
Henry Wright replied to the topic HTML Showing Up in Profile Pages in the forum How-to & Troubleshooting 12 years, 3 months ago
Did this happen in 1.9? Or just 1.9.1?
-
Henry Wright replied to the topic Excluding Roles from the Member's Directory. in the forum How-to & Troubleshooting 12 years, 3 months ago
@somethingelse doing
if ( $wp_user->roles[0] == 's2member_level3' )inside the loop is great but you might find your pagination doesn’t take your condition into account. For that you’ll need to hook into thebp_ajax_querystringfilterSee the technique in action on the BuddyDev…[Read more]
-
Henry Wright replied to the topic Can you theme bp-legacy/buddypress-functions.php? in the forum How-to & Troubleshooting 12 years, 3 months ago
@hnla right! I’ll give it a go. Thanks Hugo.
-
Henry Wright replied to the topic Formatting the Activity Feed in the forum Creating & Extending 12 years, 4 months ago
You can do that using the advanced template hierarchy introduced in BP 1.8. Check out:
-
Henry Wright started the topic Can you theme bp-legacy/buddypress-functions.php? in the forum How-to & Troubleshooting 12 years, 4 months ago
I’m trying to find out if it is possible to move the
bp-legacy/buddypress-functions.phpfile to your theme directory so that it isn’t overwritten on each upgrade.Has anyone done that?
-
Henry Wright replied to the topic Best Captcha & Spam Protection for BUDDYPRESS? in the forum How-to & Troubleshooting 12 years, 4 months ago
Also, rename your ‘register’ page to something else. Lots of spam bots look for
/register/so something as simple as/register-page/will help hide your sign up form from at least a few of the bots. -
Henry Wright replied to the topic Best Captcha & Spam Protection for BUDDYPRESS? in the forum How-to & Troubleshooting 12 years, 4 months ago
@wpdragon have you tried Akismet? I’ve found that to work well as part of your overall spam fighting strategy.
-
Henry Wright started the topic Housekeeping after delete-acount in the forum How-to & Troubleshooting 12 years, 4 months ago
Does anyone know what is ‘cleaned up’ after a user deletes their account via
members/username/settings/delete-account?I mean what gets removed?
their blog posts
their blog comments
their activity (comments, updates, favorites etc)
private messages
friend relationships
their avatar
anything else?I’m trying to come up with a list of…[Read more]
-
Henry Wright replied to the topic BuddyPress 2014 Survey in the forum Requests & Feedback 12 years, 4 months ago
@modemlooper – Wonder why this thread reads “Last activity: 1 year, 1 month ago”?
Update: Well it did before I posted 🙂
Survey done!
-
Henry Wright replied to the topic bp_get_the_thread_recipients() math is wrong in the forum How-to & Troubleshooting 12 years, 4 months ago
@colabsadmin agreed!
You could raise a Trac ticket for this?
https://buddypress.trac.wordpress.org
Alternatively you could create your own version on
bp_get_the_thread_recipients()– which is what I did. -
Henry Wright replied to the topic bp_get_the_thread_recipients() math is wrong in the forum How-to & Troubleshooting 12 years, 4 months ago
I think the wording here is the problem, not the math.
‘recipients’ would be far better is if said ‘participants’. There’s no real need for the ‘and you’ bit. That part is obvious as you know you’re in the conversation 🙂
@henrywright
Active 2 years, 1 month ago