Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 22,601 through 22,625 (of 68,946 total)
  • Author
    Search Results
  • #156092
    Kyle H
    Participant

    @bphelp Yes the current structure is /mytheme/css/buddypress.css.

    Any other ideas? I’d really like to get this working.

    modemlooper
    Moderator

    There is also bp_is_activity_component()

    modemlooper
    Moderator

    here’s the code for bp_is_page. You can use

    if ( !bp_is_user() && bp_is_current_component( ‘activity’) )

    `function bp_is_page( $page = '' ) {
          
           if ( !bp_is_user() && bp_is_current_component( $page )  )
               return true;
       
           if ( 'home' == $page )
               return is_front_page();
      
           return false;
       }`
    #156084
    Ben Hansen
    Participant

    yeah idk but i do know that it’s meant for the primary site none of the buddypress stuff would do anything on the sub-sbites anyway.

    akgt
    Participant

    Yes I have, but i’ve had no reply.

    #156079
    Hugo Ashmore
    Participant

    Oh and you ought really to ask this question of the theme authors, as they are the ones that have diverged from the norm so are best placed to understand or know how they have and how that has been done and suggest an approach you can take. They just need to know that BP attempts to use the standard WP templates and the content loop replaced with BP content.

     

    Failing all the above you may need to fall back on the older method of  overloading BP templates into your child and ensuring the markup matches to the themes markup.

     

    You may like to look through the codex to see if the constructor theme has been template packed by Mercime.

    #156078
    Hugo Ashmore
    Participant

    and what is in this file:

    // load one of layout pages (layouts/*.php) based on settings
    get_constructor_layout(‘page’);

     

    This is going to be a problem with these frameworks that break with the normal WP methods for their own approach to templating and where users are going to have to figure out how to deal with this.

    You could try creating a file named buddypress.php in your theme root and in that file copy the contents of what ever is in layouts/page.php but that file may also not be standard.

    #156077
    randerson1228
    Participant

    single.php
    /**
    * @package WordPress
    * @subpackage Constructor
    */
    // requeried comments
    wp_enqueue_script( ‘comment-reply’ );

    // load header.php
    get_header();

    // load one of layout pages (layouts/*.php) based on settings
    get_constructor_layout(‘single’);

    // load footer.php
    get_footer();

    Just a note:
    open and close php are removed as I think that is causing the entire file to not show up…

    #156076
    randerson1228
    Participant

    hmm… dont know where they go to…
    index.php…
    /**
    * @package WordPress
    * @subpackage constructor
    */
    // Stupid Parser This is Theme support the Gravatar Service
    // get_avatar();

    // load header.php
    get_header();

    // load one of layout pages (layouts/*.php) based on settings
    get_constructor_layout(‘index’);

    // load footer.php
    get_footer();

    #156075
    randerson1228
    Participant

    And here is index.php…

    #156074
    randerson1228
    Participant

    hmm… I pasted all three, but only one showed up.. 2nd try… here is single.php…

    #156073
    randerson1228
    Participant

    Here is single.php…

    Here is Page.php
    <?php
    /**
    * @package WordPress
    * @subpackage Constructor
    */
    wp_enqueue_script( 'comment-reply' );

    // load header.php
    get_header();

    // load one of layout pages (layouts/*.php) based on settings
    get_constructor_layout('page');

    // load footer.php
    get_footer();

    Here is index.php…

    Where should I look next and what should I change?

    Thanks for your help.
    Cheers
    Roy

    #156068
    bp-help
    Participant

    @naijaping @mercime
    Okay I finally got it. Not certain it is totally right but it looks good in both chrome and firefox. I did have to create a div class in the members-loop.php called user-location surrounding the code from step 3 in the tutorial to be able to style it. The changes I made are in the below css in case anyone wants to try this. I also included a pic at the bottom to show the end result. Thank you both for your help! Cheers!
    `
    /*
    Theme Name: BuddyPress Child
    Theme URI: http://example.com/
    Description: Child theme for the BuddyPress Default theme
    Author: bphelp
    Author URI: http://example.com/about/
    Template: bp-default
    Version: 1.0
    Tags: blue, buddypress, custom-background, custom-header, custom-menu, editor-style, featured-image-header, featured-images, fixed-width, light, right-sidebar, rtl-language-support, sticky-post, threaded-comments, translation-ready, two-columns, white
    */
    /*————————————————————-
    Custom CSS
    ————————————————————–*/

    @import
    url(“../responsive/style.css”);

    /* Custom member loop avatar styling */
    #members-dir-list img.avatar {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    -webkit-box-shadow: 0 1px 0 #fff;
    -moz-box-shadow: 0 1px 0 #fff;
    box-shadow: 0 1px 0 #fff;
    }

    #members-dir-list a:hover img.avatar {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: -webkit-filter 0.2s ease-in-out;
    -moz-transition: -moz-filter 0.2s ease-in-out;
    transition: filter 0.2s ease-in-out;
    }

    #members-list li {
    overflow: auto;
    list-style: none;
    float: left;
    width: 30%;
    margin: 20px 20px 28px 0;
    border: 0;
    }

    #members-dir-list ul.item-list li div.item-title, #members-dir-list ul.item-list li h4, #members-dir-list ul.item-list li div.item-meta
    {
    width: 62%;
    text-align: center;
    }
    .user-location {
    width: 62%;
    text-align: center;
    }

    #members-dir-list ul.item-list li div.item-title {
    font-size: 110%;
    }

    #members-dir-list ul.item-list li div.item-meta {
    text-transform: uppercase;
    font-size: 80%;
    }

    #members-dir-list ul.item-list li img.avatar {
    margin-bottom: 8px;
    }

    #members-dir-list a.friendship-button.add {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    border: 5px solid #89ac48;
    font-size: 26px;
    font-weight: bold;
    background: #a5d156;
    color: #ffffff;
    line-height: 50px;
    margin: 18px 102px 0 0;
    }

    #members-dir-list a.friendship-button.is_friend.remove {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    border: 5px solid #CC0000;
    font-size: 26px;
    font-weight: bold;
    background: #FF5050;
    color: #ffffff;
    line-height: 50px;
    margin: 18px 102px 0 0;
    }

    ul#members-list.item-list li div.action {
    text-align: center;
    overflow-y: hidden;
    top: 18px;
    right: 6px;
    }

    #member-dir-count-bottom {
    display: none;
    }
    /* End Custom member loop avatar styling */
    `
    members directory

    #156065
    Hugo Ashmore
    Participant

    This is a problem with your theme.

     

    BP theme compatibility is designed to automagically use standards WP templates if  certain custom ones aren’t found, assuming you haven’t created any custom files in your theme BP is looking for these files in this order:

    page.php

    single.php

    index.php

    If you theme does not have these or use one in a standard manner then you may well get a screwy layout, but it’s going to be very hard to tell you what is going on with a third party theme like this.

     

    Looking at BP pages I can see straight away something not quite right as there is a distinct lack of WP/BP body classes that I would expect to see.

     

    You’re going to need to look those standard files above, determine which is being used by BP components in theme compat mode then try and work out what your framework is using to generate your general page.php page views i.e what file is used when you create a WP ‘page’.

     

    #156059
    bp-help
    Participant

    @cikez did you copy the buddypress css directory folder as well as its contents to the root of your theme? If I am correct it needs to maintain its directory structure so in the root of your theme if you copied it correctly there will be a folder named css and inside it will contain buddypress.css

    #156058
    Kyle H
    Participant

    @hnla

    I am using an Artisteer theme. I am not sure what other information you need. I am moving the buddypress.css file to a folder /css/ in my themes directory. If i do not move it over everything looks ok, but as soon as I move buddypress.css over it seems to remove all styling from the default BP install.

    Thanks.

    #156057
    carlh1
    Participant

    Thanks Hugo, what exact file are you talking about? the page “groups” is assigned to the “groups” in buddypress settings. Do you just want the source from view source in my browser? I dont’ think that’s what you are asking for. Where exactly can I find the file Paul was asking for? Is it in the editor, or do I need to ftp to find it? Is it in the buddypress plugin directory?

    #156054
    bp-help
    Participant

    @karmatosed Actually I got confused because I have various installations of WP and BP on my localhost. Actually on my WP 3.5.1 install and BP 1.7b1 install using a child theme of “Responsive” I just use my child themes style.css to overide any buddypress css that I need too. Reason I do this is so if the “Responsive” theme gets updated then my child themes styles stay intact. Make sense?

    #156053
    bp-help
    Participant

    @naijaping @mercime
    I removed #buddypress from the css and here is what my style.css looks like:
    `
    /*
    Theme Name: BuddyPress Child
    Theme URI: http://example.com/
    Description: Child theme for the BuddyPress Default theme
    Author: bphelp
    Author URI: http://example.com/about/
    Template: bp-default
    Version: 1.0
    Tags: blue, buddypress, custom-background, custom-header, custom-menu, editor-style, featured-image-header, featured-images, fixed-width, light, right-sidebar, rtl-language-support, sticky-post, threaded-comments, translation-ready, two-columns, white
    */
    /*————————————————————-
    Custom CSS
    ————————————————————–*/

    @import
    url(“../responsive/style.css”);

    /* Custom member loop avatar styling */
    #members-dir-list img.avatar {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    -webkit-box-shadow: 0 1px 0 #fff;
    -moz-box-shadow: 0 1px 0 #fff;
    box-shadow: 0 1px 0 #fff;
    }

    #members-dir-list a:hover img.avatar {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: -webkit-filter 0.2s ease-in-out;
    -moz-transition: -moz-filter 0.2s ease-in-out;
    transition: filter 0.2s ease-in-out;
    }

    #members-list li {
    overflow: auto;
    list-style: none;
    float: left;
    width: 30%;
    margin: 20px 20px 28px 0;
    border: 0;
    }

    #members-dir-list ul.item-list li div.item-title, #members-dir-list ul.item-list li h4, #members-dir-list ul.item-list li div.item-meta
    {
    width: 100%;
    text-align: center;
    }

    #members-dir-list ul.item-list li div.item-title {
    font-size: 110%;
    }

    #members-dir-list ul.item-list li div.item-meta {
    text-transform: uppercase;
    font-size: 80%;
    }

    #members-dir-list ul.item-list li img.avatar {
    margin-bottom: 8px;
    }

    #members-dir-list a.friendship-button.add {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    border: 5px solid #89ac48;
    font-size: 26px;
    font-weight: bold;
    background: #a5d156;
    color: #ffffff;
    line-height: 50px;
    }

    #members-dir-list a.friendship-button.is_friend.remove {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    border: 5px solid #CC0000;
    font-size: 26px;
    font-weight: bold;
    background: #FF5050;
    color: #ffffff;
    line-height: 50px;

    }

    ul#members-list.item-list li div.action {
    text-align: center;
    overflow-y: hidden;
    top: 18px;
    right: 6px;
    }
    /* End Custom member loop avatar styling */
    `
    Here is another pic to see the changes but it still needs some adjusting.
    members directory
    Hope you guys can help! I appreciate the help you have given so far! Thanks!

    #156050
    carlh1
    Participant

    Thanks for the reply Paul. Sorry for my ignorance, I’m not schooled in themeing. What file do you want to see? When I look in the editor shouldn’t I be able to see a groups template in that list somewhere? I don’t. And the “groups” page that was created when I installed buddypress doesn’t have any code. What can I send you?

    #156049
    bookee
    Participant

    @mercime, again thanks for the quick reply. I copied the following lines of code to my theme’s sidebar.php (very bottom of the page), but nothing happens meaning the login form doesn’t show on the sidebar.  Is there a specific location in the sidebar.php file to add it?

    What i meant by top menu login option is having a member login menu that would take the registered users to a login form similar to the form on the sidebar. Hope that makes sense.  Below is the code i copied to my theme’s sidebar:

    [EDIT – please use pastebin.com to post long blocks of code. ~~ Mercime]

    Thanks!

    #156046

    In reply to: zenthemes?

    shanebp
    Moderator

    I’ve never used zenthemes.

    But their Buddies theme page says:
    “WordPress 3.3.1 & BuddyPress 1.5.3.1, bbPress 2 compatible”

    So it’s out of date – should be at least WP 3.5 and BP 1.6

    terraling
    Participant

    Sorry, I missed the array() out of my example.

    The slug of my page is actually “talk-of-the-town”, it is the static front-page of the site and has the buddypress activity page assigned to it. The page id is 95.

    None of these tests identify the page, although they do identify the other pages in the list:

    is_page(array('page1','page2','page3','talk-of-the-town'))  ? get_template_part('filters') : get_sidebar();
    is_page(array('page1','page2','page3','95'))  ? get_template_part('filters') : get_sidebar();
    is_page(array('page1','page2','page3','activity'))  ? get_template_part('filters') : get_sidebar();

    bp_is_page(‘activity’) does work.

    I have the same problem with the groups page, btw.

    The above is by way of information. The test is to load a special sidebar on certain pages, otherwise load the normal sidebar. I’m just going to reverse the test, to load the normal sidebar for other specified pages, otherwise load the special sidebar.

    Thanks for your help…

    Hugo Ashmore
    Participant

    Not sure at what point you’re running the check but simply dumping is_page(‘activity’) out in the header.php of a bp enabled theme only returns true when on activity page.

     

    Not sure about your example of comma separated items didn’t think that worked although you can pass an array.

     

    Maybe you need to do an if(  is_home() && bp_is_current_component(‘activity’) )

    terraling
    Participant

    Why does is_page(‘activity’) not work?

    I don’t know, that’s why I posted the question.

    It seems that if you have a page which you assign one of the BP pages (eg activity) to, then BP somehow hijacks it so that WP is no longer able to recognise it by its slug or, in this case, using is_front_page().

Viewing 25 results - 22,601 through 22,625 (of 68,946 total)
Skip to toolbar