Skip to main content

Home/ buddypress/ Group items tagged functions

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

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

gglnx/private-buddypress · GitHub - 0 views

  • Can I change the URL where non-loggedin users are being redirected? = Yes, currently you need to write a filter function in your functions.php. `function redirect_nonloggedin_users($current_uri, $redirect_to) { // Redirect users to the homepage // Caution! Exclude the homepage from 'Private BuddyPress' options // to avoid redirection loops! return get_option('siteurl') . '/?from=' . $redirect_to; } add_filter('pbp_redirect_login_page', 'redirect_nonloggedin_users', 10, 2);`
  •  
    Protect your BuddyPress Installation from strangers. Only registered users will be allowed to view the installation and all other users will be redirected to the login page. Users attempting to view blog content via RSS are also authenticated via HTTP Auth. You can exclude the registration, the homepage and blog pages (e.g. posts, archives and non-buddypress pages) from protection. In combination with the plugin 'Invitation Code Checker' your installation stays private but the registration is for users with a special password open.
Vernon Fowler

plugin adds group email functionality to BuddyPress - 0 views

  •  
    This plugin adds group email functionality to BuddyPress allowing a group admin or moderator… http://t.co/QwEQU99d
Vernon Fowler

Function Reference/get template part « WordPress Codex - 0 views

    • Vernon Fowler
       
      TIL buddypress theme compatibility only plays nicely if the theme has been going with references to get_template_part e.g. http://codex.wordpress.org/Function_Reference/get_template_part [28/05/2013 4:35:25 PM] Bronson Quick: we have a client who didn't have budget and wants to use an existing theme and i couldn't work out why theme compatibility wouldn't generate permalinks properly [28/05/2013 4:35:30 PM] Bronson Quick: turns out that was the reason 
  •  
    "Load a template part into a template (other than header, sidebar, footer). Makes it easy for a theme to reuse sections of code and an easy way for child themes to replace sections of their parent theme. Includes the named template part for a theme or if a name is specified then a specialized part will be included. If the theme contains no {slug}.php file then no template will be included. "
Vernon Fowler

Using bbPress 2.0 : WPMayor - 0 views

  •  
    "bbPress 2.0 comes with Akismet and BuddyPress functionalities baked-in, so if you're already using either plugin, no additional configuration is required. It is the official WordPress forum plugin, however documentation is very sparse. While implementing the forum on one of our clients' sites, I came across a number of resources and tips that I will share with you today."
Vernon Fowler

WordPress › Support » [Plugin: Private BuddyPress] Only exclude SOME pages (h... - 0 views

  • Simply modify the example code from the plugin FAQs in order to unblock a page by its ID number: // unblock a page by id function make_page_visible($visibility) { global $bp; if (is_page(26)) return false; return $visibility; } add_filter('pbp_login_required_check', 'make_page_visible');
    • Vernon Fowler
       
      This works by page ID as well as the array option including slug and Page Title - see highlight below.
  • is_page(array(42,'about-me','Contact'))
    • Vernon Fowler
       
      Works in combination with the above highlight in a theme's functions.php file.
  •  
    Only exclude SOME pages (how-to)
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/add theme support « WordPress Codex - 0 views

  • HTML5 This feature allows the use of HTML5 markup for the comment forms, search forms and comment lists. add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form' ) );
    • Vernon Fowler
       
      How to get this working in a BuddyPress theme? For example, the groups search form in the groups directory.
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.
John Smith

Dictate - Business, Fashion, Medical, Spa WP Theme - 0 views

  •  
    Dictate, the 6-in-one premium Wordpress theme, brings you modern design and neat & clean outlook. Touching the heights of artistic perfection, this multi-purpose web building tool can be used for six different niches, Medical, Fashion, Spa, Saloon, Business and Blog. Nevertheless, it is suitable for every single website, as you can utilize 72 built-in elements and advanced Visual Composer (save $ 25) page builder to modify it to any required shape and functionality. The greatest appeal lies in its versatility of features and ease of customization, so that you may launch a fully featured website with little or no basic knowledge, effort and time.
Vernon Fowler

An online community for educators built with BuddyPress · BuddyPress.org - 0 views

  • Build a professional learning community platform to help educators engage in conversation, share innovative ideas, discover and curate useful resources, document successful practices, and apply them in their own classrooms and schools.
  • Support and sustain continuity between in-person meetings and professional development opportunities. Help new constituents get up to speed and become valuable, active partners in learning communities.
  • drafted policies for user-generated content
  • ...2 more annotations...
  • After having tried nearly every plugin option (and combination), I settled on WP Types & Views (now called WP-Toolset), which allowed me to rapidly prototype and improve data structures. Then, I used Gravity Forms to create front-end forms to prompt educators to organize and classify their recommended resources.
  • This work has only just begun, but WP-Toolset has provided all the features we’ve needed; indeed it can be compared favorably with the Blocks, Views, Panes, and Panels modules and functions for Drupal.
  •  
    Great post on how an online community for educators was built with BuddyPress: http://t.co/JDUbnhiG
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

6 BuddyPress Power Hacks You Don't Want to Miss - WPMU.org - 0 views

  • This may be a built-in option to enable or disable the required activation for user accounts in future releases of BuddyPress. For now, just add this quick hack as a plugin or in your theme’s functions.php file
Vernon Fowler

Accelerator - Accelerator's journey to a hybrid Learning Management System - 0 views

  • the software felt overly-complex for our needs and a little unintuitive – or ‘clunky’!
  • our Moodle installation suddenly stopped working altogether one day, and we couldn’t repair upgrade to the latest version we were forced to end the Pilot Project and seek another solution – fast.
  • The hybrid solution: WordPress v3.3.1 – Basic foundation for the site BuddyPress v1.5.4 – Adds social features ScholarPress Courseware 0.9.5 – Adds LMS features Fishbook theme v1.2 – Starts to get the site looking like Facebook BP Group Management v0.5.2 – Allows us to ‘enrol’ users in courses
  • ...1 more annotation...
  • 4. Adjusted the language to match our own, across the site: ‘Groups’ to ‘Courses’ ‘Lectures’ to ‘Modules’ ‘Schedules’ to ‘Events’ ‘Assignments’ to ‘Pre- and Post-work’ ‘Friends’ to ‘Contacts’ (and removed the Friends functionality) ‘Activity’ to ‘Newsfeed’
Vernon Fowler

BuddyPress.org → Docs → Version 1.5 - Features and fixes - 0 views

  • BP-Default is now a responsive theme
  • Looks great on mobile browsers
  • New forums tab on the member profile page navigation, giving you quick access to the topics you’ve started and replied to.
  • ...11 more annotations...
  • oEmbed support – It’s now super easy to embed videos, images, and other content into the Activity Stream, Forums, and Private Messages.
  • Fix group auto-join when posting in public groups’ forums
  • Add Forums tab to user account area to show topics the user has started, and topics that the user has replied to. This includes additional template files to support this new functionality.
  • Remove root components and replace them with actual WordPress Pages
  • Add bp_is_multiblog_mode
  • Add bp_use_wp_admin_bar()
  • Add oEmbed support
  • Add the topic’s tags to the edit topic screen
  • Add new widget areas; there are now five (one in the sidebar, four in the footer).
  • Add a new forums tab on the member profile page nav; gives you quick access to the topics you’ve started and replied to
  • Update the main header ‘s background to use a CSS3 gradient instead of an image.
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}
Vernon Fowler

BuddyPress.org → Docs → Theme Dev: Building a BuddyPress Child Theme - 0 views

  • This guide is for building themes for BuddyPress 1.2 and above.
  • The default BuddyPress theme is not located in the usual /wp-content/themes/ directory. It is stored in the BuddyPress plugin folder
  • Note the “Template:” entry, which tells WordPress that we want to use the BuddyPress default theme (bp-default) as the parent theme
  • ...6 more annotations...
  • your own theme is in /wp-content/themes/
  • and the tag “buddypress”
  • to inherit the CSS, in BP 1.5+, you don’t have to do anything!  Just start writing your new styles in style.css and skip to section 3
  • copy this file and paste it directly into your child theme’s folder (the same place as your style.css file)
  • if you want to override a template file that is in a sub folder, you must also recreate the sub folder in your child theme
  • There is one exception to the template override rule — functions.php.
Vernon Fowler

BuddyPress Links | Forum | Update from the Author | BuddyPress.org - 0 views

  • replacing the is_site_admin() function with is_super_admin()
  •  
    Update plugins for BuddyPress 1.5 by replacing is_site_admin() with is_super_admin()
1 - 20 of 21 Next ›
Showing 20 items per page