Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 23,201 through 23,225 (of 32,561 total)
  • Author
    Search Results
  • mariochampion
    Participant

    just to add to this discussion, concerning what hook to link it to…this is what works for me. i didnt have luck with bp_setup_nav for some reason. i dont recall where i got this example, but think its bp-xprofile.php itself. this worked in both theme>functions.php and in my own mmc_functions.php which i “require()” in functions.php

    just to add a hint of background, we are moving these two items to the ‘settings’ tab from the profile tab. the removing is trivial, the adding is trivial, the getting all the right functions/themes/forms called, not so much. but its done and it works.

    here is the code for removing sub-tabs — aka options:

    `
    //removes in a structural way.. no change to bp-xprofile.php

    function mmc_bpsetupnav_removefromprofile(){
    global $bp;

    if ( $bp->current_component == $bp->profile->slug ) {
    bp_core_remove_subnav_item($bp->profile->slug, ‘edit’);
    bp_core_remove_subnav_item($bp->profile->slug, ‘change-avatar’);

    }//end if
    }//end function
    add_action( ‘wp’, ‘mmc_bpsetupnav_removefromprofile’, 2 );
    `

    here is my code for adding them to the settings tab

    `
    ////////////////////////////////////////////////////////////
    ////// functions for moving to Settings tab the editprofile/change avatar sub-tabs

    function mmc_bpsetupnav_forsettings(){
    global $bp;

    if ( $bp->current_component == $bp->settings->slug ) {
    //define ( ‘BP_XPROFILE_SLUG’, ‘settings’ );//didnt have desirable effects. left her for documentation

    //this is essentially a clone of xprofile-settings.php, but with tweaks to change BP_XPROFILE_SLUG references tp BP_SETTINGS_SLUG
    //that way didnt change any core files, and moved it out of the upgrade stream
    require_once( WP_PLUGIN_DIR.’/mmc_misc/functions_xprof_settings_mmc.php’);

    $profile_link = $bp->loggedin_user->domain . $bp->profile->slug . ‘/’;
    $settings_link = $bp->loggedin_user->domain . $bp->settings->slug . ‘/’;

    //EDIT PROFILE
    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Edit Profile’, ‘buddypress’ ),
    ‘slug’ => ‘edit’,
    ‘parent_url’ => $settings_link,
    //’parent_slug’ => $bp->profile->slug, //left for documentation
    ‘parent_slug’ => $bp->settings->slug,
    ‘screen_function’ => ‘xprofile_screen_edit_profile_mmc’,
    ‘position’ => 50, //magic number based on current items already there in SETTINGS tab
    ‘user_has_access’ => bp_is_my_profile() //ADDED, NOT IN ORIGINAL WHEN IN BP-XPROFILE.PHP
    ) );

    //CHANGE AVATAR
    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Change Avatar’, ‘buddypress’ ),
    ‘slug’ => ‘change-avatar’,
    ‘parent_url’ => $settings_link,
    //’parent_slug’ => $bp->profile->slug, //left for documentation
    ‘parent_slug’ => $bp->settings->slug,
    ‘screen_function’ => ‘xprofile_screen_change_avatar_mmc’,
    ‘position’ => 60, //magic number based on current items already there in SETTINGS tab
    ‘user_has_access’ => bp_is_my_profile() //ADDED, NOT IN ORIGINAL WHEN IN BP-XPROFILE.PHP
    ) );

    }//end if

    }//end function
    add_action( ‘wp’, ‘mmc_bpsetupnav_forsettings’, 2 );
    add_action( ‘admin_menu’, ‘mmc_bpsetupnav_forsettings’, 2 );
    `

    note the TWO add-actions at the end. also taken from example at bp-xprofile.php. why this and not bp_setup_nav.. i dont know!

    ggod luck
    mario

    #91863
    thekmen
    Participant

    @boonebgorges thanks, got it working by adding it to plugins/bp-custom.php.
    wouldn’t work from my own themes functions.php for some reason.

    #91850

    In reply to: Login textboxes

    Hugo Ashmore
    Participant

    @cameroncameron BB code tags don’t work, I edited your post to correct.

    That doesn’t look like bp-default theme to me but a modified version, generally issues with custom themes will need to be taken up with the theme author, but as Roger has explained using debugging tools such as Firebug will help you navigate and locate code.

    #91845

    In reply to: Login textboxes

    Roger Coathup
    Participant

    Set the width of the username and password input boxes in your theme’s CSS file.

    If you don’t know the selectors for the input boxes, use firebug in firefox or safari developer tools to take a look at the code

    #91842
    en0ch
    Member

    Only just found this reply. (Think I’m confused between subscriptions and favourites??) Anyway …

    Thanks very much. My theme is 2010 Weaver – current version 1.2.3 .. WP 3.0.1 .. BP 1.2.5.2

    Anyway … just did some more tinkering. Disaster at first resulting in near death .. but got out alive, and continued. Now realised that what I needed was to re-do the BP Template Pack activation process. Now done that, and groups are alive again. Maybe this will help someone one day ….

    #91826
    r-a-y
    Keymaster

    You can try removing the stripslashes filter applied to forum posts.

    Add the following to your theme’s functions.php file:

    `remove_filter( ‘bp_get_the_topic_post_content’, ‘stripslashes_deep’ );`

    #91807
    Hugo Ashmore
    Participant

    it’s not a CSS issue the markup is malformed, trying to correct malformed markup with a presentations language is not a good idea CSS is predicated on well formed DOM structure it’s a symbiotic relationship if one is broken so id the other.

    If you really need to fix quickly and are comfortable then access the comment function in the bp-default themes function.php file remove it to a functions file
    in a child theme and look for the last closing tag and delete it, then comments will correctly nest within parent li elements. naturally then you’ll need to add any specific styling you want via CSS.

    As the fix for this is in place and will filter through when versions are upgraded it would be pretty safe to edit the bp-default themes functions file to remove that one tag, but only this one time mind; as always though on ones own head be it! :)

    Boone Gorges
    Keymaster

    Either you haven’t placed the function in the right place (should go right after the `<?php ` in your theme's functions.php), or you're not correctly referencing the nav items. Remember that they're case-sensitive.

    #91802
    techguy
    Participant

    Seems like the jquery could be added to the bp-default theme and then everyone could enjoy the feature.

    #91769
    Paul Wong-Gibbs
    Keymaster

    Hi John

    Change front page via Administration > Settings > Reading panel. You may have to edit your theme’s header.php to remove the “home” link. “About” is the name of the WordPress page of the same name, so just delete it.

    #91760
    Boone Gorges
    Keymaster

    @blogmudgeon Glad to help :)

    @ri-kun bp_core_remove_nav_item doesn’t take multiple arguments. Try something like:
    `<?php function boone_remove_blogs_nav() {
    bp_core_remove_nav_item( ‘blogs’ );
    bp_core_remove_nav_item( ‘groups’ );
    }
    add_action( ‘bp_setup_nav’, ‘boone_remove_blogs_nav’, 15 ); ?>`

    Add additional lines for nav items you want to remove. And make them lowercase, as the names might be case-sensitive and they are almost certainly lowercase when they are initially added.

    functions.php, in your theme directory, is the appropriate place to put this. There should be no function called bp-functions.php.

    #91758
    Anton
    Participant

    Care to share a link of your site with this enabled?

    #91748
    lylewinton
    Member

    I’ve been experimenting with WordPress Mobile Pack on my BuddyPress site. Made some progress so I thought I’d share how…

    Context is BuddyPress already installed, WordPress Mobile Pack installed:
    1) enable Appearance – Mobile Switcher
    2) set the mobile theme to “WordPress Mobile (blue)” or other, but not base!!!
    3) under Appearance – Menu, create a new custom menu (for mobile navigation) with the following 4 URL links…
    Link: Activity /pathto/activity/
    Link: Members /pathto/members/
    Link: Groups /pathto/groups/
    Link: Forums /pathto/forums/
    4) add the custom menu to the bottom of your sidebar, under Widgets (unfortunately visible for non-mobile too, but it not too conspicuous)
    5) now under Appearance – Mobile Widgets enable only that custom menu (otherwise mobile navigation is a problem)
    6) the BuddyPress links don’t work as the mobile theme isn’t compatible, so hack them in on the command line:
    $ cd ?pathto?/wp-content/themes/mobile_pack_base/
    $ ln -sf ../../plugins/buddypress/bp-themes/bp-default/activity ./
    $ ln -sf ../../plugins/buddypress/bp-themes/bp-default/forums ./
    $ ln -sf ../../plugins/buddypress/bp-themes/bp-default/members ./
    $ cd ../mobile_pack_blue/ (or the one you’re using, but not base)
    $ ln -sf ../../plugins/buddypress/bp-themes/bp-default/groups ./

    Your good to go! You can’t use the mobile base theme as it already has a “groups” directory which stuffs things up (if you’re not a nokia).

    #91733

    In reply to: Admin bar disappeared

    Sixgunzx
    Participant

    I am having a simular issue. I am using the Jooc theme, wordpress 3.0.1 and Buddypress 1.2.5.2, my admin bar is not showing on the front page. It does seem to be showing in the admin panel. I have deactivated, and deleted bp, and I checked the functions file for the theme as well, and it has the same code as posted above.

    #91671
    Ekine
    Participant

    The screenshots look great. :)

    Boone Gorges
    Keymaster

    The following function, placed into your theme’s functions.php or bp-custom.php file, will remove the Blogs nav item from the Members section of the site:
    `function boone_remove_blogs_nav() {
    bp_core_remove_nav_item( ‘blogs’ );
    }
    add_action( ‘bp_setup_nav’, ‘boone_remove_blogs_nav’, 15 );`

    Other top-level nav items can be removed by replacing ‘blogs’ with the appropriate name. Subnav items will work in a similar way, except using `bp_core_remove_subnav_item` and the extra $parent_id argument:
    `function boone_remove_friends_activity_nav() {
    bp_core_remove_subnav_item( ‘activity’, ‘friends’ );
    }
    add_action( ‘bp_setup_nav’, ‘boone_remove_friends_activity_nav’, 15 );`

    PapaTango
    Member

    Sorry to say, a lot of us on the end publishing equation are not programmers… I used EngineSite to find the string, but have no clue as to where the parent ID for the menu item is to be found. even then, is it simply a matter of entering that ID into the argument?

    ‘/**
    * bp_core_remove_nav_item()
    *
    * Removes a navigation item from the sub navigation array used in BuddyPress themes.
    *
    * @package BuddyPress Core
    * @param $parent_id The id of the parent navigation item.
    * @param $slug The slug of the sub navigation item.
    */
    function bp_core_remove_nav_item( $parent_id ) {
    global $bp;

    /* Unset subnav items for this nav item */
    if ( is_array( $bp->bp_options_nav[$parent_id] ) ) {
    foreach( (array)$bp->bp_options_nav[$parent_id] as $subnav_item ) {
    bp_core_remove_subnav_item( $parent_id, $subnav_item );
    }
    }

    unset( $bp->bp_nav[$parent_id] );’

    Thanks!

    P

    #91654
    ch8rt
    Member

    I would recommend this as a great place to start looking into child themes. Its not advisable to edit the default theme, since your changes could be overwritten if/when you update your buddypress plugin.

    For a quick a dirty change however you’ll need to change some values in the default.css file which can be found in wp-content / plugins / buddypress / bp-themes / bp-default / _inc / css / default.css

    Your looking for ‘font-size:’ under body and h1, h2, h3, h4, h5, h6.

    Hope that helps.

    #91652
    Adam
    Participant

    I haven’t changed any of the coding whatsoever, and, sorry I should have mentioned, I’m using the theme ‘BuddyPress Default 1.2.5.2’.

    I’ve tried using the ‘Inspect Element’ in Chrome, however am still confused as to what I need to change. Does anybody know what line these setting are on within the code, and in what file?

    Thanks again.

    #91650
    ch8rt
    Member

    This should be a CSS change, your probably best to use a something like firebug ( a plugin for Firefox ) to locate the attributes that need changing and then searching for them within the stylesheet your site is using.

    Without knowing how much you’ve changed or whether your using a child theme its difficult to say where specifically you’d need to look.

    #91643
    Paul Wong-Gibbs
    Keymaster

    If it’s the main navigation menu item you’re referring to, I’d just edit header.php of your theme. If it’s another menu, clarify which :)

    #91642
    WraithKenny
    Participant

    @Modemlooper, the whole point of my question was that I have Gravatar’s for every email I own, and not a single one shows up on this site, no matter which email I use here. ITS BROKEN (kinda).

    In case anyone’s interested in the fix, only use lower case letters for your email address. I propose that the theme author or who ever’s in charge of it puts a filter on the function that calls gravatar to convert the string to lower-case, as some (like me) prefer to type their names will Capitals.

    #91629

    In reply to: Redirect BEFORE Login

    pcwriter
    Participant

    @JC

    I saw your post on Buddydev but didn’t have what was needed to answer… now I do.

    Redirect to profile:
    http://buddydev.com/buddypress/bp-redirect-to-profile-plugin-redirect-users-to-their-profile-on-login-on-buddypress-sites/

    Restrict non-members to splash-page:
    http://www.primothemes.com/post/s2member-membership-plugin-with-paypal/

    Hope this helps! :-)

    #91613
    @mercime
    Participant
    #91608
    pacifist
    Participant

    Hi there.
    I reinstalled it two times. Now its finally working. I dont know how or what the problem was but it seems like it works.

    Thanks for the help.

Viewing 25 results - 23,201 through 23,225 (of 32,561 total)
Skip to toolbar