Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 20,576 through 20,600 (of 31,072 total)
  • Author
    Search Results
  • #100127
    @mercime
    Participant

    – Copy over the header.php from bp-default theme to your child theme.
    – Open header.php and add class to the li’s of default BP components starting from line 47 on header.php

    <li class="icon-home">
    <li class="icon-activity">
    <li class="icon-members">
    <li class="icon-groups">
    <li class="icon-forums">

    You would have to ask plugin authors of “Links” and “Achievements” on how to generate addition class for styling hook.
    – after you’re done, save and upload to your child theme folder in server
    – in style.css add background image to li.icon-members, li.icon–groups, etc.

    #100118
    r-a-y
    Keymaster

    @ewebber – Just checked. Yeah the message gets escaped, so you can’t add HTML by default.

    If you want to add HTML, you’ll have to remove how BP renders the message, then you’ll have to write your own custom message function.

    Untested, but this should work in your theme’s functions.php:

    `
    remove_action( ‘wp’, ‘bp_core_setup_message’, 2 );

    function my_bp_core_setup_message() {
    global $bp;

    if ( empty( $bp->template_message ) )
    $bp->template_message = $_COOKIE;

    if ( empty( $bp->template_message_type ) )
    $bp->template_message_type = $_COOKIE;

    add_action( ‘template_notices’, ‘my_bp_core_render_message’ );


    @setcookie
    ( ‘bp-message’, false, time() – 1000, COOKIEPATH );

    @setcookie
    ( ‘bp-message-type’, false, time() – 1000, COOKIEPATH );
    }
    add_action( ‘wp’, ‘my_bp_core_setup_message’, 2 );

    function my_bp_core_render_message() {
    global $bp;

    if ( $bp->template_message ) {
    $type = ( ‘success’ == $bp->template_message_type ) ? ‘updated’ : ‘error’;
    ?>
    <div id="message" class="”>

    template_message; ?>

    <?php
    do_action( ‘bp_core_render_message’ );
    }
    }`

    r-a-y
    Keymaster

    You can apply a filter to ‘bp_get_the_profile_field_datebox’ to add extra years:

    `apply_filters( ‘bp_get_the_profile_field_datebox’, $html, $day, $month, $year, $default_select );`

    Find the bp_get_the_profile_field_options() function in /buddypress/bp-xprofile/bp-xprofile-templatetags.php where this filter is defined, so you’ll have a better idea of how to override it.

    Some sample code that you can add to your theme’s functions.php:
    `function my_year_field ($html, $day, $month, $year, $default_select ) {
    // your code to override the year field
    }
    add_filter( ‘bp_get_the_profile_field_datebox’, ‘my_year_field’, 10, 5 );
    `

    #100116
    Chad
    Participant

    techguy, of course why didn’t I think of that…quick and easy solution! and r-a-y, the codex looks extremely helpful. Thanks guys!

    #100114
    r-a-y
    Keymaster
    #100112
    techguy
    Participant

    Not too late. Just download the BP plugin to your computer so you can get the default theme. Create your child theme and upload that and enable it. Then, upload the default BP theme back to its original location.

    Warning: Backup first in case something goes wrong:-)

    #100103
    techguy
    Participant

    Check with the Theme author. Sounds like a theme specific issue.

    If they don’t respond try the SeoPress plugin and you should be able to set the titles the way you want.

    #100101
    jonishere55
    Member

    I’m Using the custom community theme.

    #100093

    In reply to: Link to users blog.

    Bowe
    Participant

    I think placing the following code at the bottom of functions.php of your child theme should do the trick:

    `
    /* Creates Blog navigation for Accordeon Menu */
    function my_blog_menu(){
    global $bp;
    if ( !is_user_logged_in() || !function_exists(‘bp_blogs_install’) )
    return false;
    //two lines from bp_adminbar_blogs_menu() in bp-core-adminbar.php

    if ( !$blogs = wp_cache_get( ‘bp_blogs_of_user_’ . $bp->loggedin_user->id . ‘_inc_hidden’, ‘bp’ ) ) {
    $blogs = bp_blogs_get_blogs_for_user( $bp->loggedin_user->id, true );
    wp_cache_set( ‘bp_blogs_of_user_’ . $bp->loggedin_user->id . ‘_inc_hidden’, $blogs, ‘bp’ );
    }

    if ( is_array( $blogs ) && (int)$blogs ) {

    $blog=array_pop($blogs);//the first blog

    ?>
    <a href="siteurl; ?>”>

    `
    After you’ve put this in your functions.php add the following to sidebar.php to call the function:

    “`

    Thanks to @sbrajesh for this snippet :)

    #100088
    modemlooper
    Moderator

    I’ve fixed this and will upload to WP repo when BP gets updated.

    #100078
    Ekine
    Participant

    I also use firebug a lot but I can’t seem to find the corresponding css style.
    Edit: Okay, I have found it using Chrome developer tools. It is this line:
    “.subcontentpost { margin-bottom: 15px;}”

    #100076
    @mercime
    Participant

    BP Codex is your friend. Disable the custom header functionality on the default BuddyPress theme … add the following to your wp-config.php file:
    `define( ‘BP_DTHEME_DISABLE_CUSTOM_HEADER’, true );`

    #100066
    anindyaray
    Member

    thanks @mercime
    actually I was using this .

    and it was creating the problem , now after I removed this line , its all ok ….

    but the other problem I mentioned about unable to change the default-header.jpg image from the default.css #header , it still persist …

    can you please show me some light ?

    #100053
    stoi2m1
    Participant

    Your best bet is to modify the css for the theme. I use Fifefox with the plugin Firebug. This allows you to highlight different sections of the site and see its styling and modify till you get things right and then apply that to your actual code.

    Your problem is not buddypress related and is better suited in a html/css forum.

    #100038
    @mercime
    Participant

    The code for the BP login form can be found from line 40 to line 52 here. Adjust divs and format to taste.

    #100027
    Daniella
    Member

    Another problem is in the email for pending requests it says,
    “To view all of your pending friendship requests: http://cornhill.org/cornhillbeta/members/ellaj/friends/requests/&#8221; but that link redirects to the home page.
    A lot of blood, sweat and tears went into this site and I am leery of deactivating that theme. Will it be ok?

    #100022
    Boone Gorges
    Keymaster

    Try switching to the BuddyPress Default theme for testing. Try sending some friend requests. If it works, then the theme is the problem, and you’ll have to get in touch with WPMUDev.

    If it still doesn’t work, please provide some more info about your setup. Are you using any other plugins?

    #100018

    Double-checked: I already had permalinks set to yr/mo/day/name; changed theme to bp-default, and all components are enabled. No change, still says page not found when attempting to go to group or forum pages from main page.

    #100017
    @mercime
    Participant

    – change permalinks in settings to something other than default – https://codex.buddypress.org/getting-started/before-installing/#wp-configuration
    – then change theme to bp-default theme
    – configure BP Components – https://codex.buddypress.org/getting-started/configure-buddypress-components/

    #100015
    @mercime
    Participant

    @AnindyaRay I see that you’ve found a header parallax tutorial. The thing is, since you’re on localhost, it’s not as easy to ID the exact corrections which would give you a fix for what’s there in the image you uploaded. That being said, my stab in the dark is adding the following style to your child theme’s stylesheet
    `body {
    max-width: change to 960px;
    }`
    which will override the parent theme’s max-width of 1250px

    If that doesn’t work, install the Firefox add http://getfirebug.com/ to find styling fix

    #100012
    luvs
    Member

    @hnla, the files are already there, and the code is already there.

    AAARRRRG. :(

    @mercime, thanks, but I like the real arras theme :)

    P.S, I have another problem lurking in the shadows….. I cannot ban members from groups. (kick and ban) “There was an error when banning the user”

    If anything could go wrong, it will! :)

    #100010
    @mercime
    Participant

    @luvs123 Not sure where you are in getting Arras theme compatible with BuddyPress. But you might want to look at this Arras Child theme with BuddyPress templates installed and configured – http://durkkooistra.com/brownbuddy/
    You might want to style the fonts smaller in the sidebar, but that’s not a deal-breaker :-)
    Good luck.

    #100004
    Hugo Ashmore
    Participant

    The javascript main file ‘global.js and also the ajax file are both included and enqueued from the main functions file in bp-default so I don’t really know why it isn’t working for you other than your child theme isn’t correctly referencing bp-default and that might be the fault of the custom theme?

    you could try adding:
    `
    // Load the AJAX functions for the theme
    require_once( TEMPLATEPATH . ‘/_inc/ajax.php’ );

    // Load the javascript for the theme
    wp_enqueue_script( ‘dtheme-ajax-js’, get_template_directory_uri() . ‘/_inc/global.js’, array( ‘jquery’ ) );
    `
    to your functions file in child theme and copying over the two files into ‘_inc’ folder of child theme and see if that works.

    #100000
    luvs
    Member

    What file?

    @hnla?

    aendrew
    Member

    Hi Roger! Thanks for the response.

    I’m running the same version of WP and BP on both servers; field IDs are the same. I cannot replicate the issue on the testing server; I’m presently thinking it might be a PHP version issue.

    I thought at one point it might be related to https://trac.buddypress.org/ticket/2171, but moving the custom profile field code to after the functions mentioned doesn’t do anything either…

    Something else I forgot to mention — the “add friend” button now appears twice. Also, I don’t think it’s an issue with my theme — I tried switching to the BP default theme and adding a profile field during the members-loop and had the same issue.

Viewing 25 results - 20,576 through 20,600 (of 31,072 total)
Skip to toolbar