Search Results for 'buddypress'
-
AuthorSearch Results
-
July 7, 2014 at 6:16 pm #184861
In reply to: User registration not working on fresh install.
@mercime
Participantthat I’m using the BuddyPress default theme
@lorns Change to the Twenty Fourteen theme.
Strange that you could see and activate to the BP Default theme in a new installation http://bpdevel.wordpress.com/2013/11/13/the-future-of-the-bp-default-theme/But if I act as a new user, I cannot register using the BuddyPress register page.
Please make sure that you’re logged out first before going to the register page. If you were logged out, do give steps or more information to replicate the issue.
July 7, 2014 at 1:30 pm #184852In reply to: add page to a group
shanebp
ModeratorYou can do that with the Group Extension API.
July 7, 2014 at 10:14 am #184847jsepkenya
Participantadd this to your theme functions
to redirect to wherever///////////////////////////////////////////////////////////////////////
/// check if is friend
///////////////////////////////////////////////////////////////////////
function bp_displayed_user_is_friend() {
global $bp;
$friend_privacy_enable = “enable”;
$friend_privacy_redirect = ‘http://yourdomain.com/members’;if($friend_privacy_enable == “enable”) {
if ( bp_is_profile_component() || bp_is_member() ) {
if ( (‘is_friend’ != BP_Friends_Friendship::check_is_friend( $bp->loggedin_user->id, $bp->displayed_user->id )) && (bp_loggedin_user_id() != bp_displayed_user_id()) ) {
if ( !is_super_admin( bp_loggedin_user_id() ) ) {
if($friend_privacy_redirect == ”) {
bp_core_redirect( $bp->root_domain );
} else {
bp_core_redirect( $friend_privacy_redirect );
}
}
}
}
} //enable
}
add_filter(‘get_header’,’bp_displayed_user_is_friend’,3);///////////////////////////////////////////////////////////////
// check privacy
////////////////////////////////////////////////////////////////function check_if_privacy_on() {
global $bp;
$location = $_SERVER[‘HTTP_REFERER’];
$privacy_enable = “enable”;
$privacy_redirect = ‘http://your domain.com/login/’ ;
if($privacy_enable == “enable”) {
if ( bp_is_profile_component() || bp_is_activity_component() || bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) {
if(!is_user_logged_in()) {
if($privacy_redirect == ”) {
bp_core_redirect( $bp->root_domain . ‘/’ . BP_REGISTER_SLUG . ‘/’ );
} else {
bp_core_redirect( $privacy_redirect ) ;
}
}
}
} //off
}add_filter(‘get_header’,’check_if_privacy_on’, 1);
function check_if_create_group_limit() {
global $bp;
$create_limit_enable = “yes”;
$create_limit_redirect = ‘http://yourdomain.com/groups’;
if($create_limit_enable == “yes”) {
if( bp_is_group_create() ) {
if ( current_user_can( ‘delete_others_posts’ ) ) { //only admins and editors
} else {
if( $create_limit_redirect == ” ) {
bp_core_redirect( $bp->root_domain . ‘/’ );
} else {
bp_core_redirect( $create_limit_redirect );
}
}
}} //off
}
add_filter(‘get_header’,’check_if_create_group_limit’,2);for all pages created with buddypress level 1 i hope is all u want to restrict
July 6, 2014 at 9:19 am #184837Stephen Edgar
ModeratorPresuming your forums are under the
f1parent in my previous post a couple of options to try:First potential solution:
With your group forum that is broken create a new bbPress eg
testunder thef1parent forum and then either via the front end or backend change that BuddyPress Group forum to point to the new ‘test’ forum you just created.What happens when you visit this group forum? Does it work as expected it should?
Now go back and change the group back to the correct bbPress forum, does this fix it?
Second solution if the first above does not work. Whilst BuddyPress is deactivated edit the bbPress forum permalink so that it matches the same URL structure as your BuddyPress Group that does work.
Does this fix it?
July 6, 2014 at 8:56 am #184835notpoppy
ParticipantOK three of the four were right:
– Forum Root Slug -> forums -> correct
– Forum Prefix -> Check/Tick -> correct
– Single Forum Slugs -> Forum -> forum -> correctHowever the correct value for BuddyPress Integration is:
“BuddyPress Integration” -> “Group Forums Parent” is set as “F1”
July 6, 2014 at 8:29 am #184833jashwant
ParticipantI added
class="form-control"toinputandbtnclass tosubmit button.Hope this helps.
function cb_bp_directory_members_search_form() { $search_form_html = '<form action="" method="get" id="search-members-form"> <label><input type="text" class="form-control" name="s" id="members_search" placeholder="'. esc_attr( $search_value ) .'" /></label> <input type="submit" id="members_search_submit" class="btn" name="members_search_submit" value="' . __( 'Search', 'buddypress' ) . '" /> </form>'; return $search_form_html; } add_filter('bp_directory_members_search_form', 'cb_bp_directory_members_search_form');July 6, 2014 at 7:24 am #184832Stephen Edgar
ModeratorOk, we’re closer, looks like the correct bbPress forum ID is correctly associated with the BuddyPress Group 🙂
It looks like the slug/permalink is broken 🙁
Before looking at a fix, a clarification if I could
Here is my bbPress Forums Hierarchy Structure Layout
BuddyPress Forums Category (Top Level Category)
— BuddyPress Public Group Forum (Forum)
— BuddyPress Hidden Group Forum (Forum)
— BuddyPress Private Group Forum (Forum)In bbPress Settings (Settings -> bbPress) (/wp-admin/options-general.php?page=bbpress)
“BuddyPress Integration” -> “Group Forums Parent” is set as “BuddyPress Forums Category”My bbPress settings for forum slugs are:
– Forum Root Slug ->forums
– Forum Prefix -> Check/Tick
– Single Forum Slugs -> Forum ->forumSo my URL’s are build with the “forum root slug” then the “forum single slug” then “BuddyPress Forums Category” and lastly the actual forum “BuddyPress Public Group Forum” which results in:
/forums/forum/buddypress-forums-category/buddypress-public-group-forum/Now onto your URL’s:
Yours with bbPress forum ID 127650
/forums/forum/forums-2/f1/correct-group-name/Yours with bbPress forum ID 127628
/forums/forum/forums-2/name-of-another-group/These infer the following:
forums-2
— f1
— — correct-group-name
— name of another groupWith your settings:
“BuddyPress Integration” -> “Group Forums Parent” is set as “forums-2”
– Forum Root Slug ->forums
– Forum Prefix -> Check/Tick
– Single Forum Slugs -> Forum ->forumAs long as the quote/code formatting displays as expected is this what your bbPress forums layout hierarchy looks like?
EDIT: Tweaked the formatting above and just trying to digest where the
forums-2comes from and why it is there, thef1no doubt is part of the incorrect forum slug that we can get to with the fix, I’ve got to go dig through some source code of bbPress & BuddyPress to workout where things are broken and how to fix it.July 6, 2014 at 6:51 am #184831notpoppy
ParticipantIt was clear enough! 🙂
Do both show the correct/expected bbPress forum selected?
Yes, they do.
comparing my examples above do you see anything in your config that differs that matches up with your URL mismatch somewhere…
OK here’s what links I have for the forum where I have the problem with BuddyPress activated and deactivated. Note that it’s when BuddyPress is activated that the wrong group name appears on the ‘view’ link.
BuddyPress activated
Edit link: /wp-admin/post.php?post=127650&action=edit
View link: /groups/incorrect-group-name/forum/BuddyPress deactivated
Edit link: /wp-admin/post.php?post=127650&action=edit
View link: /forums/forum/forums-2/f1/correct-group-name/And here’s the same information for a forum which is working correctly:
BuddyPress activated
Edit link: /wp-admin/post.php?post=127628&action=edit
View link: /groups/name-of-another-group/forum/BuddyPress deactivated
Edit link: /wp-admin/post.php?post=127628&action=edit
View link: /forums/forum/forums-2/name-of-another-group/July 6, 2014 at 2:58 am #184830Stephen Edgar
ModeratorThere are two locations you can edit the bbPress Group forum associated with a BP Group:
Frontend:
http://example.com/groups/buddypress-public-group/admin/forum/
Navigate to the groups ‘home page’ -> Admin -> Forum
(Where ‘buddypress-public-group’ is the name of the group forum)Backend:
http://example.com/wp-admin/admin.php?page=bp-groups&gid=1&action=edit
Wp-Admin Dashboard -> Groups -> ‘BuddyPress Public Group’ -> Edit
(Where ‘gid=1’ is the group forum ID)Each of those screens should show both a checkbox and a dropdown menu showing the available bbPress Forums to associate with that particular BuddyPress Group.
Do both show the correct/expected bbPress forum selected?
(If you think any of the forum names in these dropdowns is ambiguous view the HTML source of the dropdown and each forum should also have avalue=form field and that will be the ID of the bbPress forum)However I do note that on the forums page although the ‘Edit’ button shows the correct forums_id values for each forum, the ‘View’ button shows an incorrect link for the problematic forum.
Hmmm… To continue using my same examples I have thus far, the bbPress Forum I am using has an ID of
25and it’s edit link ishttp://example.com/wp-admin/post.php?post=25&action=edit, it’s view link ishttp://example.com/groups/buddypress-public-group/forum/. Because BuddyPress is activated we add some redirection bits and pieces so we cannot directly modify the bbPress forum permalink whilst BuddyPress is activated.If you deactivate BuddyPress for a moment and check the view link of the same bbPress forum it should be similar to
http://example.com/forums/forum/buddypress-forums-category/buddypress-public-group-forum/where in my casebuddypress-forums-categoryis the bbPress parent forum category that all by BuddyPress group forums are located under andbuddypress-public-group-forumis the bbPress forum.So comparing my examples above do you see anything in your config that differs that matches up with your URL mismatch somewhere….
Clear as mud all of the above 😉
July 5, 2014 at 3:27 pm #184826bp-help
Participant@chiraggmodi
Here is a free code snippet with instructions:
You will place it in bp-custom.php if you do not know what this file is, then here is a link that will help explain it:
https://codex.buddypress.org/plugindev/bp-custom-php/
Good luck!July 5, 2014 at 1:32 am #184813@mercime
Participant@giorgosnl Next time, please start a new topic as moderators could miss your post.
But when I click on upload image it redirects to my profile and will change admins image??
When I checked the issue you posted, the avatar was correctly changed in user’s profile but the update did redirect after completion to the Site Admin’s profile page. The issue was also posted at https://buddypress.trac.wordpress.org/ticket/5580 and fix is slated for BP 2.1.
If your issue is not resolved with the patch after changing to one of WP Default themes and deactivating all plugins except BP to exclude conflicts, please feel free to create a new trac ticket using your WP username and password to log in.
July 4, 2014 at 9:49 am #184801Stephen Edgar
ModeratorAlso did you try updating via the ‘Group Forums’ Edit Screen UI?
It should be correctly updating the bbPress Forum there for your BuddyPress Group, did it? did you try?
July 4, 2014 at 9:35 am #184800Stephen Edgar
ModeratorAs per your original post you are using bbPress v2.5.4, the
bb_forumstable are part of the legacy BuddyPress Group Forums/bbPress v1.x Forums.bbPress 2.x no longer uses these tables, all of bbPress 2.x forums, topics and replies are in the
wp_poststable as custom post types.If you look in the bbPress Forums panel and hover your mouse over or edit one of the forums you will see the post ID in the URL, you will find that (educated guessing here) that most of your forums have a six digit ID’s?
Each of those ID’s should correspond to the bbPress 2.x Forum attached to each BuddyPress Group Forum as you see in your
wp_groups_groupmetatable.So if you look in the
wp_groups_groupmetatable at your group ID26and that127650value does NOT match the bbPress forum ID you expect it should match.Grab the correct bbPress forum ID and write down the current ID if you need to revert, bakcup your database etc etc) then update that value and I think you should be sorted.
July 4, 2014 at 7:46 am #184796Stephen Edgar
ModeratorThinking about this further by updating the bbPress forum associated with the BuddyPress Group via the BuddyPress Groups edit should update the value in
wp_bp_groups_groupmetaas I outlined above.Before you try the MySQL direct approach above could you try editing the group and seeing if the the bbPress forum ID is updated correctly please.
Dashboard -> Groups -> Edit Group
Then, on the far right is a dropdown to select the bbPress forum associated with the BuddyPress group, if you change this does it update
forum_idinwp_bp_groups_groupmetawith the correct bbPress forum ID?July 3, 2014 at 4:41 pm #184775r-a-y
Keymaster@dainismichel – Cool, glad to hear of your rejuvenated relationship with BuddyPress 🙂
Talk to @hnla or @mercime if you want to contribute to documentation. We can always use more help.
July 3, 2014 at 3:14 pm #184774In reply to: importing from Drupal 6
shanebp
ModeratorBuddyPress uses bbPress for forums.
So you want to import into bbPress.
Try asking bbpress support.July 3, 2014 at 7:21 am #184765dainismichel
Participantthank you so very very much @r-a-y, from my vantage point, this thread is closed.
this was a real pivotal moment for me and my “relationship” with buddypress.
u got me considering contributing regarding functionality planning & concept design — is there a “workgroup” that discusses such issues? is there a documentation workgroup?
best,
dainisps — if i remember correctly, i did edit some buddypress dox a while back. nothing much, just some precision edits.
July 3, 2014 at 1:49 am #184758r-a-y
KeymasterRead point 2 of this post with an explanation and a workaround fix:
https://buddypress.org/support/topic/problems-on-post-comments-notification-and-activity-loop-in-buddypress-2-0-rc1/#post-181492July 3, 2014 at 1:45 am #184757In reply to: modify fields in groups
r-a-y
KeymasterYou’ll probaly want to build a plugin using the Group Extension API:
July 3, 2014 at 1:43 am #184756r-a-y
KeymasterSounds like you just need an Events plugin that allows posting from the frontend. BuddyPress might be overkill for this.
If you do need to use BuddyPress and a frontend Events plugin that integrates with BuddyPress, then you’ll have to look for one that does this.
July 2, 2014 at 6:48 pm #184745In reply to: Disable posting to users profiles
@mercime
Participant@jeremiahward Did you download the file from buddypress.trac in the
Original Formatper link at the bottom of the page, i.e., index.php? And did you add that index.php to your WP child theme folder per structure I gave you in your own child theme? If you did, and it’s still not working for you because of some conflict, you can always go through the CSS route. Add this to your stylesheet:.activity form#whats-new-form { display: none; }July 2, 2014 at 4:56 pm #184705In reply to: Bug w/ BuddyPress Activity Privacy & rtMedia
savor2
Participant@djouonanglandry We are attempting to contact @megainfo (the author of BuddyPress Activity Privacy plugin) to report a bug. We are not interested in being solicited by a third party.
July 2, 2014 at 9:48 am #184672In reply to: Buddypress avatars across a mutisite network?
Mr-B
ParticipantHello
I have been thinking more about sweetdate but it does not seem to be responsive on my mobile.
I wanted to test your site on my mobile, but it seems your community and forum links might be dead. Did you abandon buddypress and / or sweetdate themes?
Brian.July 2, 2014 at 3:51 am #184663In reply to: bp_has_members ignores user
Łukasz Wilk
ParticipantHmm that’s really strange. It might be a good idea to contact BuddyPress developers if you are sure that this is the issue.
July 2, 2014 at 3:26 am #184662In reply to: [Resolved] Disable Nested Commenting?
dainismichel
Participantis this an even “better” solution from even longer “ago?” LOL
https://buddypress.org/support/topic/how-to-calm-down-comment-nesting/
— really — has the nesting issue been resolved by some “checkbox” that i am missing?
-
AuthorSearch Results