Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 12,301 through 12,325 (of 32,686 total)
  • Author
    Search Results
  • Cassey’s Designs
    Participant

    Hiyya,

    Firstly.. My Info :
    WordPress Version 3.7.1
    BuddyPress Version 1.8.1
    Site : duffitness.com/coachportal/ – this site is private and only accessible by registered coaches, however I have attached an image of the title I am referring to.

    Okay, so I can activate new accounts with Google Chrome, Firefox, Opera and Safari but IE(8) redirects to login without activating…
    I can have users go to the activate page and enter the activation key but that is not very user friendly.
    I do receive this message when other browsers activate, but they do still activate the account…
    “Warning: unserialize() expects parameter 1 to be string, array given in /”mysitedirectory removed for privacy”/wp-content/plugins/buddypress-notifications-manager/loader.php on line 77”
    I did locate the source of this warning and I have attached a screenshot of the code…

    warning message

    However, Upon disabling the notifications manager plugin I found that this is not the source of the problem. I now get no errors with any of the other browsers but IE redirects to log in without completing the activation process when a user clicks the link from their email and then returns the error…
    “ERROR: Your account has not been activated. Check your email for the activation link.”
    …when attempting to log in.

    Thanks for any insight into this problem… (Go figure it’d be IE that decides to be difficult, lol)
    Cassey

    #175286
    Matt McFarland
    Participant

    Or you could just make your own theme and throw in the php 😉

    The following tutorial changed my life forever and I’ll never look back to the days I used much of the dashboard page editor at all:
    The ThemeShaper WordPress Theme Tutorial: 2nd Edition

    #175285
    Matt McFarland
    Participant

    Also just take a look at this: https://codex.wordpress.org/Function_Reference/wp_get_current_user;

    $current_user = wp_get_current_user();

    Then you can do:

    $current_user->user_login instead of wp_get_current_user()->user_login just in case. altho I think both would work.

    #175284
    Matt McFarland
    Participant

    You’re putting that in the page itself? Yeah you have to use a php file.

    You could use hanacode plugin https://wordpress.org/plugins/hana-code-insert/ to insert php

    #175283
    Matt McFarland
    Participant

    Great! the code I posted above should work then. I havent tested it but that will work if you’re using permalinks. becuase bp will do members/user_login/profile/ by default so you jsut need their user_login which you can ECHO out via the PHP using wordpress alone.

    #175282
    flexclique
    Participant

    I put this in the wordpress page on the text tab…

    <a href="/members/<?php echo wp_get_current_user()->user_login; ?>/profile/">
    <img src="http://mydomain.com/images/myprofile.png>
    </a>

    Nothing renders. I saw where you can’t run php from a page… could this be my issue?

    Matt McFarland
    Participant

    I’m trying to add og tags and inorder to do it I have to grab the content of a status update and the status update title (which would be so and so posted this and that so long ago) and put them in the <head> element.

    To do that, I need to grab the info before entry.php fires, but after bp_Head();

    I’ve scowerd your codex and can’t find any hint of how to do this.

    For wordpress I’d just do something like $post->post_title() and $post_post_content()
    .. super easy!!!

    How can this be done with bp posts? You know bp stuff is terribly lacking in SEO and I also want to add microdata to everything and I dont want to do it with action hooks.

    please any BP devs here??? I’d appreciate the help.

    #175280
    flexclique
    Participant

    I’m using permalinks…

    What I’m trying to accomplish is: I have an image, this image will be on a standard wordpress page and I want a logged in user to click on the image and be taken to their profile page.

    #175273
    hugblue71
    Participant

    I found a solution ..

    Added this plugin .. :

    https://wordpress.org/plugins/user-avatar/

    #175269
    Akshaysrk
    Participant

    Thank You for your Reply Mr. McFarland. the error log is as below

    d; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:45:53 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:47:41 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:05 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:08 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:41 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:44 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:45 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:50 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:53:02 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:53:09 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:54:45 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:55:01 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:56:03 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:56:55 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:00:40 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:08:47] PHP Fatal error: Call to undefined function get_blog_option() in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/cd-bp-avatar-bubble/cd-ab-cssjs.php on line 39 [07-Dec-2013 18:09:03 UTC] PHP Fatal error: Call to undefined function get_blog_option() in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/cd-bp-avatar-bubble/cd-ab-cssjs.php on line 39 [07-Dec-2013 18:09:24] PHP Fatal error: Call to undefined function get_blog_option() in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/cd-bp-avatar-bubble/cd-ab-cssjs.php on line 39 [07-Dec-2013 18:15:09 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:16:57 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:54:48 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:54:53 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:55:57 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:56:20 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:56:21 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:56:21 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:56:32 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:56:32 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:56:33 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 /home1/srkaksha/public_html/nucleionline/wp-admin/error_log: [21-Sep-2013 14:46:07] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1 for query SELECT COUNT(*) FROM made by require_once(‘wp-admin/admin.php’), do_action(‘admin_init’), call_user_func_array, bp_admin_init, do_action(‘bp_admin_init’), call_user_func_array, bp_core_activation_notice [21-Sep-2013 14:46:07] PHP Fatal error: Call to undefined function bp_blogs_record_existing_blogs() in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress/bp-core/admin/bp-core-functions.php on line 205 [07-Dec-2013 17:43:48 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:47:51 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:41 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:53:25 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:24 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:25 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:26 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:32 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:39 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:39 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:41 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:00:53 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:01:39 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:01:40 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:06:02 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:16:02 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:17:22 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:17:43 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:17:59 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:18:04 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:18:04 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108

    #175259
    HoundLounge
    Participant

    Cassey and Matt,

    thanks so much for your help! I was able to deactivate the plugin using phpmyadmin, which meant I didn’t lose all the work I’d put into setting up the buddy press pages. All is now good and I won’t mess with the Activate setting again.

    This link helped me to disable plugins using phpmyadmin:

    Deactivating WordPress Plugins using PHPMyAdmin

    Thanks again,
    Chris

    #175254
    Matt McFarland
    Participant

    A great plugin that I use (is free) that has greatly reduced registration spamming is WANGUARD (check it out here: https://wordpress.org/plugins/wangguard/) works great with buddypress and bbpress

    #175246
    Matt McFarland
    Participant

    Yes this is very easy to do.

    Adding the featured image of a wordpress post into a buddypress activity stream can be done by doing one of the following. I’d like to add that I had trouble finding out how to do this at first and it took a lot of searching. The first copypasta I have for you was actually found on these very forums. However, due to so many people asking this question (and not getting answers) it is buried and very difficult to find. So without further ado please enjoy…

    You can either edit the activity page activity/entry.php or just copy paste the following function into your functions.php file.

    
    function icondeposit_bp_activity_entry_meta() {
     
        if ( bp_get_activity_object_name() == 'blogs' && bp_get_activity_type() == 'new_blog_post' ) {?>
            <?php
            global $wpdb, $post, $bp;
            $theimg = wp_get_attachment_image_src(  get_post_thumbnail_id( bp_get_activity_secondary_item_id() ) );
            ?>
            <img src="<?php echo $theimg[0]; ?>" >
     
        <?php }
     
    }
    add_action('bp_activity_excerpt_append_text', 'icondeposit_bp_activity_entry_meta');
    

    If you want further customization, I recommend editing activity/entry.php

    #175245
    Akshaysrk
    Participant

    Hello,
    Before coming to problem I give u my website details
    URL: http://www.nucleionline.info
    wordpress: 3.7.1, (before it used to be 3.6.1)
    Buddy press: 1.8.1

    Yesterday I received mail from Bluehost(my hosting provider) that they will stop support for Php 5.2 ina week and asked me to change config to php 5.4.
    When I changed the version my site appears blank. But, when i Deactivate Buddypress Theme and also Plug-in it works fine.

    right now i revert the config to php 5.2. But, i hav only 5 days time to make it work in php 5.4. Could you Please help me out?

    Thanks & Regards,
    Akshay

    noizeburger
    Participant

    This topic has been always important to my community project. Throughout the last 4 years I’ve tried several ways to reach a way working with different user profiles. If you search the forums you’ll see that others also did and still do.

    Maybe my approach/solution will fit some of the requests.
    First of all, I’ve to say THANK YOU to the following people/users:

    @henrywright-1 for some hints into the right direction
    donmik, publisher of the wonderful Buddypress Xprofile Custom Fields Type plugin
    and Brajesh Singh @sbrajesh for his usefull code snippets.

    So, what I needed and what was the solution?

    I’m working on a platform for musicians and music fans. To give both usertypes different capabilities in their profiles I decided to give them different user roles.
    To achive this, there are several wordpress plugins. Below you will find a list of the plugins I use.
    In earlier versions of Buddypress I’ve used the WP Roles at Registration plugin together with Buddypress xProfiles ACL plugin. So I had the possibility to make the user chose a role at registration and a way to define what buddypress profile groups are shown in the different profile types. Both plugins haven’t been updated in the last two years but both still work. xProfiles ACL needs to be hacked – see this support thread .

    So far so good. But there is no way to include the user role (in my case “band” and “fan”) in buddypress search. My first attempt was to include the user role via some code snippet in my member-loop, but that seemed a bit complicated to me. I wanted a conjunction between the user role and buddypress search. So there had to be a way to select the user role through a xprofile field, ’cause xprofile fields can be searched and also displayed in the member-loop in several ways.

    To stop confusing you, here’s what I’ve done:

    required plugins:

    1. Buddypress xProfiles ACL with the hack mentioned a few lines earlier.
    2. Capability Manager Enhanced to define custom user roles, if you’re not satisfied with the default wordpress roles (subscriber, contributor,…).

    The first step is to create your user roles, modify the ACL plugin and define some profile field groups that can be finally added to the different user roles/types.
    Create a xprofile field (selectbox) with the title “User Role” and name the options “Band Role” and “Fan Role” – in my case. You can call them whatever you want. Place this field in the “base” profile group, otherwise it won’t be shown during registration. Also make the field “required”. In my case the user can’t decide, if the visibility of the field can be changed.

    In a second step you need to create a bp-custom.php in the root of your wordpress plugin folder (if you haven’t done this yet, cause you have other custom functions).
    Put the following snippet in your bp-custom:

    <?php
    function custom_bp_core_signup_user($user_id) {
        $user_role = strtolower(xprofile_get_field_data('User Role', $user_id));
        switch($user_role) {
            case "Band Role":
                $new_role = 'band';
                break;
            case "Fan Role":
                $new_role = 'fan';
                break;
        }
        wp_update_user(array(
            'ID' => $user_id,
            'role' => $new_role
        ));
    }
    add_action( 'bp_core_signup_user', 'custom_bp_core_signup_user', 10, 1);

    As you can see, I’ve included the title of the xprofile field in line 3. It’s important to put in the exact title of your xprofile field. The case “Band Role” and case “Fan Role” is the place to put your select options of the field. Finally $new_role has to be filled with the wordpress or custom user roles – important, otherwise it won’t work: in lowercase letters – in my case “band” and “fan”.

    Save your bp-custom.php and you’re nearly done.
    In my case I want to prevent the users to change their user role after registration (if you want to give them the possibility to do so, more hacking has to be done – but I’m not sure how to). Put another snippet in your bp-custom.php:

    //hide the user role select field in edit-screen to prevent changes after registration
    add_filter("xprofile_group_fields","bpdev_filter_profile_fields_by_usertype",10,2);
    function bpdev_filter_profile_fields_by_usertype($fields,$group_id){
    //only disable these fields on edit page
    if(!bp_is_profile_edit())
    return $fields;
    //please change it with the name of fields you don't want to allow editing
    $field_to_remove=array("User Role");
    $count=count($fields);
    $flds=array();
    for($i=0;$i<$count;$i++){
    if(in_array($fields[$i]->name,$field_to_remove))
    unset($fields[$i]);
    else
    $flds[]=$fields[$i];//doh, I did not remember a way to reset the index, so creating a new array
    }
    return $flds;
    }

    Again, fill in the title of the profile field (User Role), where it’s indicated in the code.

    That’s it. I hope I haven’t been too confusing. Ask if you need help.

    #175232
    pmuktan
    Participant

    Hi everyone i have installed buddypress in my wordpress site.
    How do i use my own theme.?

    How can i use shortcode to page, so that buddypress forum automatics shows up ?

    Regards
    Promish

    #175231
    cybervaliewp
    Participant

    Hi Tim and Quokka
    I have installed a wordpress multisite in french with buddypress in french
    http://www.mydomain.com/
    I have created 3 blogs for each language : english, spanish and italien
    http://www.mydomain.com/en
    http://www.mydomain.com/es
    http://www.mydomain.com/it
    I have one database of users and they access to all subdomains of the site and
    I would like to have my buddypress pages (regitration, members, activity,….) translate in each languages I have…
    Is it possible ??
    Can you help me ??
    Thank you

    #175226
    Matt McFarland
    Participant

    Before re-installing WordPress, you should crack open phpmyadmin, go to wp_options, and clear out your plugins field. this will disable buddypress, and should re-open your site. then you can fix what you did 🙂

    #175224
    Matt McFarland
    Participant

    Stats: WP 3.7.1, BP 1.9, custom theme.

    Hi there,

    I’m a PHP/CSS3/HTML5/JS developer and I’ve managed to create my own theme with wordpress. While wordpress codex has helped me mostly along the way, I’m stumped on BP.

    I’ve been studying the codex and also lurking among the forums. Searching high and low through the google, and really could use your help.

    I need to change the HTML that is generated from multiple tags, specifically all the tags used in BP 1.9.

    I would prefer to be able to grab the content that entry.php does Outside the loop, and throw it in the <head> title.

    Everything I look up is just function after function. BP has functions that seem to go on an endless chain of functions and is very hard to understand when looking under the hood. So, how does one just grab the raw content?

    Would like to be able to do sometihng like with wordpress: $post->date,author,image,content,excerpt,title. How would this be done with $bp???

    #175222
    Cassey’s Designs
    Participant

    Hiyya,

    My Info :
    WordPress Version 3.7.1
    BuddyPress Version 1.8.1
    Site : duffitness.com/coachportal/ – this site is private and only accessible by registered coaches, however I have attached an image of the title I am referring to.

    I want to change the titles of my buddypress pages. For example: I want to make “Sitewide Activity” read “Community Lounge” on that page. I have used my own page with the title Community Lounge and directed the activity feed to that page rather than buddypress’s default activity page. I have explored the code and found where it is but I have been unable to get the desired effect thusfar. Is there a specific file I need to access to change these titles?

    Page Title Screenshot

    Any help is greatly appreciated!! Thanks,
    Cassey

    Akshaysrk
    Participant

    Hello,
    Before coming to problem I give u my website details
    URL: http://www.nucleionline.info
    wordpress: 3.7.1, (before it used to be 3.6.1)
    Buddy press: 1.8.1

    Yesterday I received mail from Bluehost(my hosting provider) that they will stop support for Php 5.2 ina week and asked me to change config to php 5.4.
    When I changed the version my site appears blank. But, when i Deactivate Buddypress Theme and also Plug-in it works fine.

    right now i revert the config to php 5.2. But, i hav only 5 days time to make it work in php 5.4. Could you Please help me out?

    Thanks & Regards,
    Akshay

    #175203
    prabhatmittal20
    Participant

    Hi,

    I have recently installed latest version of buddypress on my website (www.pace2race.com).

    When i upload a new avatar image it gives me a pre-cropped image and there are no crop tools.

    Details:

    Wordpress – 3.7.1
    Theme – Dynamik theme on Genesis framework

    When i activate twenty ten theme, crop works correctly, so this is a theme issue. But i am unable to find what is causing the problem. This is the link of development site on which twenty ten is activated with all other setting exactly as the production site. (http://pace2race.staging.wpengine.com/)

    #175190
    Shmoo
    Participant

    its better to use social button plugin

    No it’s not..

    This is a great Tutorial, thumbs up for giving this nice piece of code.
    Social Media Button Plugins often stack a lot of scripting in your website. Lots of JavaScript and a other junk you’re not looking for while WordPress + BuddyPress is already pretty heavy because of all features.

    This Tutorial is clean and very basic, it does what most people need, just simple links from their BuddyPress profile to the users Social Media pages.

    #175189
    Shmoo
    Participant

    I think it’s too complex for a Plugin because this is too specific to your needs , plugins are great when they serve lots of people. But you could alter the layouts if you know how the template structure in WordPress and BuddyPress works.

    Give each page it’s own custom Activity-loop template and you should be able to make whatever view you want on each page that shows an Activity.
    By default each page uses only one ( the default ) activity-loop template to create the activity content. But if you like you can duplicate those files and customize them for each page. Just duplicated the needed files and rename them to something like this: activity-groups-loop.php or activity-members-loop.php than make sure at the groups page the loop to the activity doesn’t load the default activity templates but your custom ( duplicated ) files.

    I really love how easy this works in WordPress and BuddyPress not a lot of CMS software have this easy to use template structure and logic.

    The only real problem I found with this is that the Activity-contents are made by very dynamic code – it’s very difficult to alter the items that will be shown at the page such as time, name, avatar , activity-title and the real content compared to other BuddyPress pages.

    I’ve made a Trac. Ticket for BuddyPress 2.0 , so lets hope somebody very smart could change the code a bit and we can really alter our Activity contents too.
    https://buddypress.trac.wordpress.org/ticket/5261

    #175173

    In reply to: Child Theme

    @mercime
    Participant

    Should I try to create a BP child theme? That is, copy default and save with different name within plugin folder?

    @gparrott The bad news: “In BuddyPress 1.9, we begin the process of phasing out the BuddyPress Default theme” per http://bpdevel.wordpress.com/2013/11/13/the-future-of-the-bp-default-theme/ So I strongly recommend for future compatiblity that you do not waste your time creating a child theme for the BP Default theme.

    The good news: Since BP 1.7 and the introduction of theme compatibility, BuddyPress has worked seamlessly with nearly all WP themes so check out the many choices available at https://wordpress.org/themes/

Viewing 25 results - 12,301 through 12,325 (of 32,686 total)
Skip to toolbar