There’s no image used. Only CSS. Check out header.php of the template file.
Is this the code to one of the top buttons you mean in the header.php
<?php if ( function_exists( ‘bp_blogs_install’ ) ) { ?>
<li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) {?> class=”selected”<?php } ?>>/<?php echo BP_BLOGS_SLUG ?>” title=”<?php _e( ‘Blogs’, ‘buddypress’ ) ?>”><?php _e( ‘Blogs’, ‘buddypress’ ) ?>
<?php } ?>
I still cant get this to work I have installed simple forums and want a link/ button to show up in the top members theme so they can go straight to the forum when the members are logged in
thanks
This is how I did it.
I modified header.php in the buddypress theme AND the member theme.
There is probably a better way since the forums location is included as part of the integration, however it works, and you can use this principle to include a hard coded link to anywhere.
Find the bit of code that starts <div id="header">
The first bit is the routine to run the blogs page, the second opens up bbPress in a seperate tab.
`<?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 } ?>
<li><a href=”http://www.mypartyonparty.biz/forums” target=”_blank” title=”<?php _e( ‘Support’, ‘buddypress’ ) ?>”><?php _e( ‘Support’, ‘buddypress’ ) ?></a></li>
<?php do_action( ‘bp_nav_items’ ); ?>`
What I’d like to do is present the forums in the same way that is done on here (BuddyPress.org, ) that just needs a bit of thinking about…
Hope that helps
Thanks Gorden I will play around with it now I know where to look
Thanks Gorden that worked a treat for me
All you have to do is create a php file called “add_forum_to_menu.php” with the following code:
<?php
function add_forums_to_main_menu() {
$class = (bp_is_page('forums')) ? ' class="selected" ' : '';
echo '<li ' . $class. '><a href="' . get_option('home') . '/forums"
title="' . __( 'Forums', 'buddypress' ) .'">' .
__( 'Forums', 'buddypress' ) .'</a></li>';
}
add_action('bp_nav_items','add_forums_to_main_menu');
?>
and put it in the mu-plugins directory. Make sure the “/forums” path in the above code points to your forum directory (mine is at http://www.domain.com/forums)
The only potential draw back with that method Erwin, is that it adds the link at the end of the assembled navigation instead of giving you total control over it.
Something to think about, is that BuddyPress really does allow for per-theme blog setups.
The difference between:
http://delsolownersclub.com/
and
http://delsolownersclub.com/news/
and
http://delsolownersclub.com/mafdark/
Are all just smoke and mirrors with different themes.
You could really make any ‘blog’ of your website do whatever you want it to do, just like how the BuddyPress Codex is really just another blog.
Morpheus: “Do you think that’s air you’re breathing now?”