Search Results for 'buddypress'
-
AuthorSearch Results
-
May 26, 2015 at 7:52 am #239695
In reply to: Custom Post activity_action output wonky
majecdad
ParticipantFirst, @henrywright, I think you were right, that code was not creating the entry, it was created because I had
add_post_type_support( 'alert', 'buddypress-activity' );in bp-custom too. Thanks for making me think twice.It’s amazing what you can learn in 12 hours. Not enough, but it’s a start. So I tossed the baby out with the bathwater, and read this about 15 times to get to a partial understanding of it. I am now using this:
// Don't forget to add the 'buddypress-activity' support! add_post_type_support( 'alert', 'buddypress-activity' ); function customize_page_tracking_args() { // Check if the Activity component is active before using it. if ( ! bp_is_active( 'activity' ) ) { return; } bp_activity_set_post_type_tracking_args( 'alert', array( /*'component_id' => buddypress()->blogs->id,*/ 'action_id' => 'new_alert', 'bp_activity_admin_filter' => __( 'Published a new alert', 'buddypress' ), 'bp_activity_front_filter' => __( 'Alerts', 'buddypress' ), 'contexts' => array( 'activity', 'member' ), 'activity_comment' => true, 'bp_activity_new_post' => __( '%1$s posted an important new <a href="%2$s">** Alert **</a>', 'buddypress' ), 'bp_activity_new_post_ms' => __( '%1$s posted a new <a href="%2$s">alert</a>, on the site %3$s', 'buddypress' ), 'position' => 100, ) ); } add_action( 'bp_init', 'customize_page_tracking_args' );After about 20 different mods, adding and deleting and changing, I got a CPT to take to the activity stream, with the (mostly) modified text I was looking for.
I actually don’t even know what some of the items in the array are, I just changed things until they worked. 🙂 In fact, I had to comment out component id, because I still haven’t figured out what goes there to keep from getting a WSOD.
The only main thing I’d really still like to accomplish is getting the Post Title in the link that is created here:
'%1$s posted an important new <a href="%2$s">** Alert **</a>'— where it would be like “soandso posted an important new Alert:The Title of the CPT”Any ideas out there?
If this is still not the right/best way to accomplish this, I’m open to suggestion. But I think I am at least stepping in the right direction.
Thanks.
May 26, 2015 at 6:31 am #239694In reply to: Best plugin for social network plugin?
niranjan4790chouhan
ParticipantI’ve tried AddToAny, Ultimate social media and icon plugin in buddy press theme. but it is not sharing image and correct title on facebook. Is this problem of buddypress theme?
May 25, 2015 at 9:25 pm #239685In reply to: Buddypress Checkbox field data
ibrahim_alfors
Participant@shanebp thank you for the reply.
I have researched the plugins that allow the searching for members and I found that this plugin is great but unfortunately the requirements of my client need a lot more customization and I find the documentation of buddypress much more helpful.
About the:
xprofile_get_field_data( $field, $user_id = 0, $multi_format = 'array' )
I think using that in a Query would be very expensive as it would require doing more database transaction over the search transaction. Am I right?The wild card seems like a decent way to go with it, I think I will try that 🙂
Thank you.
May 25, 2015 at 8:07 pm #239683In reply to: Buddypress Checkbox field data
shanebp
Moderatora:3:{i:0;s:7:”English”;i:1;s:4:”Math”;i:2;s:10:”Substitute”;}
is a serialized array.BuddyPress will unserialize profile data via
xprofile_get_field_data( $field, $user_id = 0, $multi_format = 'array' )
and return an array.But if you want to do this in the context of a search query, you probably want to use wildcards in the mysql statement, for example:
%math%.
This can be tricky to implement if you haven’t done it before.There is already a good plugin that does member searches based on profile field values:
https://wordpress.org/plugins/bp-profile-search/May 25, 2015 at 7:17 pm #239681PinkishHue
Participant@rglennall I’m assuming this should go in your bp-custom.php file, see info here if unfamiliar:
Hope that helps!
May 25, 2015 at 6:01 pm #239679In reply to: Custom Post activity_action output wonky
majecdad
ParticipantHi @henrywright
The code was that that I pulled from the other post. Here it is:
add_filter('bp_blogs_activity_new_post_action', 'record_cpt_activity_action', 1, 3); function record_cpt_activity_action( $activity_action, $post, $post_permalink ) { if( $post->post_type == 'agency' ) { $activity_action = sprintf( __( '%1$s created a new Post, %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' ); } return $activity_action; }the only change was that I changed the post_type from ‘projects’ in the original to ‘agency’ in mine, and changed ‘Project’ to ‘Post’ in the next line.
This is my first test use of CPT’s and then trying to tie them to the BP stream, so I’m learning. 🙂
Thanks.
May 25, 2015 at 4:09 pm #239673In reply to: WP_Query and BP
shanebp
Moderator
I need page ID of current BP page
Which, as you’ve noted, will be 0.
And don’t expect that to change any time soon, if ever.If you want to know which BP page you are on, via a boolean, see:
May 25, 2015 at 11:22 am #239658In reply to: Theme in Development: Preview & Feedback?
peter-hamilton
Participantpretty cool theme, not 100% sure about the left bar which takes so much of the pages without adding much
But pretty cool mate.
P.H.
My Buddypress ThemeMay 25, 2015 at 10:50 am #239656In reply to: How to make a sidebar show on my BP page
hammed4real101
ParticipantAm using statfort-educational-wordpress, and have enable sidebar on the buddypress activity page.
am really confuse, help me out.
http://themeforest.net/item/statfort-educational-wordpress-theme/6839697
May 25, 2015 at 9:53 am #239653In reply to: Comments notification doesn’t work
Henry Wright
ModeratorHi @albydigei
This functionality is currently in development. See this ticket for progress:
May 24, 2015 at 10:52 am #239634In reply to: [Resolved] User Activation Issue
proteas
ParticipantI deactivated all other plugins besides BuddyPress. Activated the 2014 theme. Changed the language to English and made sure BuddyPress pages were all assigned. The permalinks were already not on default. Then I deleted the wp-config and htaccess.
Then I got to the point of install. I was asked for database information. I put the information of my already existing database, but I changed the wp_ table prefix to match the one I use for my already existing database and WP said that there was already an installation and didn’t go further. It automatically generated the wp-config with new hashes, but not .htaccess. I created it myself and only put the WP default .htaccess code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressJust to make sure, I also downloaded my entire public_html directory, and also downloaded a fresh copy of WordPress 4.2.2 and BuddyPress 2.2.3.1 and then ran them through a file difference checker application. The only two differences I found were:
1. “version.php” inside the WordPress “includes” folder
had as last line $wp_local_package = ‘el’; and I removed it and2. in BuddyPress “bp-members” folder the file “bp-members-template.php” I had changed a language string and I replaced the entire file with the fresh copy.
All other WordPress and BuddyPress files are completely identical with the original versions.
I used a different browser to register, but the problem persists exactly the same. It doesn’t work for any gmail account, but works for 1 of the two domains that used to work before.
May 24, 2015 at 9:04 am #239630In reply to: [Resolved] User Activation Issue
danbp
ParticipantI’m unable to tell what happens. I tried to register, received the mail, clicked on activation link and error message.
Tried to login, and didn’t found the wp-login page.Some url’s are weird or wrong… and i suspect you haven’t correctly setup BuddyPress.
Deactivate all plugins but BP
Deactivate kleo theme and activate 2012 or 2014.Go to BP settings and check all pages. You need a page for each component. This page must only have a title and should be absolutely blank, without any template or page model assigned.
Go to permalinks and select an option. Whatever except default. Save.
Via FTP, delete wp-config.php and htaccess. This will not affect the DB content
Run WP install again (yoursite.com/install). The goal is to generate a brand new htaccess and wp-config file.
When you’re asked for, use salt key generator and copy/paste the result to wp-configIf all went correctly, you have a fresh install.
Return to BP settings and check that anything is still in place. Register and activation page maybe completed or not assigned. In this case, assign a page to each.
Return to permalinks and simply save the page.
Now you can test registering again. If it is ok, you activate kleo and re-test registering.
Subsidiary question: have you installed WP manually or did you used a hosted automated package ?
Check also kleo’s support about BP configuration.
May 24, 2015 at 6:31 am #239624In reply to: Groups mod cannot delete
majecdad
ParticipantIn case anyone was wondering, this was resolved by the fine folks over here. https://buddypress.org/support/topic/group-moderator-broken/
Just cleaning up after myself. I can’t close because I was not the OP. 🙂
May 24, 2015 at 4:16 am #239623In reply to: Buddypress stop my site
jookkoo
ParticipantHello, Henry Wright
Admin hosting on trying to fix this. For more information.
– On hosting, when login to wp-admin and put the username,password after click login. it display White page.-On Localhost i am install Query Monitor plugin. and the report as below:
PHP Error – Declaration of BP_Core_Login_Widget::form() should be compatible with that of WP_Widget::form()
-Location – wp-content/plugins/buddypress/bp-core/bp-core-widgets.php:138Please help
Thank youMay 23, 2015 at 11:19 pm #239613In reply to: BuddyPress Profile Images
danbp
ParticipantAnnoying issue, was initially reported for BP 1.7
See https://buddypress.trac.wordpress.org/ticket/4948
Reopen the ticket, give details and this topic url
To login use same credentials as for here.May 23, 2015 at 10:41 pm #239610In reply to: [Resolved] User Activation Issue
proteas
ParticipantI have already deactivated all plugins, leaving only BuddyPress active and it still happens.
The plugins I currently have installed are:
Agreeable
bbPress
BuddyPress Activity Privacy
BuddyPress Cover Photo
BuddyPress
WPBakery Visual Composer
K Elements
Rendez Vous
Revolution Slider
Social Articles
Ultimate Coming Soon Page
W3 Total Cache
Wp Mail Bank by Tech Banker
WordPress Simple Security Firewall
WPAchievementsMay 23, 2015 at 10:32 pm #239609danbp
ParticipantPlease search before asking. Search: Remove Profile Links brings up:
https://buddypress.org/support/topic/on-profile-base-answers-to-fields-works-as-links/
May 23, 2015 at 10:22 pm #239606In reply to: Acoustic signal
May 23, 2015 at 8:29 pm #239600danbp
Participant@tstrickland415, do you use trunk version ?
BuddyPress 2.3 introduces the member-type-specific directories. But at this time, we are still under BP 2.2.3.1 and my code is for 2.2.x onlyYou have to find your own solution. I have no trunk install under hand at the moment, sorry.
May 23, 2015 at 7:17 pm #239593tstrickland415
ParticipantOk now everything works as you mentioned, but there’s just one caveat. The xprofile gets updated fine, but it’s not updating the actual Members Type field in the Extended Profile section of the Users panel in the backend.
To clarify, when we make the xprofile field it’s a completely separate field than the Members Type field that Buddypress introduced recently. So in the Users->Extended Profile section there’s two fields for Member Types, the one we created and the one Buddypress introduced. Your code is only affecting the one we created and not the real Buddypress Member Type field. Is there a way to have the BP Member Type field get updated with the corresponding member type from the xprofile field?
May 23, 2015 at 5:47 pm #239587almase
Participantdont really understand.
this code?function bp_get_activity_comment_date_recorded() { global $activities_template; if ( empty( $activities_template->activity->current_comment->date_recorded ) ) return false; $date_recorded = bp_core_time_since( $activities_template->activity->current_comment->date_recorded ); /** * Filters the recorded date of the activity comment currently being displayed. * * @since BuddyPress (1.5.0) * * @param string|bool Date for the activity comment currently being displayed. */ return apply_filters( 'bp_activity_comment_date_recorded', $date_recorded ); }and add to function.php?
May 23, 2015 at 5:26 pm #239583In reply to: Customize Radio buttons with images
danbp
ParticipantMay 23, 2015 at 5:15 pm #239582almase
ParticipantOk i found here an other code:
https://buddypress.org/support/topic/activity-time-is-gmt-activity-stream-posted-an-update-time-is-incorrect/function format_activity_date() { $activityDate=bp_get_activity_date_recorded(); // Get GMT offset from root blog $root_blog_offset = get_blog_option( BP_ROOT_BLOG, 'gmt_offset' ); // Calculate offset time $time_offset = $time + ( $root_blog_offset * 3600 ); // Format the time using the offset and return it; date-i18n retrieves the date in localized format return '' . date_i18n("l, M j, Y, g:ia T", strtotime($activityDate) + $time_offset) . ''; } add_filter('bp_activity_time_since', 'format_activity_date');The timezone is now the right one for the first posting in stream, but the comments in stream have now the wrong timezone…. 🙁
May 23, 2015 at 3:25 pm #239578danbp
ParticipantPlease have a look to this ticket
https://buddypress.trac.wordpress.org/ticket/6421Don’t hesitate to give more details or information to the devs. Login is using same credentials as on this forum.
May 23, 2015 at 8:23 am #239563In reply to: BP Member Types not displaying or working!?!?!?
danbp
ParticipantTutorial is here:
2.2 Member Types – Setting user member types during registration (xProfile)
Closing this topic as duplicate.
-
AuthorSearch Results