Search Results for 'buddypress'
-
AuthorSearch Results
-
July 6, 2015 at 8:33 pm #241509
In reply to: show entire activity stream – global activity stream
Quinn Goldwin
ParticipantHey Danbp,
Thank you for the quick responses and all your help. I tried playing around with your way but I’m not advanced enough for working with hooks and custom coding just yet.
I did find an easier work around that I just pasted into my bp-custom.php and it did the trick. But for other members trying to do this, you need to have the plugin http://buddydev.com/buddypress/show-buddypress-communitysitewide-activity-on-user-profile/ for this to work.
function bp_change_activity_subnav_default() { if ( bp_is_user_activity() ) { $args = array( 'parent_slug' => 'activity', 'subnav_slug' => 'all-activity' ); bp_core_new_nav_default($args); } } add_action('bp_setup_nav', 'bp_change_activity_subnav_default', 5);I understand you guys aren’t getting paid for your services but now i’m just struggling on adding a “whats new” post form to the all activity page. Buddy dev had some directions on how to add it but I think its dated cause I couldn’t find the code that we needed to switch out. Is there a simple way to add a whats new post form to the all activity page? It would be awesome if it was simple enough to paste it into bp-custom.php.
Thanks again for everything you guys are great!
July 6, 2015 at 7:30 pm #241505In reply to: [Resolved] Unable to crop Profile pictures
danbp
ParticipantI have never used kendo, so i can’t help you about how it works, or not, with BuddyPress or with your theme.
But you can deregister a script or add more scripts into the theme…
Read here if it inspires you:
http://wordpress.stackexchange.com/questions/152559/wordpress-script-loading-unloading-wp-deregister-scriptjqueryJuly 6, 2015 at 4:39 pm #241501In reply to: [Resolved] Change name of a function
danbp
ParticipantJuly 6, 2015 at 3:48 pm #241500In reply to: Query posts by custom field
killabien
ParticipantShane, thank you for your reply.
My code now looks like this:<?php /** * Template Name: Spanish */ get_header(); ?> <?php get_template_part('page-parts/general-title-section'); ?> <?php get_template_part('page-parts/general-before-wrap'); ?> <?php $members = my_custom_ids( 'country', 'Spain' ); ?> <?php $query = new WP_Query( array( 'author__in' => $members ) ); if ($query->have_posts()) : // Start the Loop. query_posts($query); while ($query->have_posts() ) : $query->the_post(); /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'page-parts/post-content-small' ); get_template_part( 'page-parts/posts-social-share' ); ?> <?php if ( sq_option( 'page_comments', 0 ) == 1 ): ?> <!-- Begin Comments --> <?php comments_template( '', true ); ?> <!-- End Comments --> <?php endif; ?> <?php endwhile; endif; ?> <?php wp_reset_postdata()?> <?php get_template_part('page-parts/general-after-wrap'); ?> <?php get_footer(); ?>When I tried doing it with only
my_custom_idsI suddenly get nothing displayed at all. Now even when I try the example code from members_loop in codex I get an error like this:Warning: Creating default object from empty value in C:\xampp2\htdocs\wp-content\plugins\buddypress\bp-members\bp-members-template.php on line 627
Viewing 1 – 0 of 0 membersFatal error: Call to undefined method stdClass::members() in C:\xampp2\htdocs\wp-content\plugins\buddypress\bp-members\bp-members-template.php on line 609
Sorry for prolonging this topic, this is the last feature I need to add and I thought it’d be easier.
Thank you for your helpBest
DavidJuly 6, 2015 at 2:17 pm #241496In reply to: Query posts by custom field
killabien
ParticipantOkay, so while I’ve made some progress thanks to you two, I’m still missing something. I thought it was working tomorrow but the code wasn’t logical(I had to use
author__not_into display posts from all Spanish users but it didn’t work with other countries).So first of all, this code gives me only the users from a given country:
<?php $Members = array((bp_has_members( my_custom_ids( 'country', 'Spain' ) )) ); ?>I’ve used the example Here and it displays only those two users I have with Spain. When I change to France it displays only one user, which is correct. So this one is good to go.
I’m having trouble with the rest though.<?php $query = new WP_Query( array( 'author__in' =>array($Members))); if ($query->have_posts()) : // Start the Loop. query_posts($query); while ($query->have_posts() ) : $query->the_post(); /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'page-parts/post-content-small' ); get_template_part( 'page-parts/posts-social-share' ); ?> <?php if ( sq_option( 'page_comments', 0 ) == 1 ): ?> <!-- Begin Comments --> <?php comments_template( '', true ); ?> <!-- End Comments --> <?php endif; ?> <?php endwhile; endif; ?>Is what I’ve been trying to do. Putting
(bp_has_members( my_custom_ids( 'country', 'Spain' ) ))into an array like this:
$query = new WP_Query( array( 'author__in' =>array(bp_has_members( my_custom_ids( 'country', 'Spain' ) ))));
Didn’t give me the results I wanted. What am I doing wrong? Once when I putauthor__not_init worked but only with Spain and no other country. Now it’s not working even with Spain.
Any suggestions? What should I do? Please help.Regards
David
July 6, 2015 at 12:08 pm #241492In reply to: Display Group comment posts
July 6, 2015 at 11:40 am #241489In reply to: Content Invisible to Google
djsteveb
ParticipantGo to your main groups page, and an individual group page.
On both do a “view source”
Is there anything in your source that has anything to do with “robots”
(like robots meta noindex)That would be an issue – but I bet it’s just the way buddypress handles the
“meta name description”
and html page “title” for groups, and individual member’s profile pagesG’s Wb Tools always says it’s an issue for my bp sites..
(missing completely, or duplicate your other pages, or too short)This issue was brought up and worked on a bit a few months ago here:
https://buddypress.org/support/topic/bussdypress-title-and-seo-yoast-problem/#post-236324(since then there was some interesting discussion in a trac where I was impressed some of the devs thought about a lot of issues with this – can’t remember the trac # atm)
I also made a suggestion about this issue here:
https://buddypress.org/support/topic/page-titles-meta-desc-option-like-wp-permalinks/Although there was some great work on this issue recently, I think it’s still far from what the big G wants to see.
Given the issues with each group’s lack of good (or any) meta name description, and lame page titles, it may actually be more beneficial to block their indexing with a robots.txt file – as having a bunch of issues there affects the ranking for the rest of your site from what I gather.
July 6, 2015 at 9:33 am #241482In reply to: How to edit tabs content?
whoaloic
ParticipantI just add that I could unset profile public tab:
/* remove subtabs*/ function remove_submenu_item() { bp_core_remove_subnav_item( 'settings', 'profile' ); bp_core_remove_subnav_item( 'profile', 'public' ); } add_action( 'bp_setup_nav', 'remove_submenu_item', 100 );But I need to change the Profile landing subnav to avoid 404 page.
I found this piece of code but this only for main tab.
/** * Change BuddyPress default Members landing tab. */ define('BP_DEFAULT_COMPONENT', 'profile' );July 6, 2015 at 9:26 am #241481In reply to: How to edit tabs content?
whoaloic
ParticipantHello,
actually I mean to merge content of members/single/settings/general.php and members/single/profile/edit.php.
My idea is to get custom BP profile fields (username) along with the email and password fields in the general settings tab.
When I copy plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/ to mytheme/buddypress/members/single/, those files don’t override plugin core files.July 6, 2015 at 9:00 am #241477In reply to: [Resolved] profile-edit takes me to group forums
Prabin
ParticipantHi @jakobbader.. can you do the followings ?
1. Most importantly, disable all plugins except BuddyPress.
2. Also try Switching theme and Check.
3. Make Sure you haven’t changed core files.July 5, 2015 at 9:19 am #241456In reply to: Facebook Group
Henry Wright
Moderator“Your BuddyPress” is a place to show off your wonderful BuddyPress creations. Even though your Facebook group isn’t a BuddyPress creation, it is third-party and seems to be dedicated to BuddyPress so I thought this forum was a fitting place for your post.
Hope that explains why your topic was moved.
July 5, 2015 at 8:58 am #241455Hugo Ashmore
Participant>I downloaded buddypress and the template pack too
Why did you download the template pack, can you tell us what led you to the template pack, that package is quite old and not relevant you shouldn’t need it if you simply allow the BP theme compatibility process to run and copy any files if you need to customize them to your theme as explained in the article linked to above.
We’d be interested to know what led you to the Template Pack so we can see if we have misleading guides and/or links to it that we can qualify to make things clearer.
July 4, 2015 at 9:41 pm #241451In reply to: Facebook Group
Henry Wright
Moderator[Moved to the “Your BuddyPress” forum]
July 4, 2015 at 9:36 pm #241449Henry Wright
ModeratorTake a look at the BuddyPress Template Hierarchy article. That should answer any questions you have.
July 4, 2015 at 1:08 am #241441In reply to: [Resolved] Limiting Activities by User’s City
shanebp
ModeratorPlease use the
codebutton.Store your meta in the
bp_activity_metatable when an activity entry is created.
Then you can use an Activity Meta Query to filter activities.Add custom filters to loops and enjoy them within your plugin
July 3, 2015 at 8:11 pm #241432In reply to: Groups no longer working
danbp
ParticipantThe anser you expect was in your first topic.
I’ve searched the forum and there are no other topics about this.
Topic is now closed.
Next time you want help, give correct details and don’t ask us to see your site without giving his URL.
July 3, 2015 at 6:59 pm #241431In reply to: [Resolved] Problems getting started
Anonymous User
InactiveThank you, danbp.
I am sure now that BuddyPress is not the right solution for me.
Nicole
July 3, 2015 at 6:19 pm #241428In reply to: Fields Privacy Problem
danbp
ParticipantThis is a knowed bug, a bit forgotten over the time (2 years back !).
https://buddypress.trac.wordpress.org/ticket/4821
@imath will look at this this week-end.Follow the ticket to see progress, and eventually give feedback if asked for. Login on Trac uses same credentials as here.
That said, in your specific example, if a visitor knows the phone number of a registered user and try to search him on your site using that number, guess the relation between both is nearly familiar, so privacy is not a big problem, at least for them. 🙂
July 3, 2015 at 6:17 pm #241427In reply to: How to edit tabs content?
danbp
ParticipantSeems you posted twice !
https://buddypress.org/support/topic/where-i/or do you mean the Dashboard ?
July 3, 2015 at 6:12 pm #241426In reply to: [Resolved] Problems getting started
danbp
ParticipantWould it work if I would not connect the “members” page with BuddyPress in the settings, set the page to private and pull the dynamic content for the members list by a stortcode?
No, no, no. That page is core, must exist and should be blank. Just a (custom) title.
Do I need to learn to code to use BuddyPress?
No, but it’s better if you know some basics.To make the member directory for loggedin users only, you have to:
– create a child-theme (is explained on WP and BP codex)
– copy/paste index.php from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/index.php
to
/wp-content/themes/your_child/buddypress/members/index.phpIn this copy, right after
<div id="buddypress">, in the existing php opening tag just after, you addif(is_user_logged_in() ):At the end of the file, you’ll find the closing div tag of #buddypress.
Just before this closing tag, again an opening php tag, you addendif;before the do_action you’ll see there.If you did it correctly, the directory is now only be visible for loggedin users.
Some basics:
open php tag
<?php
closing php tag?>open html tag
<div>
closing html tag</div>July 3, 2015 at 5:41 pm #241425In reply to: [Resolved] Problems getting started
Anonymous User
InactiveHello danbp,
So far i understand you use bbPress and now you want a members directory, and eventually some additionnal fields on user’s profiles. And most of this should be private or “members only”, right ?
>> Correct, combined with private bbpress forums on a website with also public content.I have set the “members” page I created as private, but it is still displayed when I go on the page as a logged out user. Why is that so?
Would it work if I would not connect the “members” page with BuddyPress in the settings, set the page to private and pull the dynamic content for the members list by a stortcode?I can read into the codex of course, but do I need to learn to code to use BuddyPress?
Nicole
July 3, 2015 at 5:25 pm #241424In reply to: [Resolved] Problems getting started
danbp
ParticipantHi @nmschaller,
bbPress is a separate plugin and BuddyPress doesn’t manage bbPress. For questions about forum settings, you can use the bbPress support.
When you use BP groups component, you can add a forum to each of them. In this case only, you have to install bbPress. Of course you can also use bbPress as standalone on a BP install, or use bbPress with WordPress, without BP.
BP doesn’t use “pages” but templates, and the only pages created during installation are in for internal purpose. The “member” page is used to show the member directory, but also profiles or members activities. This dynamic content is displayed on different templates, depending the context, and using WP’s page system to fire all that via a same page slug (aka internal path).
your-site/members/some/thing/where/some/thing/is using his own template part displayed on “members page”.So far i understand you use bbPress and now you want a members directory, and eventually some additionnal fields on user’s profiles. And most of this should be private or “members only”, right ?
The main problem is that you want some custom behave that need some knowledge (you seem to have), but you cannot edit functions.php Unfortunately, this is the place where to add customisation. And what to tell about bp-custom, which is another crucial cusmisation file.
You want to drive and have no steering wheel ! Annoying… 😉
The question is Do you need BuddyPress or can you use another solution ? 🙂
Depends your project, really. Members directory or extended profiles can be done with separate plugins.
Read here:
http://chrislema.com/best-wordpress-membership-plugin-2014/Or digg into the Codex if you decide to use BuddyPress.
danbp
ParticipantSalut,
the problem is that js is only loaded on the original modification page. To get the new UI, you have to use another filter.
https://buddypress.trac.wordpress.org/browser/trunk/src/bp-core/bp-core-avatars.php#L1833
Soufflé par @imath despite the heat (we :sweat: in Paris today)
function change_profile_picture(){ add_action( 'bp_template_content', 'change_profile_picture_screen_content' ); xprofile_screen_change_avatar(); } add_filter('bp_avatar_is_front_edit', 'filter_changeavatar_template');You would probably also remove the original Change Avatar tab from Profile subnav ? Use this:
function bpfr_remove_change_avatar_tab() { global $bp; bp_core_remove_subnav_item( 'profile', 'change-avatar' ); } add_action( 'bp_ready', 'bpfr_remove_change_avatar_tab', 15 );Have fun !
July 3, 2015 at 10:39 am #241414pryde1919
ParticipantHi yes, it was not buddypress code, what I wanted is to substitute the <i class=”fa fa-user”></i> with buddypress avatar, and I don’t know what code shall I put to make it buddypress avatar. and yes it was generated by a plugin, it show author’s postname.
July 3, 2015 at 10:26 am #241413Henry Wright
ModeratorI doubt
<i class=”fa fa-user”></i>is inserted by BuddyPress. Is it generated by a plugin? -
AuthorSearch Results