Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 28,026 through 28,050 (of 31,072 total)
  • Author
    Search Results
  • #51037
    Kunal17
    Participant

    Korhan,

    I tried the code you provided:

    If I browse to my p2 user blog while logged out, it does not show me anything in the userbar. I would like to provide the user the option to log in from the user blog itself. Is the code supposed to show the BP log in/signup links in the userbar?

    If I browse to my p2 user blog while logged in, it shows the user avatar, member profile link and logout link. If I click the logout link, it takes me to the standard WP login page with the message ‘you are logged out’. Can you suggest a way to have it redirect to the same page on the userblog frontend except with the user logged out?

    I hope I am being clear about my questions. I am a novice at programming so only have a basic understanding of what the code is doing.

    Thanks again for your help.

    #51034
    cpkid2
    Participant

    Thank you, DJPaul. I’m starting to get a clue lol. Just one question – Say I use “Kubrick” for my home/blog theme. How do I get a login/password field in the sidebar? I noticed it’s not one of the widgets. Do I have to grab the code from the admin bar on top and insert it manually into the sidebar?

    #51020
    Andre
    Participant

    @crackpixels We’re not using a BP home theme since we’re trying to balance the e-zine content with the social networking piece. Instead I customized a standard WP theme (Atahualpa) and added the BP widgets into the sidebars.

    #51019
    Kunal17
    Participant

    Korhan,

    Thanks for your help! Ill try this out as soon as possible and get back.

    #51015
    Paul Wong-Gibbs
    Keymaster

    You can use any WordPress theme for the home/blog theme, yes. You’d only need a customised or Buddypress-specific theme for the member pages.

    #51011
    cpkid2
    Participant

    Thanks, Ray.

    So if I’d like to have a two-column site, would I be able to activate the default Kubrick theme and use it as the blog portion (front page) of my social network? I’d like to have my blog on the front page just like ReadWritePoem. Or would I need to use a theme made for Buddypress like the ‘home’ theme?

    #51009
    r-a-y
    Keymaster

    “themes” is a themes folder for WordPress(MU); whereas “bp-themes” is a themes folder specific to BuddyPress components.

    To be more specific, “themes” styles the blogs; “bp-themes” styles the member profiles and groups.

    ReadWritePoem’s blog posts is from the main, primary blog… it’s a simple template loop from WordPress… nothing elaborate there. In fact, looking into it further, they do not have member blogs! So if you’re familiar with regular WordPress, you’ll know how they placed the blog posts on the front page.

    #50980
    Jeff Sayre
    Participant

    jjj is correct. If you are working on BP theme customizations, you can often find a template tag to grab and output the data. That will always be the best approach.

    But if you are creating your own plugin–as I am assuming based on the title of your thread–then you must make sure that the data you are manipulating in your various functions is made available to a given function’s logic. This can sometimes be done by passing the data via paramaters. But, sometimes the simplest approach is to redeclare a varibable in that function with global.

    I can’t get anything to show up with <?php bp_user_fullname() ?> and $bp in global.

    Try this:

    <?php echo bp_user_fullname() ?>

    #50973
    Korhan Ekinci
    Participant

    For some how the code above did not go through correcty, I will paste the first part again:

    <div id="search-login-bar">

    <?php if ( is_user_logged_in() ) : ?>

    <div id="logout-link">
    <?php bp_loggedinuser_avatar_thumbnail( 20, 20 ) ?> &nbsp;
    <?php bp_loggedinuser_link() ?>
    <?php
    if ( function_exists('wp_logout_url') ) {
    $logout_link = '/ <a href="' . wp_logout_url( $bp->root_domain ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>';
    } else {
    $logout_link = '/ <a href="' . $bp->root_domain . '/wp-login.php?action=logout&redirect_to=' . $bp->root_domain . '">' . __( 'Log Out', 'buddypress' ) . '</a>';
    }

    echo apply_filters( 'bp_logout_link', $logout_link );
    ?>

    <?php do_action( 'bp_login_bar_logged_in' ) ?>
    </div>

    <?php elseif ( get_option('users_can_register') ) : ?>

    <form name="login-form" id="login-form" action="<?php echo $bp->root_domain . '/wp-login.php' ?>" method="post">
    <input type="text" name="log" id="user_login" value="<?php _e( 'Username', 'buddypress' ) ?>" onfocus="if (this.value == '<?php _e( 'Username', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Username', 'buddypress' ) ?>';}" />
    <input type="password" name="pwd" id="user_pass" class="input" value="" />

    <input type="checkbox" name="rememberme" id="rememberme" value="forever" title="<?php _e( 'Remember Me', 'buddypress' ) ?>" />

    <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e( 'Log In', 'buddypress' ) ?>"/>
    <input type="button" name="signup-submit" id="signup-submit" value="<?php _e( 'Sign Up', 'buddypress' ) ?>" onclick="location.href='<?php echo bp_signup_page() ?>'" />

    <input type="hidden" name="redirect_to" value="http://<?php echo $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ?>" />
    <input type="hidden" name="testcookie" value="1" />

    <?php do_action( 'bp_login_bar_logged_out' ) ?>
    </form>
    <?php endif // get_option('users_can_register') ?>

    <div class="clear"></div>
    </div>

    #50972
    Korhan Ekinci
    Participant

    Hi Kunal17, I use prologue theme as default user theme and I also wanted to keep the login form on top, so I added this to the header of the prologue theme:

    <div id=”search-login-bar”>

    <?php if ( is_user_logged_in() ) : ?>

    <div id=”logout-link”>

    <?php bp_loggedinuser_avatar_thumbnail( 20, 20 ) ?>  

    <?php bp_loggedinuser_link() ?>

    <?php

    if ( function_exists(‘wp_logout_url’) ) {

    $logout_link = ‘/ root_domain ) . ‘”>’ . __( ‘Log Out’, ‘buddypress’ ) . ‘‘;

    } else {

    $logout_link = ‘/ root_domain . ‘/wp-login.php?action=logout&redirect_to=’ . $bp->root_domain . ‘”>’ . __( ‘Log Out’, ‘buddypress’ ) . ‘‘;

    }

    echo apply_filters( ‘bp_logout_link’, $logout_link );

    ?>

    <?php do_action( ‘bp_login_bar_logged_in’ ) ?>

    </div>

    <?php elseif ( get_option(‘users_can_register’) ) : ?>

    <form name=”login-form” id=”login-form” action=”<?php echo $bp->root_domain . ‘/wp-login.php’ ?>” method=”post”>

    <input type=”text” name=”log” id=”user_login” value=”<?php _e( ‘Username’, ‘buddypress’ ) ?>” onfocus=”if (this.value == ‘<?php _e( ‘Username’, ‘buddypress’ ) ?>’) {this.value = ”;}” onblur=”if (this.value == ”) {this.value = ‘<?php _e( ‘Username’, ‘buddypress’ ) ?>’;}” />

    <input type=”password” name=”pwd” id=”user_pass” class=”input” value=”” />

    <input type=”checkbox” name=”rememberme” id=”rememberme” value=”forever” title=”<?php _e( ‘Remember Me’, ‘buddypress’ ) ?>” />

    <input type=”submit” name=”wp-submit” id=”wp-submit” value=”<?php _e( ‘Log In’, ‘buddypress’ ) ?>”/>

    <input type=”button” name=”signup-submit” id=”signup-submit” value=”<?php _e( ‘Sign Up’, ‘buddypress’ ) ?>” onclick=”location.href='<?php echo bp_signup_page() ?>'” />

    <input type=”hidden” name=”redirect_to” value=”http://&lt;?php echo $_SERVER[‘SERVER_NAME’] . $_SERVER[‘REQUEST_URI’] ?>” />

    <input type=”hidden” name=”testcookie” value=”1″ />

    <?php do_action( ‘bp_login_bar_logged_out’ ) ?>

    </form>

    <?php endif // get_option(‘users_can_register’) ?>

    <div class=”clear”></div>

    </div>

    You can maybe replace the

    <div id=”search-login-bar”>

    <?php bp_login_bar() ?>

    <div class=”clear”></div>

    </div>

    part of your header.php file with the first code and I hope it will work for you.

    #50969
    Archie Webmaker
    Participant

    Thank you for the responses,

    I think I will try it myself

    #50968
    gerikg
    Participant

    BBpress theme

    Theme Name: looks-like-buddypress

    Theme URI: http://manojkumar.org

    Description: Try to give similar look as default buddypress theme for users how integrate bbpress with buddypress.

    Version: 0.01

    Author: Manoj Kumar

    Author URI: http://manojkumar.org

    #50966
    Paul Wong-Gibbs
    Keymaster

    No, BP doesn’t provide a BB theme. And before someone asks, no the forum theme on this site is not being released. I’m sure if someone invented 30 hour days, then BP might come with a BB theme.

    #50958
    David Lewis
    Participant

    If you happen to use a Mac… CSSEdit is amazing. It a CSS development tool that let’s you see your changes in real time as you type your code. Similar to Firebug… except that it’s an actual development tool / editor.

    #50956
    Jeff Sayre
    Participant

    General theming guidance is beyond the scope of these forums as it really is more an issue of learning how to use CSS and WordPress/BuddyPress template loops to create the design you are after.

    But, to help get you started, here a few links:

    1. Advice on using the default BP themes or Skeleton Theme that comes with BP
    2. A great tool to use while designing your theme.
    3. Basic how tos on WordPress theme design. NOTE: this link pertains to wordpress themes in general, not BuddyPress themes. But, you should really understand WP theming before you set out to do a BP custom theme.

    #50951
    Kunal17
    Participant

    Hmm, I don’t seem to be able to catch anyone’s attention regarding this topic. Im still looking for help finding a solution for this.

    Another problem is that if anyone logs out from the userbar link from a user theme, they get redirected back to the main blog.

    #50943
    Tore
    Participant

    I’m using the WordPress P2-theme for this functionality. It won’t be integrated into Buddypress like the status update (since it’s a WP theme), but its the right thing for me. You might want to consider it.

    #50937
    Roger Coathup
    Participant

    copy over the functions:

    bp_show_register_page()

    bp_show_activation_page()

    from functions.php in bphome to your own theme’s functions.php file

    #50936
    Roger Coathup
    Participant

    Hi Gcs123

    I came across the same problem with my bespoke theme… as advised, I’d copied register.php across from bphome, but then got your error message:

    http://******.me/wp-login.php?redirect_to=http://******.me/register

    To fix this, you also need to copy across two functions from the functions.php in bphome to your theme’s function.php file:

    bp_show_register_page()

    bp_show_activation_page()

    I did this and all works fine now.

    #50923
    Tore
    Participant

    Hi!

    I’m altering the bp-member-theme to go along with P2. But these two components lay inside of a theme I’ve made with artisteer. There’s a lot of hacking code to make it all work but I’m beginning to like the result.

    The reason I’m editing bpmember is that I want horizontal navigation and not vertical. This has been quite easy to edit but has taken me some time. I’ve had no experience with BP before and just a little with WP.

    I’ve written about putting P2 in another theme before. You can find it here:

    https://wordpress.org/support/topic/294161

    Anyway.. Editing P2 is way simpler than editing the whole of bphome/bpmember. It all depends on how much you want integreated in one “seamless look”.

    Best of luck!

    #50910
    gerikg
    Participant

    I got the fatal error after deactivating the BP plugin and reactivating it. You have you delete the the BP plugin and themes and/or other files you moved out of the BP folder. (example BBpress-plugin and bphome theme) After all that fresh install.

    #50900

    If you’re using a custom theme, you’re going to want to copy the code from the bphome functions.php into your custom theme, otherwise none of the BP specific virtual pages will exist.

    #50892
    Jeff Sayre
    Participant

    So you are using a custom member theme that used to work but recently stopped working.

    Did you discover that your custom theme stopped working after you upgraded BuddyPress? If so, you are missing some new functionality in your theme. In other words, your custom theme is out of date.

    Switch to the default BP member theme and see if that works. If so, then you have three choices:

    1. Copy the functions.php file from the new default member theme into your custom theme. If that does the trick, problem solved.

    2. If that does not work, then the next option is to search through BuddyPress trac for all theme changes to the member theme since the last version. Make any necessary changes to your custom member theme.

    3. As an alternative to 2 above, you could simply compare the code in the default BP member theme with your custom member theme.

    Also, if you built your custom member theme from the default BP member theme, make sure that you have all the necessary CSS files for your custom theme.

    #50887
    kimsphan
    Participant

    Something very weird is happening. Last week, I posted that I had finally launched:

    http://workathomesafari.com.

    It’s still the basic theme, but I’m starting to develop an idea of how I want it to look.

    Anyway, when I’m logged in, I can see the post. But when I log out, the post disappears. Any ideas on what is happening?

    #50872
    texet
    Participant

    @Pcrain

    When i placed your code,it shows this error message

    Fatal error: Cannot use object of type stdClass as array in /home/username/public_html/sitename/wp-content/bp-themes/bpmember/friends/index.php on line 13

    If you update your code thusly, it should work:

    <?php

    global $bp, $wpmu;
    $potential_friend_id = $bp->displayed_user;
    $friend_status = BP_Friends_Friendship::check_is_friend( $bp->loggedin_user, $potential_friend_id );
    if ( $friend_status != 'is_friend' && $potential_friend_id != $bp->loggedin_user) {
    echo "You must be friends to view this profile.".bp_add_friend_button();
    } else { ?>

    And of course add the

    <?php } ?>

    at the end.

Viewing 25 results - 28,026 through 28,050 (of 31,072 total)
Skip to toolbar