Search Results for 'buddypress'
-
AuthorSearch Results
-
May 7, 2015 at 1:07 pm #238772
In reply to: Hide members from Member Directory
Henry Wright
ModeratorHi @micromart
Check out
bp_parse_args(). That’ll be the proper way to do it.Ref: https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/
May 7, 2015 at 12:37 am #238762danbp
ParticipantNo, you do it wrong. Read the codex links i provided.
buddypress-functions.php in the bp-templates\bp-legacy folder or profile-loop.php are not the right files.
I told you to put the snippet into bp-custom.php OR in your child-theme functions.php
Why do you hack core files ? They will be overwriten at next BP update… 👿
May 6, 2015 at 11:09 pm #238761tiquality
ParticipantWait!!! No I got sucessfull! @danbp I inserted this code on the buddypress-functions.php in the bp-templates\bp-legacy folder, and it is fantastic, very great!
http://tiquality.com.br/intranet/members/mallandro/profile/
Thanks guys, very thanks for your help!
May 6, 2015 at 10:06 pm #238760tiquality
Participanthello!
thanks so much my friend for the help.
I Inserted the code “function tiquality_add_custom_field() {” in profile-loop.php and inserted the “add_action(‘bp_member” in the functions buddypress, and the result was not ok, see: http://tiquality.com.br/intranet/members/ayrton/profile/
May 6, 2015 at 7:27 pm #238754danbp
Participanthi @tiquality,
to show the user’s mail above the other user information, you can add the following snippet to bp-custom.php or child-theme’s functions.php
Assuming users gave a valid email at registration, we can output that address.
Avantage is that they haven’t to enter their mail a second time while completing their profile.So we just need to manually add this address to the template, using one of the action hook avaible in profile-loop.php
function tiquality_add_custom_field() { if ( bp_is_active( 'xprofile' ) ) : if ( is_user_logged_in() ) { ?> <div class="bp-widget <?php bp_the_profile_group_slug(); ?>"> <table class="profile-fields"> <tr class="my_mail"> <td class="label">Contact me</td> <td class="data"><a href="mailto:<?php bp_displayed_user_email(); ?>"><?php bp_displayed_user_email(); ?></a></td> </tr> </table> </div> <?php } endif; } add_action('bp_profile_field_buttons', 'tiquality_add_custom_field');If you prefer it on the profile header, use the action hook indicated by Brajesh
add_action('bp_member_header_actions', 'tiquality_add_custom_field');May 6, 2015 at 7:20 pm #238752In reply to: Some of my users profiles are not loading
WPWally
ParticipantHi @henrywright sorry for the delayed response but I had other things to tend to. Yes, I am seeing the problem on both the localhost and my online server. The only difference between the two is that my local server is returning the error code and my online server is not.
I am once again updated to the latest versions of both WordPress and BuddyPress.
May 6, 2015 at 2:46 pm #238745In reply to: Groups issue
danbp
ParticipantHallo @rene-streber,
First of, i would recommend that you revert to a basic WP install using 2014 or 2015 theme and the WP’s german language activated and all plugins deactivated.
If you have a local install, suggest you do your test on it instead of the prod site.
Once this is done, you activate BuddyPress. German language will automatically be uploaded to the right folder (wp-content/languages/plugins/buddypress-de_DE.mo)
The original translation is here. It is complete to 100%. (and also the official translation).
FYI deckerweb provides a translation for bp 1.9 & 1.9.1. Soseems to meit is outdated now.Check if anything is correctly übersetzt. Theoretish sollte es jetzt funktionnieren.
If ok, you activate the main theme. Recheck everything. If ok, reactivate your plugins one by one and check each step to isolate an issue, if ever.
If everything is correct again, you can handle the specifics for your homepage. But remind one thing: BuddyPress components use a page system which is only in for internal purpose. This means that you can’t apply a page model like for an usual WP page. And if you use a special template just for the homepage, you have to adjust it to work with BuddyPress.
Each activated BP component should have a page assigned. And this page must be unique and empty, whithout any template or model settings, just a title.
I see that you have some issue with page names in your menu. Button show community2 and the permalink contains community-4. Check this too, to get community only everywhere. And probably clear your trash as it may contain some duplicates from previous attempts.
Once this is cleaned, und mit klarer aussicht, simply resave your permalinks to reinitialize all links.
May 6, 2015 at 2:19 pm #238744In reply to: Forums on Member Pages
danbp
Participantbp_is_user_forums(), check if forums component is active.
https://buddypress.trac.wordpress.org/changeset/6484Which type of forum do you use ? Standalone or group, or both ?
In bbPress you have a folder called extend containing the BP specific templates. Should you use them depends the forum type.
If bbPress is standalone, the plugin is totally independant of BuddyPress in regards of templates at least.
May 6, 2015 at 2:11 pm #238743In reply to: Button that links to the Private Message (compose)
danbp
ParticipantMay 6, 2015 at 11:54 am #238738In reply to: Button that links to the Private Message
Henry Wright
ModeratorClosing as a [duplicate]
May 6, 2015 at 12:22 am #238730Brajesh Singh
ParticipantSorry if I am late here.
I just tested the plugin today with BuddyPress 2.2.3.1 and It is working. I have updated a new version too that cleans it a little bit.Hope that helps.
May 6, 2015 at 12:20 am #238729Brajesh Singh
ParticipantHi,
Is your theme BuddyPress compatible, if yes, Please check if there is ‘members/single/member-header.php or buddypress/members/single/member-header.phpIf yes, you can put the code anywhere in that file. If your theme does not have this file, It can be added via ‘bp_member_header_actions’ too like this
add_action('bp_member_header_actions', 'devb_show_displayed_user_email' );which you can put in the bp-custom.php too.
May 5, 2015 at 3:16 pm #238718In reply to: Changing the text color on the Registration page
@mcuk
ParticipantIf you add the code below to your style.css file it won’t appear on the page:
#buddypress .field-visibility-settings-notoggle { display: none; }May 5, 2015 at 10:41 am #238706In reply to: Forums on Member Pages
Marcella
Participantmembers/single/index.php does exist, I created it. It also takes as a valid template. If you use home.php erroneous p tags are placed throughout the page.
bp_is_user_forums() doesn’t seem to work.I think the template names were all changed, https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/#single-member-pages
/members/member/forums/ doesn’t list anything, returns nothing.
/members/member/forums/replies – lists the topics, although they aren’t replies they are topics started.Thanks for reply.
p.s.
May 5, 2015 at 6:57 am #238699danbp
ParticipantThis works only in the member loop.
Not sure what you mean by a user standard page, but if you mean a normal WP page, see here first:or more simplier, see
https://wordpress.org/plugins/bp-profile-search/May 4, 2015 at 10:58 pm #238691In reply to: Dont show comments in Site-Wide Activity
danbp
ParticipantDeactivate all plugins except BuddyPress and activate 2014 theme.
See if it works. Then reactivate one by one until you find a culprit.May 4, 2015 at 10:36 pm #238687In reply to: Edit Profile
Henry Wright
ModeratorMay 4, 2015 at 9:45 pm #238686In reply to: Forums on Member Pages
danbp
Participantmembers/single/index.phpdoesn’t exist. It’s members/index.phpelseif(bp_is_user_forums())is in members/single/home.phpbp_is_user_forumsfunction is in bp-core/bp-core-templates.php:1791Confused ? Or really lost ?
Anyway, your question is How can I serve my own template, and inside that template how do I query a members topics?. Right ?Guess you have to do some homework. See:
Other example, see here (you just have to change the post type probably: post vs. topic)
May 4, 2015 at 9:10 pm #238684danbp
Participantif you’re sure you strictly followed these instructions, enable wp_debug and see which kind of error you get when on the group front-end settings page.
Can you upload user avatars correctly ?
Can you upload pictures to Media Library ?And last but not least, give your theme name or the site url.
May 4, 2015 at 9:04 pm #238683In reply to: Forums on Member Pages
Marcella
Participant@danbp Thanks for reply.
Inside of members/single/index.php
There’s some logic to serve the correct template.
I notice at the line
elseif(bp_is_user_forums()) :This never actually runs… It’s not until the “// if nothing else sticks” fail safe the logic matches and the plugins template is loaded.
So two problems… How can I serve my own template, and inside that template how do I query a members topics?
Basically I’m working with the legacy templates which ship with the plugin to get started with this theme.
Also, sidenote… BuddyPress seems to inject weird paragraph tags throughout the inner templates if you don’t have the correct template names in your-theme/buddypress
Only seems to happen when a buddypress folder exists inside the theme.
May 4, 2015 at 8:55 pm #238682In reply to: How to add sidebar to single update/comment page
danbp
ParticipantI can’t explain better as the Codex. You simply have to follow what’s explained here:
May 4, 2015 at 8:45 pm #238681In reply to: Forums on Member Pages
danbp
Participantit doesn’t reflect the topics this account has created.
It should normally !
When on a profile, the forum item leads to this user forum activity. Any type of forum: groups and global forum.Verify your settings. What you should get with defaut settings:
Forum link on profile:
your-site/members/username/forums/On a group forum
your-site/groups/group_name/forum/On the global forum
your-site/forums/forum/forum_name/ (forum_name is a page title you must create, on this page you add bbpress shortcodes to show up the global forum only).Group forum is the first forum you create (in admin) if you want group forums, and as forum attribute you assign “category” (see right column on create forum page).
Then you have to set this group forum as parent page for all group forums in forum settings.Better detailed here:
May 4, 2015 at 8:16 pm #238680In reply to: All members link on Member Profile
danbp
ParticipantYou can’t use that function for this contextual menu.
Use the action hook coming after bp_user_displayed_nav function:
bp_member_option_navto simply add html and your link.Try this (add to bp-custom.php or child theme functions.php)
function lh_custom_setup_nav() { if ( bp_is_active( 'xprofile' ) ) ?> <li><a href="<?php bp_members_directory_permalink(); ?>"><?php printf( __( 'All Members', 'buddypress' ) ); ?></a></li> <?php } add_action( 'bp_member_options_nav', 'lh_custom_setup_nav' );Apply CSS to li and a tags accordingly to your theme if necessary.
Reference file: bp-templates/bp-legacy/buddypress/members/single/home.php
May 4, 2015 at 6:58 pm #238677notpoppy
Participant@danbp OK the best indication I have from reports from my users is this has fixed the problem, so thanks very much for your help! I really am very grateful.
I have got another problem with groups which I am trying to solve which I have described here if you’re able to take a look:
https://buddypress.org/support/topic/cannot-upload-group-photo-avatar-gives-404-error/
May 4, 2015 at 8:44 am #238660In reply to: No pages, posts or comments in Activity
Parmeshwar
ParticipantHello, everyone.
How can I add Post button in Buddypress Activity sections?
Please help.
-
AuthorSearch Results