Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 28,326 through 28,350 (of 31,073 total)
  • Author
    Search Results
  • #48964
    Burt Adsit
    Participant

    Did you move the plugin theme templates to your active theme?

    #48956

    In reply to: BuddyBar for bbPress

    Added this to my style’s css and it works:

    /* Fixing Admin Buddy Bar */
    #wp-admin-bar img#admin-bar-logo {
    padding-top: 13px;
    position: absolute !important;
    top: 8px;
    left: 10px;
    }

    That 13px feels so weirdly random to me. Ah well. My pm to JJJ was #666, my fix for CSS was #13… There’s a theme going on here! :D

    #48913
    Burt Adsit
    Participant

    I don’t really understand what all that above is at all. If you are trying to add a new nav item to the member and bp home themes then you need to do something similar to the following:

    function oci_bpc_nav_item(){
    ?>
    <li<?php if ( bp_is_page( OCI_CONTENTS_SLUG ) ) {?> class="selected"<?php } ?>>
    <a href="<?php echo bp_core_get_root_domain() ?>/<?php echo OCI_CONTENTS_SLUG ?>
    " title="<?php _e( 'Contents', 'bpcontents' ) ?>">
    <?php _e( 'Contents', 'bpcontents' ) ?></a></li>
    <?php
    }
    add_action('bp_nav_items', 'oci_bpc_nav_item');

    That’s the way bpc hooks the action ‘bp_nav_items’ that header.php generates after displaying the default nav items. Your ‘Event’ and ‘Content’ items are displayed that way. You need to define a function that responds to ‘bp_nav_items’ and generate the appropriate html for the button.

    #48906
    Robert
    Participant

    ok, here’s my first buddypress powered site ready to go public.

    As you can see my theme was very much inspired but the buddypress website.

    Hope you like.

    http://wildlifefans.com

    #48901
    Greg
    Participant

    Bumping this to see whether I am the only one who can see this fairly basic bug. I have repro’d on a site with no customization and standard themes, and on testbp.org.

    r-a-y
    Keymaster

    Can you post your full <ul id=”header”>?

    I have a feeling something is messing up there.

    Actually you know what?

    Use the default header from the original bpmember theme… and see if you get any weird bugs.

    <ul id="header">
    <li<?php if ( bp_is_page( 'home' ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a></li>
    <li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php bp_home_blog_url() ?>" title="<?php _e( 'Blog', 'buddypress' ) ?>"><?php _e( 'Blog', 'buddypress' ) ?></a></li>
    <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_MEMBERS_SLUG ?>" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a></li>

    <?php if ( function_exists( 'groups_install' ) ) { ?>
    <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_GROUPS_SLUG ?>" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a></li>
    <?php } ?>

    <?php if ( function_exists( 'bp_blogs_install' ) ) { ?>
    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_BLOGS_SLUG ?>" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a></li>
    <?php } ?>

    <?php do_action( 'bp_nav_items' ); ?>
    </ul>

    connorg
    Participant

    What i did was go into the header.php file for the bp-home theme, and edited what was within the <ul id=”header”> tag. For example, this is what I have for the Games page I created through the Dashboard: <li<?php if ( bp_is_page( games ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo games ?>" title="<?php _e( 'Games', 'buddypress' ) ?>"><?php _e( 'Games', 'buddypress' ) ?></a></li>. The only differences are those I felt were relative to the new page.such as where it says bp_is_page, I put games into the perenthesis instead of what was there before.

    #48863
    r-a-y
    Keymaster

    Your code is missing the all-important add_action!

    You had the function defined, but nothing is executing it! hehe

    Yeah there’s at least three functions in the default bphome theme functions.php that you should copy over.

    Just copy the whole functions.php file over from bphome and you should be good to go!

    Remember to green light the thread and select “resolved”!

    #48858
    r-a-y
    Keymaster

    The BP search form is generated from the bp_search_form() function.

    Short answer is you can’t modify that function.

    But you can add this to your BP member theme:

    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
    <label class="hidden" for="s"><?php _e('Search for:'); ?></label>
    <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </div>
    </form>

    Copied and pasted from default Kubrick WP theme.

    That should work, but report back and let me know.

    #48853
    r-a-y
    Keymaster

    I think I’ve got it.

    Do you have the same functions.php in your “buddypress-home” theme?

    This is the code that does the magic:

    function bp_show_home_blog() {
    global $bp, $query_string;

    if ( $bp->current_component == BP_HOME_BLOG_SLUG ) {
    $pos = strpos( $query_string, 'pagename=' . BP_HOME_BLOG_SLUG );

    if ( $pos !== false )
    $query_string = preg_replace( '/pagename=' . BP_HOME_BLOG_SLUG . '/', '', $query_string );

    query_posts($query_string);

    if ( is_single() )
    bp_core_load_template( 'single', true );
    else if ( is_category() || is_search() || is_day() || is_month() || is_year() )
    bp_core_load_template( 'archive', true );
    else
    bp_core_load_template( 'index', true );
    }
    }
    add_action( 'wp', 'bp_show_home_blog', 2 );

    #48848
    r-a-y
    Keymaster

    Okay I think I can safely say it’s a BP theme issue.

    You need to make sure your code is exactly the same as the default wp-content/themes/bphome/comments.php (or wp-content/plugins/buddypress/bp-themes/bphome/comments.php)

    Try that.

    #48841
    3411446
    Inactive

    I am actually using a custom theme I made myself by modifying the buddypress home theme. It is the only theme available on the website. I’ve disabled all others.

    Here is the link to the website. http://entreprenuerinmaking.com

    You will notice that viewing articles at http://entreprenuerinmaking.com/blog you do not see the comments section, but if you go to http://entreprenuerinmaking.com/twd the comments section is visible.

    Placing echo statements in the theme files further shows that the /blog site is using index.php to serve a single article, while the /twd site is using single.php to serve a single article. They should both use the single.php file. In order to resolve my issue I have to figure out why.

    #48838
    r-a-y
    Keymaster

    twdsje, by the sound of it, I’m guessing you’re using the default WordPress MU home theme.

    You can choose a different theme you know!

    Do you even have BuddyPress installed?

    If you do, select the BuddyPress home theme or some other WordPress theme in the WPMU admin area and you’ll see something entirely different.

    That’s the beauty of themes!

    #48836
    3411446
    Inactive

    I guess my main question here is why does the main blog use the index.php part of the theme to display a single article, when all the other blogs using the same theme use single.php?

    #48830
    r-a-y
    Keymaster

    This doesn’t sound like a BuddyPress issue.

    It’s a WPMU issue; to be more specific, it’s a theme issue.

    Do you want to show a link to comments or do you want to show actual comments?

    There are number of ways to do this… theme hacking or adding a widget which displays the latest comments.

    Adding a widget would be the simplest, but it depends on what you want to do.

    #48829
    r-a-y
    Keymaster

    btw, good luck with your conference in November :)

    Oh and be sure to green light this thread… set the thread to “resolved” at the top!

    #48827
    malbatron
    Participant

    Thank R-A-Y! It works! I went ahead and also added that line to the style.css in the bphome theme.

    Again, thanks so much!

    #48824
    r-a-y
    Keymaster

    Arghh… your server hates me! Way too slow!

    This will work… in your bp-themes/bpmember/style.css, add this:

    #header {height:112px;}

    Adjust the height to your liking… don’t ask me why I have to define the height… it’s what works the quickest at this time without me going into your CSS and debugging! ;)

    #48820
    malbatron
    Participant

    Hi Ray,

    Here’s the LINK. It’s on the member theme. I appreciate any help you offer!

    #48817
    r-a-y
    Keymaster

    Which one is the bad header? The home theme or the member theme?

    Looks simple enough… the container holding the bad header needs a background CSS attribute. That’s what my guess would be.

    I can’t do anything from here without a link though!

    r-a-y
    Keymaster

    Yes you need deep integration for the BuddyBar bbPress plugin.

    Make sure you follow the instructions in the readme.txt.

    Also for the forum look… unless you’re using the default BuddyPress look + Manoj’s bbPress theme (http://manojkumar.org/buddypress-theme-for-bbpress/), you’ll have to basically create a new theme that matches your WP/BuddyPress theme.

    There’s no really good way around it I’m afraid.

    #48814
    malbatron
    Participant

    I’m pretty sure it’s simply a CSS problem but I’m killing myself trying to figure out how to fix it! I took the advice of the FAQ and have been using Firebug (which is great!) but I’m still at a loss. Here are some shots of the good header (this includes the nav area):

    Good Header

    and bad header:

    Bad Header

    Any CSS pros out there willing to help a newbie?

    #48808

    In reply to: BuddyBar for bbPress

    matthijsv
    Participant

    I was adding these lines (from the readme.txt)

    if ( !defined( 'ABSPATH' ) & !defined( 'XMLRPC_REQUEST' )) {
    define( 'WP_USE_THEMES', false );
    //
    // You will need to get the ABSOLUTE path to this file |
    // |/
    //include_once( '/usr/home/dragons/domains/dragonsconnect.eu/public_html/preview/wp-blog-header.php' );
    header( "HTTP/1.1 200 OK" );
    header( "Status: 200 All rosy" );
    }

    When I add the line you suggested I get the same result, no response at all from any bbpress page.

    -edit-

    Seems that wp-blog-header.php is causing the error, I’m expirimenting with commenting out some lines there atm.

    Jeff Sayre
    Participant

    yairnazz-

    You need to learn CSS and basic WordPress theming skills. Below you will find a few links to get you started.

    Also, since your issue has nothing to do with the proper functioning of BuddyPress, I’m changing the topic indicator to “not a support question”.

    1. https://codex.wordpress.org/Blog_Design_and_Layout#Themes_and_Templates
    2. http://www.w3schools.com/Css/default.asp
    3. https://codex.buddypress.org/getting-started/using-the-buddypress-themes/
    4. You should use Firefox with the Firebug Add-on. It is a great tool that not only allows you to find out within which files certain CSS selectors are located, but also to temporarily change them and see what impact they have on the design.

    dainismichel
    Participant

    These two threads also contain relevant info:

    https://buddypress.org/forums/topic/how-can-we-integrate-the-buddy-press-theme-with-the-user-blogs/page/2

    https://buddypress.org/forums/topic/default-theme-issues

    However, I’m still interested in distilling a procedure out of them. How should I proceed?

    Best,

    Dainis

Viewing 25 results - 28,326 through 28,350 (of 31,073 total)
Skip to toolbar