Skip to main content

Home/ buddypress/ Group items tagged bp-custom.php

Rss Feed Group items tagged

Vernon Fowler

bp-custom.php · BuddyPress Codex - 0 views

  • bp-custom.php is often compared to your theme’s functions.php file. However, there are two primary differences between bp-custom.php and your theme’s functions.php.
  • independent from your theme
  • If you are packaging a BuddyPress theme, then you might want to consider using your theme’s functions.php instead. However, for the most part, you should use bp-custom.php
Vernon Fowler

BuddyPress.org → Docs → bp-custom.php - 0 views

  •  
    Developers may modify the functions of BuddyPress through the file bp-custom.php, placed in the directory wp-content/plugins/bp-custom.php. Please note: the bp-custom.php file is not included by default but must be manually created.
Vernon Fowler

bp-custom.php | BuddyPress Codex - 0 views

  • bp-custom.php is often compared to your theme’s functions.php file. However, there are two primary differences between bp-custom.php and your theme’s functions.php.
  • bp-custom.php runs from the /wp-content/plugins/ folder and is therefore independent from your theme. This is useful for adding code snippets that are BuddyPress-specific. Also, this code will always load regardless of what theme you are using.
  • bp-custom.php runs early in the BuddyPress-loading process. This allows you to override various settings in BuddyPress.
Vernon Fowler

Function Reference/wp is mobile « WordPress Codex - 0 views

  • This Conditional Tag checks if the user is visiting using a mobile device. This is a boolean function, meaning it returns either TRUE or FALSE.
  •  
    Nice to use in bp-custom.php rather than functions.php - especially when using the BuddyMobile plugin from @modemlooper
Vernon Fowler

Achievements | Forum | Change Displayed Description Length? | BuddyPress.org - 0 views

  • By default, bp_create_excerpt (found in /bp-core/bp-core-template.php) sets a default length of 225. The Achievements plugin calls it in achievements-templatetags.php, causing descriptions longer than 225 characters to be truncated. As a temp fix, I copied bp_create_excerpt over to bp-custom.php, increased the $length, renamed it my_bp_create_excerpt, and then renamed it within the Achievements plugin as well. (I’m sure there’s a better way to change the $length, but this works for now)
Vernon Fowler

BuddyPress: How to change avatar (picture) size larger or smaller | Otreva Designs - 0 views

  • You can add code to a functions file or adda file bp-custom.php to the wp-content/plugins folder to change image sizes Avatar specific settings can be changed: define ( ‘BP_AVATAR_THUMB_WIDTH’, 50 ); define ( ‘BP_AVATAR_THUMB_HEIGHT’, 50 ); define ( ‘BP_AVATAR_FULL_WIDTH’, 150 ); define ( ‘BP_AVATAR_FULL_HEIGHT’, 150 ); define ( ‘BP_AVATAR_ORIGINAL_MAX_WIDTH’, 640 ); define ( ‘BP_AVATAR_ORIGINAL_MAX_FILESIZE’, $max_in_kb ); define ( ‘BP_AVATAR_DEFAULT’, $img_url ); define ( ‘BP_AVATAR_DEFAULT_THUMB’, $img_url ); Reply
Vernon Fowler

Stealth Mode for Buddypress Site Admin Plugin | Buddy Dev - 0 views

  • Another Alternative, with less features Ok,  Now for all of you who have yet not joined, buddydev Premium, well, you can use an alternative. Put this code in bp-custom.php and None of the site admin activity ime will be recorded.So if you are a site admin, you will never appear in the Who is Online/ recently active members widget. 12345add_action("plugins_loaded","bpdev_init_sm_mode");function bpdev_init_sm_mode(){if(is_site_admin())remove_action("wp_head","bp_core_record_activity");//id SM is on, remove the record activity hook}
1 - 7 of 7
Showing 20 items per page