Skip to main content

Home/ buddypress/ Group items tagged code

Rss Feed Group items tagged

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

WordPress › BuddyPress Group Reservation « WordPress Plugins - 0 views

  • Can I reserve a moderator or admin spot for a user? Yes! Use the following format when creating the reservation: jdoe@example.com, level=mod
  • (replace mod with admin to save a group admin spot.)
Vernon Fowler

WordPress › BuddyPress Groups Extras « WordPress Plugins - 0 views

  • create a folder called bpge in the root of your theme
  • copy required file (that you want to modify) from this plugin folder wp-content/plugins/buddypress-groups-extras/views/front to that created in a theme. That is it - now the plugin uses the template from your theme.
  •  
    "Starting from BPGE v3.6 you can now change the html that is used to display any content in front-end (in groups) right from your theme folder. This is useful if you want to change the way pages and fields are displayed, but it works for "Admin -> Extras" management pages as well. "
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

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

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

In Search Of The Perfect CAPTCHA | Smashing Coding - 0 views

  • Try the honeypot method or another that is invisible to users. Some could potentially be bypassed, but their presence is often enough to thwart automated efforts.
    • Vernon Fowler
       
      Honeypot for BuddyPress registration didn't work for me at all. There's no random element in the field ID and the checkbox can easily be brute forced (there's only 2 possibilities!).
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

BuddyPress Links | The Shop - 0 views

  •  
    my #buddypress links plugin is now a premium product that supports BP 1.5+ http://t.co/5Oslopu3 use code jan2012 for 20% off
Vernon Fowler

Best Practices for Preventing BuddyPress Spam User Registrations | Wptuts+ - 0 views

  • The first level of security is to change the footer text to remove mentions of WordPress and BuddyPress. Spammers target the words “proudly powered by WordPress and BuddyPress” in search engines to find sites they can compromise.
  • In BuddyPress, the default URL for the registration page is “http:/yoursitedomain.com/register”. This is why spambots include the “insite:register” when performing the search described in the above section. Make it harder for them to find your site by easily changing the default slug for BuddyPress in your wp-config.php file.
  • We use the honeypot technique to thwart spambots and it has worked pretty well from our experience. I didn’t invent the idea, but I built this implementation for BuddyPress and it works like a champ.
  • ...4 more annotations...
  • BP_REGISTER_SLUG
  • All you need to do is set the slug for the registration page that has been created. If you’re on BuddyPress 1.5+ that is.
  • It enables you to block IP addresses and even entire domains from accessing your site, a very useful thing to do against known bots trying to create fake BuddyPress user accounts.
  • Be wary of trying every single security plugin under the sun, as this slows down your site and adds to your maintenance workload by having more things to update and go through if something breaks. At first, stick to the highest rated ones that have proven themselves over time with a lot of users. One such plugin, which is highly recommended by many BuddyPress and WordPress users, is Bad Bahavior. This plugin will not only block a lot of spam, but will make your site invisible to many bots in the first place and thereby prevent fake registrations.
Vernon Fowler

WordPress › Bowe Codes « WordPress Plugins - 0 views

  • There are 12 shortcodes available in order to display a specific member, a group, a list of members, the friends of the displayed or loggedin user, the groups of the displayed or loggedin user, the messages and the notifications of a loggedin user, blogs of the network, posts from the blogs of the network.
  •  
    "Allows users to simply insert BuddyPress specific data into posts, widgets or theme files by using shortcodes."
Vernon Fowler

Linda Peng » Blog Archive » 10 Lessons I Learned from Designing an Online Com... - 0 views

  • I recommend giving people single sign-on options using Twitter, Linkedin, OpenID, Livejournal, etc. as well as Facebook.
  • The rest of your target market still needs to be convinced to care about your community enough to join.
  • Make your homepage interesting enough to visit twice.
  • ...8 more annotations...
  • There’s probably a reason Quora, Stackoverflow and most Ning networks all have news feeds on their front pages.
  • Clearly define your niche.
  • clearly define your site’s niche so that users will have an easier time understanding how your site adds value to their lives. For example, Quora is the social network where one gets their questions answered; Stackoverflow is a Q&A network for programmers; Linkedin is a specific network for jobhunting professionals. What specific need does your social network cater to?
  • Beware of outdated plugins and themes.
  • Look at the description closely and check to see if it’s been tested up to the WordPress version you’ve installed. If you’re unsure, search for the plugin forums (every WordPress plugin should have one) and see the latest praises or issues people are discussing on the threads.
  • If a new theme or plugin crashes your site, rename or delete it.
  • I recommend giving people single sign-on options using Twitter, Linkedin, OpenID, Livejournal, etc. as well as Facebook.
  • Your site needs an FAQ. No, really. It does. Although you personally might think that the activity feeds and groups and profile editing links are in the most obvious locations in the world, your users will not. They’re used to their own oft-frequented social networks (cough, Facebook), and  they’ll ask you why clicking on their avatar doesn’t automatically bring them to a “change your profile picture” page or if logging into your site using Facebook Connect will mean that everything they post will automatically get cross-posted to their Facebook wall. In addition, users want to know about your site features.
  •  
    I re-discovered my fascination with online community building around the time I subscribed to a shared hosting service, installed WordPress, discovered the Buddypress plugin, and stumbled upon open-source forums where people were amazingly helpfully about sharing troubleshooting tips and code.   This was last December. The discovery turned into an independent study I dubbed "Volunteerism in a Web 2.0 World," which turned into the development of a website and lots of meetings and several pages of an annotated bibliography - all of which I submitted to my Research in Practice Program (RIPP) advisor at the end of the semester.Over the course of my meetings with "stakeholders" (Duke students and administrators) to asses the value of the "website" (an online social network for Duke civic engagement), I learned a few things about designing an online community using WordPress and Buddypress.
John Smith

Deeds- Best Nonprofit Church Organization WP Theme - 0 views

  •  
    The intuitively designed, lightweight, finely coded and error-free Deeds premium WordPress theme is aimed at building a powerful and progressing website on multiple niches, such as Church, Charity, Religious Propagation, and Non-profit Organization. It is cleaner, quicker and easier to customize, and is perfect for the newbies. Three uniquely built Homepage Layouts, two innovative Header Styles, and a number of built-in pages of varied utility are bound to be of special appeal for the professional web designer.
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

bTeleogistic3 / 73Import from Ning: Import Ning users to Wordpress and BuddyPress - 0 views

  • Import From Ning imports the contents of your Ning Network Archive into BuddyPress.
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
1 - 17 of 17
Showing 20 items per page