Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 17,076 through 17,100 (of 31,071 total)
  • Author
    Search Results
  • #123772
    mrjarbenne
    Participant

    functions.php lives in your theme folder, but bp-custom.php is a file you may have (or may need to create) within your wp-contents/plugins folder; it is not part of your theme.

    #123767
    meg@info
    Participant

    functions.php or bp-custom.php of your buddypress theme

    justbishop
    Member
    #123732
    InHouse
    Member

    This is technically lines 3-13 but line 2 is the just <?php

    `if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
    function bp_dtheme_enqueue_styles() {
    // Bump this when changes are made to bust cache
    $version = ‘20111102’;
    // Register main stylesheet
    wp_register_style( ‘seneca-county’, get_stylesheet_directory_uri() . ‘/style.css’, array(), $version );
    // Enqueue main stylesheet
    wp_enqueue_style( ‘seneca-county’ );
    }
    add_action( ‘wp_print_styles’, ‘bp_dtheme_enqueue_styles’ );
    endif;`

    I’m using Buddypress 1.5.1 and I don’t have:

    around line 57. On line 56, however, I have:

    I’m not a coder, but can I put a call for sidebar1 and sidebar2? Would one go before the Content Div and one after?

    I am using a Child theme, too, by the way, with bp-default as the parent theme.

    #123726
    ankurm
    Member

    I found a way to accomplish it…
    Paste this piece of code in your theme functions file..

    `// Stop user accounts logging in that have not been activated (user_status = 2)
    function bp_core_signup_disable_inactive_modified( $auth_obj, $username ) {
    global $bp, $wpdb;

    if ( !$user_id = bp_core_get_userid( $username ) )
    return $auth_obj;

    $user_status = (int) $wpdb->get_var( $wpdb->prepare( “SELECT user_status FROM $wpdb->users WHERE ID = %d”, $user_id ) );

    if ( 2 == $user_status )
    header(“Location:”.get_site_url().”/login?err=not-activated”); /*Your Custom Message*/
    else
    return $auth_obj;
    }
    add_filter( ‘authenticate’, ‘bp_core_signup_disable_inactive_modified’, 30, 2 );
    `

    #123711
    thegblog
    Member

    I am also having this problem. Can anyone help me? Thanks in advance:

    I’m running wp 3.2.1, on main directory in root, using bp version 1.5.1that was never upgraded. I have no other plugins activated on the subdomain I’m running buddypress from. I’m using the standard bp theme that came with the plugin for this and I modified my wp-config to allow bp to run on subdomain (runs on members.mysite.com): here’s the info in bp-custom.php
    `<?php
    define ( ‘BP_ENABLE_MULTIBLOG’, true );
    define ( ‘BP_ENABLE_ROOT_PROFILES’, true );
    define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );
    define ( ‘BP_ROOT_BLOG’, $blog_id );
    define( ‘BP_SILENCE_THEME_NOTICE’, true );
    define( ‘BP_ENABLE_USERNAME_COMPATIBILITY_MODE’, true );
    define ( ‘BP_ACTIVITY_SLUG’, ‘streams’ );
    define ( ‘BP_BLOGS_SLUG’, ‘journals’ );
    define ( ‘BP_MEMBERS_SLUG’, ‘users’ );
    define ( ‘BP_FRIENDS_SLUG’, ‘peeps’ );
    define ( ‘BP_GROUPS_SLUG’, ‘gatherings’ );
    define ( ‘BP_FORUMS_SLUG’, ‘discussions’ );
    define ( ‘BP_MESSAGES_SLUG’, ‘notes’ );
    define ( ‘BP_WIRE_SLUG’, ‘pinboard’ );
    define ( ‘BP_XPROFILE_SLUG’, ‘info’ );
    define ( ‘BP_REGISTER_SLUG’, ‘signup’ );
    define ( ‘BP_ACTIVATION_SLUG’, ‘enable’ );
    define ( ‘BP_SEARCH_SLUG’, ‘find’ );
    define ( ‘BP_HOME_BLOG_SLUG’, ‘news’ );
    define ( ‘BP_AVATAR_THUMB_WIDTH’, 50 );
    define ( ‘BP_AVATAR_THUMB_HEIGHT’, 50 );
    define ( ‘BP_AVATAR_FULL_WIDTH’, 150 );
    define ( ‘BP_AVATAR_FULL_HEIGHT’, 150 );
    define ( ‘BP_AVATAR_ORIGINAL_MAX_WIDTH’, 640 );
    define ( ‘BP_AVATAR_ORIGINAL_MAX_FILESIZE’, $max_in_kb );
    define ( ‘BP_AVATAR_DEFAULT’, $img_url );
    define ( ‘BP_AVATAR_DEFAULT_THUMB’, $img_url );
    define ( ‘BP_FORUMS_PARENT_FORUM_ID’, $forum_id );
    define ( ‘CUSTOM_USER_TABLE’, $tablename );
    define ( ‘CUSTOM_USER_META_TABLE’, $tablename );

    ?>`

    Wiredtree is my server provider (I have a dedicated server with all access), and I’m running Linux w/ Apache

    #123703
    spennis
    Member

    I have been asking for the same thing but no answer. This should be something that the Buddypress theme should integrate in future versions! It should be fairly simple and very useful! Not to mention a simple way to show the extended profiles…

    recycler14
    Member

    HI Everyone,

    Can somebody help me with the ajax. The buddypress that I installed is not functioning at all. It’s not working in members, activity and some of the buddypress pages. I think it is a javascript. I am using stufe wordpress theme.

    Response is highly appreciated. Thanks

    #123699
    aces
    Participant

    What is in /wp-content/themes/seneca-county/functions.php on line 2?

    #123695

    In reply to: fatal error upgrading

    tommyhoang
    Member

    yep i was right, i removed the codes within my childtheme functions.php that coded for the global search and everything is back up now. thanks for pointing me to the error log paul!

    #123694

    In reply to: fatal error upgrading

    tommyhoang
    Member

    [28-Oct-2011 23:11:46] PHP Fatal error: Call to undefined function bp_is_active() in /home6/stemcomm/public_html/wp-content/themes/STEM/functions.php on line 54
    [28-Oct-2011 23:29:13] PHP Fatal error: Call to undefined function bp_is_active() in /home6/stemcomm/public_html/wp-content/themes/STEM/functions.php on line 54
    [29-Oct-2011 00:44:36] PHP Fatal error: Call to undefined function bp_is_active() in /home6/stemcomm/public_html/wp-content/themes/STEM/functions.php on line 54
    [29-Oct-2011 05:52:24] PHP Fatal error: Call to undefined function bp_is_active() in /home6/stemcomm/public_html/wp-content/themes/STEM/functions.php on line 54
    [03-Nov-2011 19:16:35] PHP Fatal error: Call to undefined function bp_is_active() in /home6/stemcomm/public_html/wp-content/themes/STEM/functions.php on line 54

    im thinking it might have to do with the unified global search plugin that i got from buddydev.com

    rcarrollct
    Member

    Resolved…

    copied bp-default/members/single/settings
    to
    themes/theme_name/members/single/

    Thanks!

    #123690
    Neomie
    Member

    1. Which version of WordPress are you running? 3.2.1
    2. Did you install WordPress as a directory or subdomain install? not sure
    3. If a directory install, is it in root or in a subdirectory? subdirectory
    4. Did you upgrade from a previous version of WordPress? If so, from which version? no
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes
    6. Which version of BP are you running? latest, installed yesterday
    7. Did you upgraded from a previous version of BP? If so, from which version? No
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? BbPress and CubePoints Buddypress Integration
    9. Are you using the standard BuddyPress themes or customized themes? customized
    10. Have you modified the core files in any way? no
    11. Do you have any custom functions in bp-custom.php? no
    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? came with it.
    13. Please provide a list of any errors in your server’s log files.
    14. Which company provides your hosting? uk2.net
    15. Is your server running Windows, or if Linux; Apache, nginx or something else? linux

    #123685
    InHouse
    Member

    @boonebgorges and @mercime I owe all I know (very little) to Codex and forum threads. I have enjoyed learning and greatly appreciate the work of all the volunteers. I was just saying in general, Codex can be hard to follow for a noob but I think that comes with trying to do more than I can before learning more basic WP skills. Thanks again for your help!

    #123679
    SilverP
    Member

    “Did you add any functions in theme’s functions.php or excluded some blogs in the directory listing Network Admin > Sites with that plugin?”

    No, no functions added, no blogs excluded. I’ve deactived the Blogs Directory plugin, enabled the site tracking component of BP.

    I also tried pasting the line
    bp_blogs_record_existing_blogs();
    into functions.php. No joy. Deactivating and re-activating the BuddyPress plugin sitewide with that line in functions.php also did not fix the problem.

    Any suggestions?

    #123678

    In reply to: Moving Links around

    leethompson
    Member

    ok, I found out if you remove a parent item the page(function) is removed too, So I removed this function:
    `function boone_remove_blogs_nav() {
    bp_core_remove_nav_item( ‘privacy’ );
    bp_core_remove_nav_item( ‘settings’ );
    bp_core_remove_nav_item( ‘invite-anyone’ );
    }
    add_action( ‘bp_setup_nav’, ‘boone_remove_blogs_nav’, 15 );`

    and I used css to hide the parent item. In my themes main css I added :

    `#user-privacy {
    display: none !important;
    }

    #user-settings {
    display: none !important;

    }
    `

    Now I will write a javascript function to highlight the right parent item if I am in the proper section.

    Then i will try to write a bp global function to re-assign subnav items to different parent item.

    leethompson
    Member

    This is a great post but what about moving sub links to a new parent item, this kinda works but if I remove the parent item the function stops. in my themes functions.php

    `function remove_blogs_nav() {
    bp_core_remove_nav_item( ‘privacy’ );
    bp_core_remove_nav_item( ‘settings’ );
    bp_core_remove_nav_item( ‘invite-anyone’ );
    }
    add_action( ‘bp_setup_nav’, ‘remove_blogs_nav’, 15 );

    function bp_add_create_group_subnav() {
    global $bp;
    $groups_link = ‘/groups-2/’;
    $settings_link = $bp->loggedin_user->domain ;

    /* Add the subnav items to the groups nav item */
    if (function_exists(‘bp_core_new_subnav_item’)) {
    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Create Clan’, ‘buddypress’ ),
    ‘slug’ => ‘create’,
    ‘parent_url’ => $groups_link,
    ‘parent_slug’ => $bp->groups->slug,
    ‘screen_function’ => ‘groups_screen_group_home’,
    ‘position’ => 40,
    ‘item_css_id’ => ‘home’ ) );

    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Settings’, ‘buddypress’ ),
    ‘slug’ => ‘settings’,
    ‘parent_url’ => $settings_link,
    ‘parent_slug’ => $bp->profile->slug,
    ‘screen_function’ => ‘profile-settings’,
    ‘position’ => 30,
    ‘item_css_id’ => ‘profile-settings’ ) );

    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Privacy’, ‘buddypress’ ),
    ‘slug’ => ‘privacy’,
    ‘parent_url’ => $settings_link,
    ‘parent_slug’ => $bp->profile->slug,
    ‘screen_function’ => ‘profile-privacy’,
    ‘position’ => 30,
    ‘item_css_id’ => ‘profile-privacy’ ) );

    }
    }
    add_action(‘bp_setup_nav’, ‘bp_add_create_group_subnav’);
    `
    If I comment out :
    `// bp_core_remove_nav_item( ‘privacy’ );
    // bp_core_remove_nav_item( ‘settings’ );`

    The sub links are in the Profile item, and functional, but still link to each original man item.

    thanks Boone you are a lot of help

    socratic42
    Member

    I am having the exact same problem. My forums were working with “site wide.” I tried to switch to “groups.” Now I’ve tried to uninstall and reinstall multiples times to no effect.

    The menu bar “Forums” is http://socraticmama.com/forums-3
    I can get to the real “Forums” page at http://socraticmama.com/forums if I type the url

    I’m not sure how to fix this. Please dumb it down. I’m pretty new to code.

    Here is the link to the “Parent” forum: http://socraticmama.com/forums/forum/parents/

    #123651
    subigya
    Participant

    I have a WP multisite installation http://www.somemultisite.com and I want a buddypress installation in one of the subsite http://www.somesubsitewithbuddypress.com. So i installed the plugin, network activated and installed the theme and all.. and all is good, the problem is that buddy press changed my admin-bar throughout the multisite instead of just for the sub-site.

    Anybody familiar with this issue? I don’t want to have the subsitewithbuddypress.com to have anything to do with the primary somemultisite.com . No interference.

    I have these on the code:
    define ( ‘BP_ROOT_BLOG’, 7 ) ;
    define ( ‘BP_DISABLE_ADMIN_BAR’, true ); /* Turning this on/off only enabled or disabled the buddy press admin bar.

    So my question is where goes my main admin bar? Also, can i have this BP admin enabled only for the subsite with buddypress?

    #123650
    @mercime
    Participant

    @inhouse as @boonebgorges noted above, what I posted was essentially the same thing, and I learned it all from @boonebgorges and other BuddyPress Devs :-)

    10-4 @boonebgorges will tackle the update of relevant pages in BP Codex by this weekend latest :-)

    #123648
    Suzi Wilson
    Participant

    Thanks Mercime! Works like a charm. Perfect! Just what I wanted. Thank you

    #123647
    Boone Gorges
    Keymaster

    > I wish Codex was written more in depth

    The Codex is written and maintained by volunteers. As @mercime was so kind as to jump in and explain what’s up, maybe you could be so kind as to edit the relevant page :)

    Also, some of these issues have been in flux through the end of the 1.5 dev cycle. In any case, what @mercime wrote is essentially the same thing that I wrote – you must have been writing the paths wrong.

    Thanks for your patience!

    #123646
    cbaxley
    Member

    This is because the dir-search class is set to position relative. Just take out the position:relative for div.dir-search in wp-content/plugins/buddyvents/css/events.css on line 1.

    #123645
    InHouse
    Member

    Wow, that is a far cry from what was posted in the Codex and what @boonebgorges posted. I still don’t understand why or how this works, but it works! Again, I wish Codex was written more in depth so new people can actually learn it. Thanks so much for your help @mercime. I appreciate it.

Viewing 25 results - 17,076 through 17,100 (of 31,071 total)
Skip to toolbar