[buddypress-trac] [BuddyPress] #2496: What if members name is same as post title/slug

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Jul 4 21:39:00 UTC 2010


#2496: What if members name is same as post title/slug
-------------------------+--------------------------------------------------
 Reporter:  nahummadrid  |       Owner:       
     Type:  defect       |      Status:  new  
 Priority:  trivial      |   Milestone:  1.2.6
Component:  Core         |    Keywords:       
-------------------------+--------------------------------------------------
 I'm on wp3.0 and 1.2.4.1 BP ---
 While working on a custom header nav menu for blog posts versus rest of
 the site (brief version below. ) I noticed on a couple of my members
 profiles  had the custom menu appear in their profile. I dug deeper and
 noticed that the user name was the same as a blog post title that existed.
 i made the blog post title slightly different and it removed the custom
 nav menu from the users.

 from my original post in bp.org http://buddypress.org/community/groups
 /how-to-and-troubleshooting/forum/topic/if-members-name-is-same-as-post-
 titleslug/


 <?php if ( is_current_blog(1) && is_single() ) : ?>
 <ul>
 <li>menu for blog posts</li>
 </ul>
 <?php else:?>
 <ul>
 <li>menu for everything else</li>
 </ul>
 <?php endif;?>

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2496>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list