Subdomain Posts
PHP | 136 days ago
PHP | 148 days ago
Recent Posts
None | 2 sec ago
None | 9 sec ago
ActionScript 3 | 18 sec ago
None | 27 sec ago
Python | 32 sec ago
OCaml | 42 sec ago
None | 51 sec ago
None | 57 sec ago
Python | 1 min ago
None | 1 min ago
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By sbrajesh on the 24th of Oct 2009 08:01:48 PM Download | Raw | Embed | Report
  1. <?php
  2. remove_action( 'bp_adminbar_logo', 'bp_adminbar_logo' );/*remove the default buddypress style logo(text of your sitename)
  3. */
  4. //now add your own logo here
  5. add_action( 'bp_adminbar_logo', 'my_bp_adminbar_logo' );
  6.  
  7. function my_bp_adminbar_logo()
  8. {
  9. //output the logo
  10. //output the logo
  11. global $bp;
  12.        
  13. echo '<a href="' . $bp->root_domain . '"><img id="admin-bar-logo" src="http://yoursite.com/logo.gif" alt="your site title" /></a>';
  14.  
  15.  
  16. /*
  17. please note ,you must replace http://yoursite.com/log.gif with the url of your logo*/
  18.  
  19. }
  20. ?>
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: