Search Results for 'wordpress'
-
Search Results
-
Topic: Child Theme Function PHP
Will someone please help a poor frustrated soul? I’m a total beginner at all things WordPress, Buddypress and even further, CSS, PHP, etc. and I think this is an easy question, I just can’t figure it out.
I’m trying to make my child functions.php override the parent one in Buddypress 1.6.4 Default theme, but I can’t get any of it to work and it’s driving me bananas. Using the following code in the parent functions.php, I was able to change the default “wordpress@yourwebsite.com” email address but that’s obviously not sustainable as any update with wipe it clean. How do I make it work in my child theme?
Thanks,
Carlos
function res_fromemail($email) {
$wpfrom = get_option(‘admin_email’);
return $wpfrom;
}
function res_fromname($email){
$wpfrom = get_option(‘blogname’);
return $wpfrom;
}
add_filter(‘wp_mail_from’, ‘res_fromemail’);
add_filter(‘wp_mail_from_name’, ‘res_fromname’);Topic: Friends Count
I was hoping someone could help me with this problem. I have WordPress 3.5.1 and Buddypress 1.6.4. The friends tab is displaying the wrong count when looking at a users profile. I have seen this problem recorded before and have tried all of the solutions suggested but none seem to work. If anyone has any insight or suggestions I would greatly appreciate it. Thanks in advance for your help!
HI there,
I’ve just set up a website as a wordpress multisite, and created a wordpress site.
Installed buddypress and network activiated it, but can’t see any evidence of it in my wordpress site? wondering have i missed something in the installation?
I’ve instsalled Buddypress 1.6.4 on a wordpress multisite version 3.5.1thanks
Derrick
Hi, I am using the code below found on this support page to have a new tab on the Member page. Inside it I want to display a certain post (I have the permalink) and to do that I need to transform the permalink into the post ID. In the WordPress Codex url_to_postid() does just that. But it doesn’t work on the Member page. It works like a charm everywhere else.
Surely I am doing something wrong.`
//Displaying a new tab
function my_test_setup_nav() {
global $bp;
bp_core_new_nav_item( array( ‘name’ => __( ‘test’ ), ‘slug’ => ‘test’, ‘parent_url’ => $bp->loggedin_user->domain . $bp->slug . ‘/’, ‘parent_slug’ => $bp->slug, ‘screen_function’ => ‘my_profile_page_function_to_show_screen’, ‘position’ => 80 ) );
bp_core_new_subnav_item( array( ‘name’ => __( ‘Home’ ), ‘slug’ => ‘test_sub’, ‘parent_url’ => $bp->loggedin_user->domain . $bp->slug . ‘/’, ‘parent_slug’ => $bp->slug, ‘parent_slug’ => $bp->slug, ‘screen_function’ => ‘my_profile_page_function_to_show_screen’, ‘position’ => 20, ‘item_css_id’ => ‘test_activity’ ) );
function my_profile_page_function_to_show_screen() {
//add title and content here – last is to call the members plugin.php template
add_action( ‘bp_template_title’, ‘my_profile_page_function_to_show_screen_title’ );
add_action( ‘bp_template_content’, ‘my_profile_page_function_to_show_screen_content’ );
bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );
}
function my_profile_page_function_to_show_screen_title() {
echo ‘something’;
}
function my_profile_page_function_to_show_screen_content() {//get the permalink
$url = get_bloginfo( url ).’/’.bp_get_displayed_user_username().’/post-name/’ ;//transform the permalink in ID and display post
$my_postid = url_to_postid( $url );
$content_post = get_post($my_postid);
$content = $content_post->post_content;
$content = apply_filters(‘the_content’, $content);
$content = str_replace(‘]]>’, ‘]]>’, $content);
echo $content;
}
}
add_action( ‘bp_setup_nav’, ‘my_test_setup_nav’ );`Everything works, I’ve tested it, the problem is with the url_to_postid() function. I am not using custom posts.
Thank you.
Wordpress: 3.5.1
buddypress: 1.6.4site url: http://alchemy-tm.com/register/
The problem is that, I can’t see any field under the “profile details” section.
because of that my register page is not working. when i click on submit nothing happens.
I have customized the register page to fit my custom theme. I have also tried the default buddypress theme to check if it shows there. but it doesn’t.i have the same setup on my local server. Where i have wordpress 3.5 and there i can see the “name(required)” filed under profile details.
I don’t know how to solve it. Please help 🙁
Topic: Friends count wrong
I am using Buddypress 1.6.4 and WordPress 3.5.1. I seem to have an issue with my “Friends” count. When looking at the tabs of the user the “Friends” tab shows 4 users but when clicking on the tab only 2 friends are there. I have seen this brought up on a few different occasions but none of the fixes I found have taken care of the problem. I have even tried to remove the number count completely but have also not found anything that works. Any help would be greatly appreciated. Thanks!
Hey guys, I’m working on a client’s site, just set up a fresh install of wordpress ( ) and buddypress ( 1.6.4 )
Everything went smoothly, integrated bbpress fairly well. But, I’ve got two test accounts going – a basic user, just registered him – he’s set as a “participant” for the forums and a “subscriber” for wordpress – I’ve tried making the account a contributor, and it still gave me no dice. Then I have the admin account that was created while installing wordpress.
The admin account can follow other users, post status updates, and send out private messages. But the test users that’s currently a subscriber, can reply to private messages, or send them out, nor can he post status updates, favorite status updates, or comment on status updates or public messages.
Is this an issue that’s well known, or am I the only one experiencing it?
Topic: Are you a human plugin
WordPress 3.5.1
BuddyPress 1.7 betaI have successfully installed a plugin to stop the bots from auto registering users but it is not working. http://areyouahuman.com/
I have read there support material related to BuddyPress but it is way too technical.
http://support.areyouahuman.com/customer/portal/articles/755585-using-playthru-with-a-buddypress-registration-form-I would appreciate anyone who can help me stop the bots from destroying my site:
http://homebusinessownersnetwork.com/Thanks,
DavidHi there, Bit of an odd question, this…
We have a website being set up that uses BuddyPress, Buddypress Group Email Subscription & a customised plugin to allow users to create a post with some custom fields (courtesy of Gravity Forms) & for all subscribed users to receive an email in digest form or if they prefer, an email whenever someone posts to the group they are subscribed to.
The functionality is all good for the digests etc. However, the users want to be able to see all the fields in their post – custom fields, the lot.
I have created a function that builds the email content using SQL. I tested using a page & passing $post_id as an integer.
However, when trying to add the functionality to the email-side of things, the point at which the post is added to the activity stream didn’t pull the custom fields from wp_postmeta. the data from wp_posts is fine, just nothing where the data from wp_postmeta should be.
I identified that it would work flawlessly if I tried to get the PREVIOUS posts content+metadata (I just did $post_id– as a test: When I submitted a post I got the previous posts’ data, metadata & all as expected.)
I can only conclude that wp_postmeta does have the relevant data in it when the post is added to the activity stream.
The following sequence of events is occurring when someone hits the “Submit” button when posting:
1. wp_posts is updated
2. post added to activity stream
3. wp_postmeta is updatedIf I could change the sequence of this, I’d be very happy!
Right now I’m only really focusing on the “All Email” aspect.@becskr kindly suggested that I should look in bp-subscription-activity-digest.php line 444 & add a call to my functionality there using a plugin, but when I just change variable $message to “TEST” (just to see if I can affect the email content), the content of the email does not change.
I’m just wondering if ALL Email is handled by a different function, as it sends a different type of email out, compared to a digest.
Is there a point at which the email is generated that I may be able to intercept & add my own little function before the email is sent? Does anyone know where that function is located?
Any advice appreciated, as always!
Version Numbers:
WordPress 3.5, BuddyPress 1.6.4, Group Email Subscription 3.3.1