-
Henry Wright replied to the topic How would I filter the text from the favorite button? in the forum How-to & Troubleshooting 12 years ago
@godavid33 sounds like a good idea. Better to be safe than sorry!
-
Henry Wright replied to the topic How would I filter the text from the favorite button? in the forum How-to & Troubleshooting 12 years ago
@godavid33 good to see you figured it out. Just a question: Why do you need to use
wp_ajax_nopriv_when members must be logged in to favorite an item? -
Henry Wright replied to the topic Make Amen plugin BuddyPress compatible in the forum Third Party Plugins 12 years ago
Should be:
add_action( 'actual_hook_name', 'add_prayer_request_to_stream' );It was late when I wrote that reply! 🙂
-
Henry Wright replied to the topic Make Amen plugin BuddyPress compatible in the forum Third Party Plugins 12 years ago
Good spot! They are backwards. If Amen doesn’t have a hook available you could always ask them to add one.
-
Henry Wright replied to the topic Make Amen plugin BuddyPress compatible in the forum Third Party Plugins 12 years ago
I’m guessing I’ll have to use a hook of some kind to accomplish this
You’re right. But the hook would be supplied by the Amen plugin. You could start by asking the plugin’s support if one is available. I’m guessing here but it will probably be called something like
after_submit_prayer_request.Then you’d build your own function which you can ‘ho…[Read more]
-
Henry Wright replied to the topic How would I filter the text from the favorite button? in the forum How-to & Troubleshooting 12 years ago
Take a look at
bp_dtheme_mark_activity_favoriteandbp_dtheme_unmark_activity_favoritein bp-themes/bp-default/_inc/ajax.php -
Henry Wright replied to the topic Permalink Structure in the forum How-to & Troubleshooting 12 years ago
Hey @mcpeanut
Hopefully your new server is working well for you! Just thought I’d give an update on how mine is going.
I went for the managed option to try to save a little time but that was a mistake. I should have opted for the root server because 1and1 refuse to make any changes to the config of the managed servers. I should have guessed that…[Read more]
-
Henry Wright replied to the topic Changing the layout of the registration page in the forum How-to & Troubleshooting 12 years ago
Take a look at this article from the BP Codex on the Template Hierarchy:
To summarise, you’d create a folder called /buddypress/ in your theme’s directory. Then a subfolder called ‘members’. Then a file called ‘index-register.php’. You should end up…[Read more]
-
Henry Wright replied to the topic report user report abuse flag something? in the forum Creating & Extending 12 years ago
Hi @djsteveo
I don’t know of a plugin that can do this but if one was to be built, it would need the following parts:
The button which does the flagging: The most stylish way for the button to work would be through AJAX. Like a toggle button. If the reporting user clicks by mistake then they can undo the flag by clicking again. Would the…[Read more]
-
Henry Wright replied to the topic No of posts in stream in the forum How-to & Troubleshooting 12 years ago
@scifikriss glad you got it working! This is what I would have done:
if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&per_page=15' ) ) {
// code
}Sorry I’m a few hours too late 🙂 – I think that should work but its untested.
-
Henry Wright replied to the topic No of posts in stream in the forum How-to & Troubleshooting 12 years ago
You can set a
per_pageparameter when you use thebp_has_activities()function. See here for more info: https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/ -
Henry Wright replied to the topic buddypress not sending activation email in the forum Installing BuddyPress 12 years ago
Are you sure the email is failing to send? Could the email have arrived in the user’s spam mailbox?
-
Henry Wright replied to the topic Image on social networks when post shared in the forum How-to & Troubleshooting 12 years ago
Check out Facebook meta tags or ‘open graph’ as Facebook likes to call them:
-
Henry Wright replied to the topic Add ad code into activity stream in the forum Creating & Extending 12 years ago
@bhekzin actually, instead of adding the ad as an activity item, you could just modify the activity loop to insert the ad dynamically on every 8th item. This is how you’d do that using a
forloop:for ( $i = 1; $i < 1000; $i++ ) {
if ( $i % 8 == 0 ) {
// this is the 8th item so insert your ad code
}
} -
Henry Wright replied to the topic Add ad code into activity stream in the forum Creating & Extending 12 years ago
@bhekzin you’ll need to decide if you’re going to add an ad after X number of items have been added to the stream or if you’re going to add an ad every X number of seconds (or minutes, or hours). If you choose the interval approach, check out
wp_schedule_eventhttps://codex.wordpress.org/Function_Reference/wp_schedule_event
-
Henry Wright replied to the topic Add ad code into activity stream in the forum Creating & Extending 12 years ago
There’s a function you can use to do that called
bp_activity_add(). See here for the usage: -
Henry Wright replied to the topic Custom classes for profile pages, possible? in the forum How-to & Troubleshooting 12 years ago
@jerryskate great! glad you got it working 🙂
-
Henry Wright replied to the topic Custom classes for profile pages, possible? in the forum How-to & Troubleshooting 12 years ago
OK, I think I might know what is happening. Try this as the whole thing put together:
function add_body_classes( $classes ) {if ( bp_is_member() ) {
$classes[] = 'this-is-a-member-profile';
$classes[] = 'member-profile-of-' . bp_get_displayed_user_username();
}return $classes;
}
add_filter( 'body_class',…[Read more] -
Henry Wright replied to the topic Custom classes for profile pages, possible? in the forum How-to & Troubleshooting 12 years ago
In bp-custom right after the line
$classes[] = 'member-profile-of-' . bp_displayed_user_username();add this:
return $classes; -
Henry Wright replied to the topic Custom classes for profile pages, possible? in the forum How-to & Troubleshooting 12 years ago
@jerryskate if you could post your filter (what you have in bp-custom) and your body tag (from your header.php) i’ll take a look…
cc @modemlooper @hnla – anyone for some healthy foods from the food-pyramid guy? I prefer a good old fashioned burger and fries myself 🙂
- Load More
@henrywright
Active 2 years, 1 month ago