Search Results for 'buddypress'
-
AuthorSearch Results
-
September 13, 2018 at 10:15 am #276367
In reply to: Changing Avatar based on field data
dutch84
Participant@prashantvatsh Sorry to bother you, but I tried the following solution, and it is still not working:
First, I added the following code to my bp-custom.php file:
<?php //The following creates avatar class in activity stream //based on x-profile field data function buddydev_create_avatar_class_based_on_field_data() { $user_id = bp_get_activity_user_id(); $title = xprofile_get_field_data('25', $user_id); // field ID or name $title = strtolower( $title ); $class = $title.'avatar'; echo $class; } add_action( 'create_activity_avatar_class_based_on_field_data', 'buddydev_create_avatar_class_based_on_field_data', 10, 1 ); ?>Then, I added the following as a class inside the div tag for activity avatar in my buddypress/bp-templates/bp-legacy/buddypress/activity/entry.php file:
<?php do_action( 'create_activity_avatar_class_based_on_field_data'); ?>Yet still it is not working. Did I put the do_action in the wrong file?
September 12, 2018 at 5:37 pm #276344lookingahead
Participantoh that fixed it by the way, thanks for the link @shanebp
now, the only weird thing i need to fix is the fact that the group title is not showing and instead says, ‘hidden group’
why in the world this would be something to show in lieu of the group title is beyond me. the group title is nowhere to be shown on the page, at all….so if a user is part of multiple hidden groups it can get confusing very fast, if they can’t figure out which group they’re in without going through comments, etc…i’d rather not do that to users.
i want the title of the group to show where it says, ‘hidden group’ rather than the message that it’s hidden.
if for some reason that is ‘too complex a task’ for buddypress to handle or involves a lot of wacky workarounds, i’d rather change that message to something else that i can use as a default, and then just use the description to signify which group they’re in, and what the group was created for.
screenshot of what i’m speaking of:
September 12, 2018 at 4:45 pm #276341In reply to: Description Groups
lookingahead
Participant@ipokkel unfortunately that line (line 62) does not exist, and it appears there’s been a change to that file since you posted your workaround.
so where would i place that fix now? there appear to be several places that are similar to the code you mentioned, but nothing is exactly the code you mentioned…i think. i may have missed it if it is elsewhere; short on coffee today. 😀
thoughts?
here’s the code in that file:
<?php /** * BuddyPress - Groups Header * * @since 3.0.0 * @version 3.1.0 */ ?> <?php bp_get_template_part( 'groups/single/parts/header-item-actions' ); ?> <?php if ( ! bp_disable_group_avatar_uploads() ) : ?> <div id="item-header-avatar"> <a href="<?php echo esc_url( bp_get_group_permalink() ); ?>" class="bp-tooltip" data-bp-tooltip="<?php echo esc_attr( bp_get_group_name() ); ?>"> <?php bp_group_avatar(); ?> </a> </div><!-- #item-header-avatar --> <?php endif; ?> <div id="item-header-content"> <p class="highlight group-status"><strong><?php echo esc_html( bp_nouveau_group_meta()->status ); ?></strong></p> <p class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>"> <?php echo esc_html( sprintf( /* translators: %s = last activity timestamp (e.g. "active 1 hour ago") */ __( 'active %s', 'buddypress' ), bp_get_group_last_active() ) ); ?> </p> <?php bp_nouveau_group_hook( 'before', 'header_meta' ); ?> <?php if ( bp_nouveau_group_has_meta_extra() ) : ?> <div class="item-meta"> <?php echo bp_nouveau_group_meta()->extra; ?> </div><!-- .item-meta --> <?php endif; ?> <?php if ( ! bp_nouveau_groups_front_page_description() ) { ?> <?php if ( bp_nouveau_group_meta()->description ) { ?> <div class="group-description"> <?php echo bp_nouveau_group_meta()->description; ?> </div><!-- //.group_description --> <?php } ?> <?php } ?> </div><!-- #item-header-content --> <?php bp_nouveau_group_header_buttons(); ?>September 12, 2018 at 3:36 pm #276334shanebp
ModeratorSeptember 12, 2018 at 6:22 am #276319In reply to: Add content into new Item menu
Prashant Singh
ParticipantHi,
Please check this thread: https://buddypress.org/support/topic/how-to-show-sitewide-activity-in-profile-page/
And try to use that activity loop.
Thanks
September 12, 2018 at 5:46 am #276318In reply to: Changing Avatar based on field data
Prashant Singh
ParticipantYes, it seems so. bp-custom.php is a file that resides in your WordPress ‘plugins’ folder, I think you have created that in BuddyPress folder. Please put that in the plugins folder.
September 11, 2018 at 11:35 pm #276315In reply to: Activity Stream….attach pictures — normal?
lookingahead
Participantthat plugin has several issues…unfortunately. one look at the reviews and i knew that was not a plugin i’d ever use.
i decided to not try to upload pics in the activity stream afterall. i’m going to just go with the forums and am using GD image there; works well.
my new issue: trying to figure out where the template/shortcode is in either bbPress or BuddyPress that creates a topic discussion page. the page where the actual topic discussion takes place…not merely the default forum page with all the topics listed there.
if you know where i can find that shortcode/code that structures the topic page where the topic itself is discussed, please let me know…
September 11, 2018 at 9:41 pm #276312In reply to: Edit Profile showing GMT for users
jebus
ParticipantThanks, but I’m not sure how that applies to my question. I’m talking about the registered and activity date/time in the Edit Profile page within the WP admin. They’re showing GMT time, not the selected time zone.
Specifically, they’re at lines 1090 and 1150 of /plugins/buddypress/bp-members/classes/class-bp-members-admin.php.
September 11, 2018 at 9:30 pm #276311In reply to: Edit Profile showing GMT for users
Prashant Singh
ParticipantHi,
Please check this thread: https://buddypress.org/support/topic/buddypress-last-seen-privacy/
ThanksSeptember 11, 2018 at 8:46 pm #276306In reply to: Put BuddyPress into a page area
Prashant Singh
ParticipantWe already have sidebar for BuddyPress(Members sidebar), you can use your widgets there as well and it will show on buddypress members pages.
For other solution, you can override buddypress templates and then can call your sidebar in template as well.
Thanks
September 11, 2018 at 7:55 pm #276303Prashant Singh
ParticipantSeptember 11, 2018 at 7:36 pm #276301In reply to: Profile page showing only Name !!!
karimbelghazi
Participantsorry forget to mention : latest wordpress : 4.9.8 buddypress 3.1 and islemag theme…but the issue is still there event if i switch to twentyfefteen or twenty seventeen
tnxSeptember 11, 2018 at 1:30 pm #276296In reply to: Put BuddyPress into a page area
dom123
ParticipantHello Prashant Singh,
thanks for your quick reply. With the plugins you mention I can only put single parts on a page (like the activity stream or the members listing), but not the whole content (with the profile picture, the profile header, all the menu tabs etc.). I need to do this so I can design the surrounding with the theme’s settings (such as custom sidebars with background gradient colors etc.) …I guess there is not an easy way to take the whole BuddyPress console and put it within a normal page, but what would be a good workaround for that?
September 11, 2018 at 1:20 pm #276295In reply to: Problem: Cropping image doesnt work in profile!
Carsten Lund
ParticipantThis issue has been known for over a year, why hasn’t buddyPress come up with a solution by now?
When can we expect to see an update from BuddyPress?September 10, 2018 at 1:21 pm #276275Prashant Singh
ParticipantYeah, As shane said it’s not default BuddyPress feature. You must have any plugin there that is creating that page and restricting from seeing home page.
Thanks
September 10, 2018 at 1:18 pm #276274In reply to: How to add ClassName to am avatar
Prashant Singh
ParticipantHi,
I know you want to use BuddyPress function only but as an alternative you should use this one if you want to add class there:get_avatar( bp_displayed_user_id(), $size = '150', 'default_image_url', 'alt_text', $args = array( 'class' => array( 'newClass' ) ) );For other solution, paste the following in your child theme’s functions.php file:
add_filter( 'bp_get_displayed_user_avatar', 'bp_get_displayed_avatar_class',10,3 ); function bp_get_displayed_avatar_class ($avatar, $r, $args){ $args['class'] = 'newClass'; return $avatar; }and keep your code same
bp_displayed_user_avatar('width=150');Thanks
September 10, 2018 at 1:04 pm #276272In reply to: Activity Stream….attach pictures — normal?
Prashant Singh
ParticipantBasically there are multiple plugins that allows to upload media and the plugin I gave you should work for sure to upload image in activity. Anyways, you can try this one as well https://wordpress.org/plugins/buddypress-media/
September 10, 2018 at 12:52 pm #276269Prashant Singh
ParticipantHi,
Try overriding the widget code in child theme and the edit it there.
You can find the file at buddypress->bp-blogs->classes->class-bp-blogs-recent-posts-widget.php
Thanks
September 10, 2018 at 12:37 pm #276267In reply to: Put BuddyPress into a page area
Prashant Singh
ParticipantHi,
To generate all those sections if you want to use shortcode then there are multiple solutions like:
Thanks
September 10, 2018 at 3:44 am #276256In reply to: Sidebars and pages
lordmatt
ParticipantThat might just be the most useful and easy to implement thing anyone has ever told me about buddypress. So simple when you know how. Thank you, @Damon18.
September 9, 2018 at 11:16 pm #276255Topic: Groups keep logging me out
in forum How-to & Troubleshootinglordmatt
ParticipantMy set up is multisite with subdomains and buddypress on the root site. I am the admin.
It has been noted before by users but I had always got past it by hitting refresh and removing the groups from any sort of caching at all. I’ve noticed that using switch users is fine everywhere but in groups where you have to fight to stay logged in and on the right user.
Recently, however, it has gotten worse. I cannot administrate any groups as I am instantly logged out on EVERY new groups page I view. I navigate to site, login and browse around – all good. Go to groups – logged out. Hit login and get redirected back to groups. All good. Change page (logged out again). Rinse and repeat.
I purged the site cache, my browser cache even cookies. I logged into the DB and optimised the tables. I have tried everything I can think of and yet I cannot stay logged in when viewing groups.
September 9, 2018 at 7:30 pm #276253In reply to: Create private or hidden TOPICS…?
shanebp
ModeratorYou can’t do it in BuddyPress. You need to do it in bbPress. And you’ll need to hire a developer to write some custom code.
September 9, 2018 at 5:39 pm #276251In reply to: Create private or hidden TOPICS…?
lookingahead
Participantyes — i’m aware, @shanebp lol
i’m asking how to do this in buddypress and mentioned bbpress for reference
can you actually help or are you just responding to tell me to go elsewhere?
September 9, 2018 at 3:37 pm #276247In reply to: Group description embeded in body fails
shanebp
ModeratorIt’s not clear what the issue is.
If you are referring to the ‘p’ tags in the description,
it is a known bug. For now, here is the fix:September 8, 2018 at 9:54 pm #276238In reply to: Activity Stream….attach pictures — normal?
Prashant Singh
Participant -
AuthorSearch Results
