Search Results for 'theme'
-
AuthorSearch Results
-
August 15, 2009 at 6:47 am #51037
In reply to: problem with using the home theme as a user theme
Kunal17
ParticipantKorhan,
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.
August 15, 2009 at 4:29 am #51034In reply to: noob questions…new to buddypress
cpkid2
ParticipantThank 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?
August 14, 2009 at 5:47 pm #51020In reply to: BuddyPress Showoff: Post your links
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.
August 14, 2009 at 3:02 pm #51019In reply to: problem with using the home theme as a user theme
Kunal17
ParticipantKorhan,
Thanks for your help! Ill try this out as soon as possible and get back.
August 14, 2009 at 11:32 am #51015In reply to: noob questions…new to buddypress
Paul Wong-Gibbs
KeymasterYou 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.
August 14, 2009 at 7:34 am #51011In reply to: noob questions…new to buddypress
cpkid2
ParticipantThanks, 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?
August 14, 2009 at 6:58 am #51009In reply to: noob questions…new to buddypress
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.
August 13, 2009 at 6:39 pm #50980In reply to: bp tags not working in plugins?
Jeff Sayre
Participantjjj 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() ?>August 13, 2009 at 4:43 pm #50973In reply to: problem with using the home theme as a user theme
Korhan Ekinci
ParticipantFor 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 ) ?>
<?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>August 13, 2009 at 4:40 pm #50972In reply to: problem with using the home theme as a user theme
Korhan Ekinci
ParticipantHi 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://<?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.
August 13, 2009 at 4:10 pm #50969In reply to: Buddypress default Forum bbpress theme
Archie Webmaker
ParticipantThank you for the responses,
I think I will try it myself
August 13, 2009 at 3:46 pm #50968In reply to: Buddypress default Forum bbpress theme
gerikg
ParticipantBBpress 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
August 13, 2009 at 3:34 pm #50966In reply to: Buddypress default Forum bbpress theme
Paul Wong-Gibbs
KeymasterNo, 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.
August 13, 2009 at 1:21 pm #50958In reply to: How to customize Buddypress Theme
David Lewis
ParticipantIf 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.
August 13, 2009 at 12:57 pm #50956In reply to: How to customize Buddypress Theme
Jeff Sayre
ParticipantGeneral 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:
- Advice on using the default BP themes or Skeleton Theme that comes with BP
- A great tool to use while designing your theme.
- 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.
August 13, 2009 at 10:58 am #50951In reply to: problem with using the home theme as a user theme
Kunal17
ParticipantHmm, 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.
August 12, 2009 at 11:53 pm #50943In reply to: Facebook-esque status updates?
Tore
ParticipantI’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.
August 12, 2009 at 7:20 pm #50937In reply to: Register page not working after update
Roger Coathup
Participantcopy over the functions:
bp_show_register_page()
bp_show_activation_page()
from functions.php in bphome to your own theme’s functions.php file
August 12, 2009 at 7:18 pm #50936In reply to: Problems with Sign up (redirect)
Roger Coathup
ParticipantHi 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.
August 12, 2009 at 11:20 am #50923Tore
ParticipantHi!
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!
August 11, 2009 at 8:14 pm #50910In reply to: wordpress mu 2.8.3+buddypress
gerikg
ParticipantI 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.
August 11, 2009 at 6:56 pm #50900In reply to: None of the Pages work after fresh install
John James Jacoby
KeymasterIf 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.
August 11, 2009 at 5:26 pm #50892In reply to: Help! – I'm a BP noob and I broke my theme!
Jeff Sayre
ParticipantSo 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.
August 11, 2009 at 2:32 pm #50887In reply to: BuddyPress Showoff: Post your links
kimsphan
ParticipantSomething very weird is happening. Last week, I posted that I had finally launched:
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?
August 11, 2009 at 2:06 am #50872In reply to: Privacy options (friends only viewing)
texet
ParticipantWhen 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.
-
AuthorSearch Results