[buddypress-trac] [BuddyPress] #1972: Bug: Wrong blog title

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Feb 17 09:05:36 UTC 2010


#1972: Bug: Wrong blog title
----------------------------+-----------------------------------------------
  Reporter:  _DorsVenabili  |       Owner:                              
      Type:  defect         |      Status:  closed                      
  Priority:  major          |   Milestone:  1.2                         
Resolution:  fixed          |    Keywords:  new blog title header custom
----------------------------+-----------------------------------------------
Changes (by _DorsVenabili):

  * status:  reopened => closed
  * resolution:  => fixed


Comment:

 I've fixed it. In file: wp-content/plugins/buddypress/bp-themes/bp-
 default/header.php in line 44:

 <?php global blog_id; ?>
 <h1 id="logo"><a href="<?php echo site_url() ?>" title="<?php _e( 'Home',
 'buddypress' ) ?>"><?php echo blog_name($blog_id); ?></a></h1>

 And we add the next function in functions.php

 function blog_name($blogid){
         global $wpdb;

         $blogname = $wpdb->get_var("SELECT meta_value FROM
 wp_bp_user_blogs_blogmeta WHERE blog_id='".$blogid."' AND
 meta_key='name'");

         return $blogname;
 }

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1972#comment:5>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list