Search Results for 'buddypress'
-
AuthorSearch Results
-
March 9, 2014 at 8:45 pm #179517
In reply to: Is BuddyPress right for this project?
BuddyBoss
ParticipantNeed to build a site for 1000+ members with profile pages. Imagine a company where each salesman has their own page. The profile pages will allow them to post information, links, videos, etc. on a single page with their own url off the site.
BuddyPress could be used for this, with some customizing. You’ll have to elaborate on what you mean by “with their own url off the site”.
I also need logged in members to have access to other areas of the site based on their membership level.
A membership plugin will be necessary for this.
Need this to be responsive, and I need to be able to style.
That all comes down to the theme you pick. Whether you use BuddyPress or a membership plugin or neither makes very little difference. Responsive layout is all determined by the theme.
March 9, 2014 at 8:42 pm #179516BuddyBoss
ParticipantA 404 error is when the server cannot access a link. Usually a broken or dead link. WordPress uses “pretty permalinks” which basically means it creates virtual links for your site using a structure that you assign to it. If this system is messed up you may get 404 errors all over the place.
First idea: Go to Settings > Permalinks and set the Permalinks to default. Test your site, and then set Permalinks back to whatever custom structure you had set up. Might fix it.
Second idea: Make sure you have a page assigned to each BuddyPress component, at Settings > BuddyPress. If not, WordPress may not know where to access the BuddyPress pages and may return 404 errors.
March 9, 2014 at 8:34 pm #179515In reply to: Notifications tab seems to break site
BuddyBoss
ParticipantLook in your themes for the template file:
wp-content/themes/[theme-name]/buddypress/members/single/home.php
If that exists, and is from an older theme, look for a “notification” section in there. If it’s missing this will break the loading of your notifications page.
In this section:
do_action( 'bp_before_member_body' );After this line:
elseif ( bp_is_user_forums() ) : bp_get_template_part( 'members/single/forums' );Add:
elseif ( function_exists('bp_is_user_notifications') && bp_is_user_notifications() ) : bp_get_template_part( 'members/single/notifications' );That allows the profile to load the notification template.
March 9, 2014 at 5:04 pm #179511iameverywhere
ParticipantJust a heads up, because I know a lot of people have asked and not gotten anywhere, but you can use this feature + Buddypress Xprofile Custom Fields Type plugin to create a forum badges feature. That was my goal with this and it works. You just need to display:none; the field# class so that users dont see it as an option to edit in their profile. Then you have complete control and can give users badges that show up in the forums 😀
*flys away*
March 9, 2014 at 3:04 pm #179509In reply to: 3rd Sized Avatar
darqpony
ParticipantYes! that! Since I know so little about php coding, I didn’t know WHAT to do instead of the choice it gave me or where to look.
1. I understand about the upgrade will overwrite thing. If I put this bit of code in my bpcustom.php file, will it override the original “$avatar_size = ( ‘full’ == $type ) ? ‘-bpfull’ : ‘-bpthumb;” or do I have to somehow negate that first in the bpcustom file?
2. I have this in the bp_core_fetch_avatar:
function bp_core_fetch_avatar( $args = '' ) { // If avatars are disabled for the root site, obey that request and bail if ( ! buddypress()->avatar->show_avatars ) return; global $current_blog; $bp = buddypress(); // Set a few default variables $def_object = 'user'; $def_type = 'thumb'; $def_class = 'avatar'; // Set the default variables array $params = wp_parse_args( $args, array( 'item_id' => false, 'object' => $def_object, // user/group/blog/custom type (if you use filters) 'type' => $def_type, // tinythumb, thumb or full 'avatar_dir' => false, // Specify a custom avatar directory for your object 'width' => false, // Custom width (int) 'height' => false, // Custom height (int) 'class' => $def_class, // Custom <img> class (string) 'css_id' => false, // Custom <img> ID (string) 'alt' => '', // Custom <img> alt (string) 'email' => false, // Pass the user email (for gravatar) to prevent querying the DB for it 'no_grav' => false, // If there is no avatar found, return false instead of a grav? 'html' => true, // Wrap the return img URL in <img /> 'title' => '' // Custom <img> title (string) ) ); extract( $params, EXTR_SKIP );Where do I ‘pass’ thumb or full to it? Or is it already there in this original since I haven’t changed anything yet?
3. If I change the bp_core_fetch_avatar, do I have to somehow change the first 1.’s solution?
4. Should I post this on the other site you found my question on? LOL (Hey, I gave it two days before trying a different site! But got the same guy answering… go figure… LOL)
… and yes, it did use the tinythumb type and it did make the thumb sized avatar fuzzy. I have an avatar for that size. I want it to use it! LOL I want to use ALL my avatars!
March 9, 2014 at 1:59 pm #179505In reply to: stop public groups posting to the activity stream?
mcpeanut
Participant@shanebp ty again shane, i still have not had the chance to try this, but im defo gonna get round to it in the next hour lol, so from reading that article i would make a buddypress folder in my twenty twelve child theme then add an activity folder inside it, then i should copy the activity-loop.php from the directory you specified. and then i would perform the edit you mentioned above? is this correct? just making sure im clear on what to do before doing it.
or should i just copy the entire buddypress directory over from \bp-templates\bp-legacy\buddypress\ to my child theme before making the edit?
i havent needed to do anything as of yet with buddypress template files you see as all other edits i have made have been in the functions.php and bp-custom.php
March 9, 2014 at 1:26 pm #179503In reply to: stop public groups posting to the activity stream?
shanebp
ModeratorTemplate overloads
March 9, 2014 at 9:25 am #179499In reply to: stop public groups posting to the activity stream?
mcpeanut
ParticipantHey @shanebp ty for your response, i have just woke up and read this and will be trying it in the next hour, i will update you on if this solved my problem or not.
Create a template overload of this file:
\bp-templates\bp-legacy\buddypress\activity\activity-loop.phpi assume by this you mean copy this file over to my child twenty twelve theme and make the edits specified in there?
March 9, 2014 at 6:49 am #179497In reply to: 3rd Sized Avatar
Henry Wright
ModeratorYou’d change
$avatar_size = ( ‘full’ == $type ) ? ‘-bpfull’ : ‘-bpthumb;to:if ($type == 'full' ) { $avatar_size = '-bpfull'; } elseif ($type == 'thumb' ) { $avatar_size = '-bpthumb'; } else { $avatar_size = '-bptinythumb'; }But that approach wouldn’t be recommended because when you upgrade buddypress your changes will be lost.
The tiny thumb will be the default avatar size. If you wanted to use the thumb or full versions then you’d need to pass
thumborfullto bp_core_fetch_avatarMarch 9, 2014 at 6:35 am #179496In reply to: request membership – PAGE NOT FOUND
Craig
ParticipantMarch 8, 2014 at 8:08 pm #179480In reply to: stop public groups posting to the activity stream?
shanebp
Moderator> exclude creation of public groups and comments posted in them from displaying in the activity stream.
Changing to $hide_sitewide will prevent it from appearing anywhere ( including the group activity stream ) except the activity stream for the person who created the item.
You probably want items to appear in the group stream, so try this in bp-custom.php or your theme functions.php
function remove_groups_from_activity( $activity ) { if( $activity->component == 'groups' ) $activity->hide_sitewide = true; } add_action( 'bp_activity_before_save', 'remove_groups_from_activity', 1, 1);Of course, this will only apply to new activity items.
Then you need to ‘reveal’ those hidden items in a group stream…
Create a template overload of this file:
\bp-templates\bp-legacy\buddypress\activity\activity-loop.phpThen before the loop, check if you’re viewing a group and if so, then change the
bp_has_activities call to:if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&show_hidden=true') ) :The activity stream is quite flexible:
March 8, 2014 at 7:06 pm #179478mcpeanut
Participanthi matthew, maybee you could you explain a little more?
All my pages are messed up, the links are all screwy and bunch of other stuff.
ive looked at your link and everything seems perfectly normal on the twenty fourteen theme, i notice you havent got buddypress installed?
go to plugins and click add plugins and search for buddypress, then go to buddypress settings and tick what you will want to be using within your website, i would also suggest doing a search for rtmedia plugin for your photos. dunno if this helps as i cant see what you mean with all the links being screwy etc when buddypress isnt even installed?March 8, 2014 at 11:59 am #179468In reply to: stop public groups posting to the activity stream?
mcpeanut
Participantfound this section in the bp-groups-activity.php
this seems to relate to the public groups, does anyone have any ideas on what to change here?// Set the default for hide_sitewide by checking the status of the group
$hide_sitewide = false;
if ( !empty( $args[‘item_id’] ) ) {
if ( bp_get_current_group_id() == $args[‘item_id’] ) {
$group = groups_get_current_group();
} else {
$group = groups_get_group( array( ‘group_id’ => $args[‘item_id’] ) );
}if ( isset( $group->status ) && ‘public’ != $group->status ) {
$hide_sitewide = true;
}
}$r = wp_parse_args( $args, array(
‘id’ => false,
‘user_id’ => bp_loggedin_user_id(),
‘action’ => ”,
‘content’ => ”,
‘primary_link’ => ”,
‘component’ => buddypress()->groups->id,
‘type’ => false,
‘item_id’ => false,
‘secondary_item_id’ => false,
‘recorded_time’ => bp_core_current_time(),
‘hide_sitewide’ => $hide_sitewide
) );return bp_activity_add( $r );
}i have tried changing the $hide_sitewide = false; to $hide_sitewide = true;
but this doesnt work properly.March 8, 2014 at 5:11 am #179460In reply to: members page filter, what is it?
Rita84
ParticipantHi, my buddypress notifications template is missing. Please tell me how to create a simple notifications template. thanks
March 8, 2014 at 5:09 am #179459In reply to: Notifications tab seems to break site
Rita84
ParticipantHi, please tell me how to create buddypress notifications template as it is also missing in my theme ? thanks
March 8, 2014 at 5:01 am #179457In reply to: members page filter, what is it?
modemlooper
Moderatorhere is doc on filtering bp template parts
https://codex.buddypress.org/developer/function-examples/bp_get_template_part
March 7, 2014 at 9:01 pm #179445In reply to: Is profile fields treated as posts ?
boblebad
ParticipantHi shanebp
I have not installed xProfile. i’m using BuddyPress out-of-the-box sort of, i’ve bought a theme called Sweet Date, through that i have installed BuddyPress.
I have checked every table in the database, nothing says anything about profile in any way.
All the best
CarstenMarch 7, 2014 at 8:17 pm #179439In reply to: New to this, need some help please!
shanebp
ModeratorHave you activated groups via the checkbox on this screen?
/wp-admin/options-general.php?page=bp-componentsHave you assigned a page to Groups via this screen?
/wp-admin/admin.php?page=bp-page-settingsThe same and more info:
March 7, 2014 at 7:59 pm #179437In reply to: Is profile fields treated as posts ?
boblebad
ParticipantThanks for your reply Henry 🙂
I can’t find anything that looks like that in the database, and when going through the table names, there isn’t anything that sounds like having something to do with xProfile ?
I need to find the ID of the fields, so i can use them with BuddyPress Profile Progression “bppp_progression_block($user_id)”.
All the best
CarstenMarch 6, 2014 at 11:02 pm #179408shanebp
ModeratorIt is simple, if you use the correct parameter, anyway…
Create a template overload of this file:
\bp-templates\bp-legacy\buddypress\activity\activity-loop.phpThen change this:
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>To this:
<?php $friends = friends_get_friend_user_ids( bp_loggedin_user_id() ); $friends[] = bp_loggedin_user_id(); $friends_and_me = implode( ',', (array) $friends ); $friends_and_me = '&user_id=' . $friends_and_me; ?> <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . $friends_and_me) ) : ?>Creating a template overload:
March 6, 2014 at 9:50 pm #179403In reply to: Spam destroyer plugin & Buddypress
BuddyBoss
ParticipantNot sure why it’s not working.
For alternative spam plugins/solutions, there’s another more active thread going on here:
https://buddypress.org/support/topic/stop-buddypress-spam/March 6, 2014 at 9:48 pm #179402In reply to: Stop BuddyPress SPAM
BuddyBoss
ParticipantTwo more methods that help. I recently had a crazy spam attack – probably 300 fake signups per day. I implemented these two methods and it dropped to near 0.
1. Change the /register/ slug to something unique. An example would be /create-your-account/, or something of that nature. It just needs to be unique and also make sense in a URL for your user. Spammers targeting BuddyPress look for /register/ as the signup page. It’s all automated so you want to filter them out at the first step.
2. Add this to your functions.php file in your theme or child theme.
It presents a dummy field that humans don’t see. Spambots will fill it out, and if the field captures a value it will reject the signup.
// BuddyPress Honeypot function add_honeypot() { echo ''; } add_action('bp_after_signup_profile_fields','add_honeypot'); function check_honeypot() { if (!empty($_POST['system55'])) { global $bp; wp_redirect(home_url()); exit; } } add_filter('bp_core_validate_user_signup','check_honeypot');Credits for #2 go to:
http://mattts.net/development-stuff/web-development-stuff/wordpress/buddypress/anti-spam-techniques/registration-honeypot/I edited it slightly to remove the required redirect. Add that back from his tutorial if you want to. It requires that you make an extra page to send the spammer to, and I personally think that’s not necessary. I actually want them to have no indication their signup failed.
March 6, 2014 at 6:41 pm #179393In reply to: Only showing administrator-created groups
Doremdou
ParticipantHello 🙂
If you uncheck the User Groups in Buddypress settings (first tab) you disable all the Group system that is why all your groups disappeared.I guess you are talking about the checking box on the FIRST tab of the buddypress settings, did you see the other one on the THIRD tab (called settings, just after the “Pages” tab) ? (at the top of the page)
You have a box to check to allow/disallow users to create groups.
Hope you are talking about that 😉March 6, 2014 at 6:34 pm #179390In reply to: Hide Group Admin from the group member list
March 6, 2014 at 4:21 pm #179381In reply to: Help! Where is the private message option?
CryptoSteam
ParticipantWow. Just installed Buddypress and it complements nicely with BBpress.
-
AuthorSearch Results