Search Results for 'buddypress'
-
AuthorSearch Results
-
June 4, 2015 at 11:44 pm #240247
In reply to: Group tab questions
shanebp
Moderator2. How would I add a extra tab in a group that I can link to a URL?
You need to use the Group Extension API
Since you only want it for one group, you need to check for that group id:
if( bp_get_group_id() == 2 ) bp_register_group_extension( 'Your_Group_Extension_Name' );June 4, 2015 at 11:15 pm #240241In reply to: Group tab questions
mrjarbenne
ParticipantIf you want to rename reference to the Forums everywhere you’ll probably need to do that with a language file: https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/
Did the stack exchange link help with the additional link you were trying to add?
June 4, 2015 at 10:40 pm #240238In reply to: xprofile_insert_field_group() ignoring ID
CodeMonkeyBanana
Participant@shanebp Thanks for the reply.
[…]in any relational table, if an item is assigned to a group ID and that group ID no longer exists in the table that holds group IDs, then that data will not be displayed, ie. orphaned.
I deleted through the admin panel so I am not sure what was deleted, that was what I meant by asking if is was standard behaviour. Possibly what I should have said is; when a user deletes a group by using the ‘bp-profile-setup’ page to click on the ‘delete group’ button, is buddypresses default behaviour to just drop the group and leave the profile data in the table or does it also iteratively remove the profile fields?
I can see the reason why you would want to leave the data in the table (and also reasons why you wouldn’t). I had a quick look at the code but I am not familiar enough with it yet to pinpoint the exact code block.
If fields are not deleted then I guess any fields directly referenced would still be visiable on the site. That may be misleading to user as they may assume deleting a group would also remove fields. However you wouldn’t want a group to be deleted by accident and then a large amount of data be lost. I would guess a system of deleting the group and then updating each profile field to explicitly notify calling functions that their parent has been deleted would be appropriate in the circumstance.
I have used a relational database before but I am unfamiliar with the logic employed by buddypress to interact with it.
The behaviour I was was getting was weird. When I deleted a group and created it again no fields were showing. Then when I added a field, it had a value immediately after creating so something weird was going on so I thought I would ask to see if you knew if the profile data gets deleted when a user clicks delete group in admin panel.
I am starting again now so will pay closer attention to all data as it goes into fresh tables but sometimes it is harder to see to absence of data compared to the addition of new data.
Why? BP will always create a Base group.
I am running a multisite where individual user blogs can create their own fields (https://codex.buddypress.org/themes/guides/segregated-x-profile-fields-for-multisite/).
As the article says:
This code will not create dummy content, so for every new site you will need to create a Profile Fields group and add profile fields to it manually.
When I create new site there are no field groups made at all which I assumed is what it was talking about. Also I wanted to have a default set of groups but allow subsite to edit them. If they want to get default groups back they can just delete all their groups and default will be restored. I could add a separate button for that but I just figured I’d do it like this, no particular reason, I am still in early stages of project.
I think there were other errors at play so starting from scratch with a little more understanding will hopefully enlighten me. I will be duplicating tables this time instead of using meta table.
June 4, 2015 at 10:08 pm #240237In reply to: Members Directory Page Broken After Update
jturet
Participant@aryae-coopersmith: Navigate to Plugins -> Editor from your dashboard
Choose ‘Buddypress’ from the dropdown and click ‘Select’
Use Cmd+F or Ctrl+F to find ‘buddypress/bp-core/bp-core-catchuri.php’ and click it
Scroll down or use Cmd+F/Ctrl+F to find// Reset the offsetin the page
Change} // Reset the offset $uri_offset = 0;to
// Reset the offset $uri_offset = 0; }And click ‘Update File’
June 4, 2015 at 8:49 pm #240232In reply to: BP registration form not creating new users
jfoster-42
ParticipantThanks for the reply @shanebp!
I see…do you have any ideas as to what could be causing this? If it’s something on my local machine that’s causing the issue, no biggie. But the site launches in a little less than two weeks so if it’s something I have in my code then that’s a problem.
I saw on another thread someone suggested using a register.php template from an older version of BuddyPress, but that was posted for BP 1.8 I believe. Would that be a good idea to try or would that just cause problems?
June 4, 2015 at 8:41 pm #240231r-a-y
KeymasterYes, you need to install bbPress in order to have forum functionality within BuddyPress groups.
View this guide:
June 4, 2015 at 8:12 pm #240227In reply to: Problem with CKEditor
ian.altgilbers@tufts.edu
ParticipantI am seeing this as well..
TypeError: undefined is not an object (evaluating ‘window.tinyMCE.activeEditor.contentDocument.activeElement’)
This is in bp-activity/js/mentions.js
I’m not terribly familiar with these Editor modification, but looks like BuddyPress is doing some tinyMCE specific stuff… Could this be done in an editor-agnostic way?
June 4, 2015 at 7:48 pm #240223r-a-y
Keymaster@dono12 – I have split your post into a separate thread.
About the “Starred” feature, do you mean the star private messages feature that you can access under “Messages > Starred”? If not, then this isn’t related to any change in BuddyPress 2.3.0.
Your issue doesn’t sound like it is related to the Messages component, so can you clarify?
June 4, 2015 at 6:47 pm #240218In reply to: Members Directory Page Broken After Update
r-a-y
Keymaster@jturet – You can make this corresponding change to
/buddypress/bp-core/bp-core-catchuri.phpfor now until v2.3.1 is released:
https://buddypress.trac.wordpress.org/changeset/9916/branches/2.3/src/bp-core/bp-core-catchuri.phpJune 4, 2015 at 4:57 pm #240213In reply to: List groups i am admin of
shanebp
ModeratorThere is a BP function for getting the ids of the groups for which you’re an admin:
get_is_admin_ofYou could use it like this:
function my_group_admin_ids() { $my_group_ids = BP_Groups_Member::get_is_admin_of( 1 ); //if your id = 1 foreach( $my_group_ids['groups'] as $group ) { $link = bp_get_group_permalink( $group ); echo '<a href="' . $link .'">' . $group->name . '</a><br/>'; } } add_action( 'bp_before_directory_groups', 'my_group_admin_ids');If you want to create a custom tab to hold that info, you need to create a new li element in a template overload of this file:
\bp-templates\bp-legacy\buddypress\groups\index.phpJune 4, 2015 at 4:52 pm #240212shaquana_folks
ParticipantOkay @henrywright, I’ll check about that error message with that bbPress plugin through their forum.
So I did what you recommended and turned off all the plugins (including the bbPress plugin) where I only have the BuddyPress plugin activated, with me still using the TwentyFifteen theme, went ahead and filled out the registration form once more, and it still took me right back to that registration page with my same information filled out that I did but left the password boxes empty and this is all still showing up each time the page loads up instead of creating the new user profile or redirecting me somewhere else.
June 4, 2015 at 4:26 pm #240209shaquana_folks
ParticipantSo as I deactivated all the plugins (except the BuddyPress and bbPress plugin) I noticed this error message from my Dashboard just now about the bbPress plug in. Could that be the one that causing the registration page to not work?
June 4, 2015 at 3:40 pm #240206shaquana_folks
ParticipantSorry I forgot to tag you in the previous message @henrywright
Activated plugins from my end:
Akismet (Version 3.1.1)
bbPress (Version 2.5.7)
BuddyPress (Version 2.3.0)
Contact Form 7 (Version 4.1.2)
Contact Form Shortcode (Version 0.9)
Jetpack by WordPress.com (Version 3.5.3)
MOJO Marketplace (Version 0.6.0)
SZ-Google (Version 1.8.9)
W3 Total Cache (Version 0.9.4.1)
WordPress Importer (Version 0.6.1)
wp responsive photo gallery (Version 1.0)
iFlyChat (Version 2.9.2)June 4, 2015 at 3:29 pm #240205shaquana_folks
ParticipantAkismet (Version 3.1.1)
bbPress (Version 2.5.7)
BuddyPress (Version 2.3.0)
Contact Form 7 (Version 4.1.2)
Contact Form Shortcode (Version 0.9)
Jetpack by WordPress.com (Version 3.5.3)
MOJO Marketplace (Version 0.6.0)
SZ-Google (Version 1.8.9)
W3 Total Cache (Version 0.9.4.1)
WordPress Importer (Version 0.6.1)
wp responsive photo gallery (Version 1.0)
iFlyChat (Version 2.9.2)June 4, 2015 at 3:13 pm #240202shaquana_folks
ParticipantHello @henrywright
Thank you so much for replying back so quickly. And yes, I even tried it with the TwentyFifteen theme (which is currently at the 1.2 version). In addition, I just noticed that my BuddyPress plugin has an upgrade to now 2.3.0 so I went ahead and updated that as well. So when I tried filling out the registration page again, it still did the same thing even with that WP default theme. Any suggestions on why that’s still happening?
June 4, 2015 at 3:11 pm #240200In reply to: List groups i am admin of
Henry Wright
ModeratorIf you just need a quick and dirty approach for yourself to view, you could use the standard group loop to output a loop. See here.
Then put the following snippet directly after the line:
<?php while ( bp_groups() ) : bp_the_group(); ?>Snippet:
<?php $args = array( 'populate_extras' => true, 'group_id => bp_get_group_id() ); $group = groups_get_group( $args ); if ( ! in_array( bp_loggedin_user_id(), $group->admins ) ) { continue; } ?>Notes:
- I haven’t tested
- This approach won’t be performant
- I haven’t considered pagination
That said, it should get the job done. The alternative is to write some SQL and use the wpdb class.
June 4, 2015 at 2:16 pm #240194In reply to: BuddyPress and TemplatesNext Toolkit
Henry Wright
ModeratorHi @hansvdzwet
What happens is that when the TemplatesNext Toolkit plugin is active, all and every BuddyPress related link shows a page containing the content of the main/home page.
Does the problem happen when the plugin is deactivated? If not, then I suggest you contact the plugin author letting them know the details. Hopefully they can issue a fix.
June 4, 2015 at 2:13 pm #240192In reply to: Public User Gallery ?
Henry Wright
ModeratorJune 4, 2015 at 2:08 pm #240191In reply to: This layout is insane…
Henry Wright
ModeratorCompanion stylesheets were introduced in 2.3. You can read more about them here.
If they’re not quite to your taste, you can dequeue them. Here’s an example of how to do it:
function dequeue_bp_twentyfifteen() { wp_dequeue_style( 'bp-twentyfifteen' ); } add_action( 'wp_enqueue_scripts', 'dequeue_bp_twentyfifteen' );June 4, 2015 at 12:47 pm #240188American2020
ParticipantUps, let me answer myself.
I had this on wp-config.php
define( ‘BP_ENABLE_MULTIBLOG’, true );
Just remove it and “my problem” solved. Now Network members dont see BuddyPress configs 😉
My bad 😀
June 4, 2015 at 12:43 pm #240187American2020
ParticipantOMG Thanks mrjarbenne 😀 Now it works. Thanks a lot.
One thing I don’t understand/like why each member of the Network has now access to the BuddyPress Configs? I would prefer they not touching that. Plus they can also create Activity/Groups/Members Pages on they sites, I don’t like that, I would like all that to be centered on the root domain only, same for registration page and activation page. (Perhaps I activate too many options and I should uncheck one of them?)
I will add screenshots of the steps I followed so anyone having same issues can see how to get it to work, thanks to mrjarbenne steps 😉
June 4, 2015 at 7:26 am #240178In reply to: Members Directory Page Broken After Update
jturet
ParticipantWhat exactly do you mean by the page not being nested? In my situation both the nested and un-nested versions are accessible however only the un-nested version displays the member loop. This holds true for any arbitrary blank page that I choose to point the Buddypress page options to.
June 4, 2015 at 6:58 am #240175In reply to: Members Directory Page Broken After Update
jturet
ParticipantThe page exists, however there is no content. Thanks Hugo, your work is greatly appreciated!
Edit: I should also mention that other Buddypress pages such as Groups and Activity have no such issue.
June 4, 2015 at 6:56 am #240174In reply to: Members Directory Page Broken After Update
Hugo Ashmore
ParticipantI can confirm that the url path is stripped out but the actual members page should still work either directly navigated to or clicking the page link as nested under a parent dropdown which should result in page being found but at it’s root position my-site.com/members/
Can we confirm that the page does still exist and is viewable, in the meantime I’ll open a trac ticket to log the page hierarchical issue.
This issue is ticketed for looking into:
https://buddypress.trac.wordpress.org/ticket/6475#ticketJune 4, 2015 at 3:29 am #240168In reply to: Group tab questions
mrjarbenne
Participant -
AuthorSearch Results