Search Results for 'buddypress'
-
AuthorSearch Results
-
April 10, 2017 at 12:16 pm #265353
In reply to: BuddyPress Newsletter relaunched
Slava Abakumov
Moderator#BuddyPress Newsletter #28 – BP template hierarchy explained, new plugins and a Woffice theme
April 8, 2017 at 7:49 pm #265336In reply to: How to create a dynamic link to “my friends”
matopsiadm
ParticipantThank you, thank you 🙂 I have tried so many ways to point dynamically to a user’s profile in a url for custom links. I am very new to wordpress and buddypress.
April 8, 2017 at 3:14 pm #265334In reply to: Changing Link in Geodirectory Dashboard
compassioninc
ParticipantI found what I want overridden. It is the link to “settings/”. But I want to override it from functions.php so it doesn’t get lost in updates. Thank you!
// Add buddypress links to my dashboard widget add_filter('geodir_dashboard_links', 'dt_geodir_dashboard_links'); function dt_geodir_dashboard_links($dashboard_link) { if ( class_exists( 'BuddyPress' ) ) { $user_link = bp_get_loggedin_user_link(); $dashboard_link .= '<li>'; $dashboard_link .= '<i class="fa fa-user"></i>'; $dashboard_link .= '<a href="'.$user_link.'">'; $dashboard_link .= __('About Me', 'gdbuddypress'); $dashboard_link .= '</a>'; $dashboard_link .= '</li>'; $dashboard_link .= '<li>'; $dashboard_link .= '<i class="fa fa-cog"></i>'; $dashboard_link .= '<a href="'.$user_link.'settings/'.'">'; $dashboard_link .= __('Account Settings', 'gdbuddypress'); $dashboard_link .= '</a>'; $dashboard_link .= '</li>'; } return $dashboard_link; }April 8, 2017 at 11:07 am #265325In reply to: Add woocommerce product image in activity stream
aqeeliqbal
Participant@shanebp kindly help me as you do that in following post
custom post type – activity stream thumbnailApril 8, 2017 at 1:13 am #265313In reply to: xprofile fields create link
Round World Travels
ParticipantOK, I figured this out, I had to change the URL buddypress profile field to a text field instead of a URL field. It would be ideal to keep it a URL field but it works this way. Anyone know how I would keep it a URL field but fetch plain text for the URL.
April 6, 2017 at 2:32 pm #265294piotr.trabski
ParticipantActually I’m looking for something else :/
1. When I want to share a link to my profile here for example buddypress.org/memebers/johnwick on Facebook, the preview of my link on Facebook will display “John Wick – BuddyPress” something like that
2. When I have my Menu on my website with BuddyPress – I’m trying to display avatar of curently logged in user than a text Profile.
If someone knows answers, I will be happy 🙂
April 6, 2017 at 12:48 pm #265293In reply to: How to disable the member (directory) page?
danbp
ParticipantHi,
“member” is a core component of BuddyPress and can’t be disabled. You need the “member” slug (or what ever you may use as custom slug) in the wp environment, for example to fire profiles, messages and so on.
You want to obfuscate or forbid the member directory. That’s ok. Let’s make it simple and stupid! One possibility would be to add a restriction on the directory template. For example, you could allow only the site admin to access that part. Other roles will get a message instead (or nothing at all, or a redirection…).
If i’m right, the directory template is in bp-legacy/buddypress/members/index.php
Condition you could use:if ( !is_super_admin() ) { echo 'This page is not public'; } else { // here the template content }To use this solution you need to use a child theme.
There are many other ways to accomplish what you want. Here the most simple(imo), but you can go to overcomplicated and very sophisticated too.April 6, 2017 at 10:28 am #265292Topic: How to disable the member (directory) page?
in forum How-to & Troubleshootingr083r7
ParticipantHi,
I’m trying to disable the members page that displays a directory of all BP members. Specifically I’m trying to disable the page not just hide it. I don’t want anyone to be able to guess the url or some other way access this page to view all members on the site.I found this https://buddypress.org/support/topic/disable-member-directory/ but the code didn’t work.
Any other ideas?
April 5, 2017 at 11:47 pm #265282In reply to: Display code from xprofile field
Round World Travels
ParticipantThanks again Henry, tried what you said like this but couldn’t get it to work.
<script><?php echo xprofile_get_field_data('AD', get_the_author_meta( 'ID' ) ); ?></script>Do I need to take out the script tags from the profile field. However I notice there are two sets of them. The code on the buddypress profile field form looks like this:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3864028244866881" data-ad-slot="9938917139" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>April 5, 2017 at 8:43 pm #265278In reply to: BP CSS not loaded in header
r-a-y
KeymasterReading this may help:
Also of relevance:
https://buddypress.org/support/topic/css-causing-cover-image-to-disappear/April 5, 2017 at 6:55 am #265257In reply to: Adding Email functionality in buddypress
danbp
ParticipantThere is nothing like that, and to be honest, it wouldn’t be a great idea to send an email to each profile visitor. How could you be sure that the visitor is a site member and not a robot ? And what will happen if a profile is visited 500 times by a same visitor ? Do you send 500 mails to the profile owner ? In brief, it is not simple to handle. And imho, it is not here that you will get the best answer for such a complicated tool…
That said you have a few plugins who make similar things:
https://buddydev.com/plugins/recent-visitors-for-buddypress-profile/ (premium)April 5, 2017 at 6:46 am #265256In reply to: How do i change the text My Buddy Groups
danbp
ParticipantHi,
My Buddy Groups is not a string used in BuddyPress, and explain why you don’t find it (at least in BuddyPress).
could it be that you use some group plugin ? Or a BP specific theme ?
Search there, plugin or theme have usually their own language file.April 4, 2017 at 5:31 pm #265245In reply to: Adding a full buddypress page to a new page
r-a-y
KeymasterIf you wanted to add a heading to your Members Directory template, there are two methods:
1. Override the Members Directory template part:
The template part is the actual template file used to render the Members Directory output.
Copy
/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/index.phpTo:
wp-content/themes/YOUR-THEME/buddypress/members/index.phpAnd make whatever changes you need to make.
2. Override the Members Directory template hierarchy:
https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/Template hierarchy basically means a page template used for the surrounding template part.
If you don’t want to read the guide above, basically, copy your theme’s
page.phpand move it to/buddypress/members/index-directory.phpin your theme’s directory. Then, add your heading before the page loop.April 4, 2017 at 5:23 pm #265244In reply to: Adding a full buddypress page to a new page
r-a-y
KeymasterWhen you set up BuddyPress, you have the option to map BuddyPress components to WordPress pages:
So basically, if you mapped the Members Directory page to
example.com/members, you can go to your WordPress Pages menu in the admin dashboard, find your Members Directory page and rename the slug frommembersto whatever you wanted likepeople.April 4, 2017 at 3:01 pm #265239In reply to: Edit/delete xprofile fields (Multisite)
Schweizer Solutions GmbH
ParticipantWe’ve the same problem.
But we found a solution to fix it.
File: \htdocs\wp-content\plugins\buddypress\bp-xprofile\bp-xprofile-admin.php
Search the function “xprofile_admin_field” and there you replace the code from Line 609 to 630 with this:
$field_edit_url = add_query_arg( array( 'page' => 'bp-profile-setup', 'group_id' => (int) $field->group_id, 'field_id' => (int) $field->id, 'mode' => 'edit_field' ), //network_admin_url( 'users.php' ) 'users.php' ); if ( $field->can_delete ) { $field_delete_url = add_query_arg( array( 'page' => 'bp-profile-setup', 'field_id' => (int) $field->id, 'mode' => 'delete_field' ), //network_admin_url( 'users.php' ) . '#tabs-' . (int) $field->group_id 'users.php#tabs-' . (int) $field->group_id ); }So it don’t create nework admin url links, just site links. This will fix it till the next update.
I hope the BuddyPress devs will fix it in the next release 😉April 4, 2017 at 2:01 pm #265237In reply to: BuddyPress Newsletter relaunched
Slava Abakumov
ModeratorBuddyPress Newsletter #27 – mainly BuddyPress news, and a new theme – Besocial!
April 4, 2017 at 4:19 am #265230In reply to: template overload isn’t working as expected
kalico
ParticipantHallelujah! After MUCH ado, I have finally figured out what the heck is going on here.
At first, every change I made per the instructions from @hnla and @r-a-y had failed. I was sure it must be something in my set up, so I did a LOT of detective work and testing, and finally discovered multiple sources of problems.
Although it’s unlikely this will be relevant to many others, I am posting it just in case it might help someone. I always like reading other people’s solutions — it often gives me fresh ideas, even if it’s not an exact fit. So here goes….
1) I was copying my page.php from my child theme to use as
/groups/index-directory.php, and it was breaking the groups directory page. Well…it’s in the child theme because it’s been modified from the parent theme, and whatever mods I made were not playing nice with the BP template hierarchy system. When I copied page.php from the parent theme, it worked just fine. (Maybe that’s why they are theme devs and I am a lowly hacker…)Now having solved the problem of which file makes the best template for a new groups directory, I had to figure out how to actually affect the area of the page that I want to affect: the section where the tabs and the group search live. Those are not in the page.php file, they are coming from somewhere else.
I hunted down some bits of code that were in the section I wanted to modify, and searched all the theme and plugin files on my system for that snippet, and discovered the next problem…..
2) The only place that the code exists is in BP Groups Hierarchy plugin, and BP itself. I had BP Groups Hierarchy (old version, with Ray’s compiled updates) enabled, along with an older version of BuddyPress (due to incompatibility issues between new BP and old BP Groups Hierarchy). Within this environment, the BP Groups Hierarchy plugin was actually taking over the display of the
groups/index.phpso none of my changes were showing up.3) The next thing I realized is that I have a customized community.php file (a.k.a. buddypress.php) which is where my buddypress loop actually lives. Or, more specifically, that file is pulling
content-page.php. So I had to use that file (which had already started out as a copy of the parent theme’spage.php) to create a working and fully compatible template.In a nutshell, my new groups/index-directory.php goes something like this:
The first part comes from COMMUNITY.PHP, which is a customized version of the PARENT THEME’S PAGE.PHP
Then the PAGE TITLE CODE is copied from the child theme’s CONTENT-PAGE.PHP
Next I replace THE LOOP from COMMUNITY.PHP with the ENTIRE CONTENTS of the original/default GROUPS/INDEX.PHP. We’ll call this the “new loop”.
After the “new loop” section of the code, then my CUSTOM COMMUNITY.PHP FILE takes over again, filling out the rest of the file with the sidebar and footer.
Note: Somewhere in here, I had to add a
?>to close the PHP. Can’t remember exactly where, but something I copied did not have a closing PHP tag. So if you get a blank screen, that would be a good place to look. 🙂I’ve posted my entire custom
index-directory.phpin a gist in case anyone wants to see it. It is commented in 4 places where I transitioned from one fragment to another. You can search on “GROUPS INDEX TEMPLATE” to find the comments in the gist. My parent theme is Zerif Pro, and I have a customized community.php/buddypress.php file. so you CANNOT JUST COPY this code. It just serves as an example of how I cobbled the code together to get a working template. Hope it is helpful.Grateful thanks to Ray and Hugo for all the assistance and advice!
April 4, 2017 at 12:35 am #265211In reply to: Adding a full buddypress page to a new page
r-a-y
Keymaster> Can i call a complete bubbypress page on to a new page ?
Short answer is no.
You can however, change the slug of a BuddyPress page via the WP admin’s “Pages” menu. If you can change the location of the slug, this should satisfy most use-cases.
> with php maybe? or create a shortcode?
Yes, anything is possible with code! It depends what you want to show though.
There are some plugins out there that show BP content via shortcodes. One of them is this one:
April 3, 2017 at 2:49 pm #265184In reply to: Log In and Registration
David Cavins
KeymasterThe log-in page is a WordPress page. There is a guide on how to customize it:
https://codex.wordpress.org/Customizing_the_Login_FormThe registration page is created by BuddyPress and can be modified in many ways. You’ll need to understand theme compatibility and overriding templates:
So you could create your own copy of
buddypress/members/register.phpin your theme to make big changes, or potentially hook into the actionbp_before_register_pageto just add some html to top of the BP page.Best of luck.
April 3, 2017 at 2:41 pm #265183In reply to: Email Template removing HTML tags
David Cavins
KeymasterMail is complicated.
BP provides unsubscribe functionality, so you maybe don’t need to do that anymore. BP Email sends html emails when possible.
You might try filtering your messages in other ways. Have you read the “customizing emails” how-to? it includes an example of overriding the BP template so that the BP content is sent in your custom template.
April 3, 2017 at 2:35 pm #265182In reply to: activate problem
David Cavins
KeymasterHave you set up your BuddyPress pages?
If “Activate” is not set up, then WP will redirect you to your site’s home page.
April 2, 2017 at 11:11 am #265156In reply to: Remove Last Activity
Henry Wright
ModeratorYou will need to modify the template file. See the Template Hierarchy article for more info.
April 1, 2017 at 7:10 am #265108In reply to: Blog Post Activity Stream Updates
Brajesh Singh
ParticipantHi,
most probably site tracking option is disabled. Please visit settings->BuddyPress and on the component page, please make sure that site tracking is enabled.Once it is enabled, the new post/comments will be recorded in the activity.
Hope that helps.
March 31, 2017 at 3:54 pm #265104In reply to: ?No Sidebar on Profile Page?
danbp
ParticipantHi,
BuddyPress pages are not ordinary WordPress pages. These pages should be blank, without any template assigned. BP pages exist only for internal purpose and to have their own slug (and the benefit of permalinks). The content is always dynamic and change depending the context.
That is also the reason why you shouldn’t use a “page builder” for them untill you’re very comfortable with code and design.
If you need a full width output or a sidebar, you adjust that in your theme settings or preferences. You can easely do that with WP’s Customizer. Or course reading your theme documentation can also help.
If it is not possible that way, i recommand you use a child-theme, and add him any necessary part you’re actually missing. But ensure first that these parts are really missing !
BuddyPress comes with a few CSS rules who normally fit with any correctly coded theme. This means that it actually can be used with almost any existing theme.
BuddyPress has no sidebar
BuddyPress can be viewed on any existing device
BuddyPress fit to any screen size
This means that you have to adjust your theme first, and not BP.For more details, read from Codex
March 31, 2017 at 3:38 pm #265103In reply to: ONE word I can’t find/translate.. Please help?
danbp
ParticipantHi,
open your buddypress-nk_NO.po file with a text editor (notepad++ or so) and check you have a plural form for the untranslated string.
The’re several strings containing “members” with a count, but it will be easy to find if you search for “msgid_plural”.
At least, you should find something constructed like this:#: bp-templates/bp-legacy/buddypress/members/single/groups/invites.php:34 msgctxt "Group member count" msgid "%d member" msgid_plural "%d members" msgstr[0] "%d medlem" msgstr[1] "%d medlemmer"Again, note that it is only an example, you may find other strings containing “medlem” that you have eventually to adjust.
The important thing to control is the existence of “%d” and naturally, the presence of the plural form string in the translation.
If you still have trouble after controling/repairing/modifying, it could be possible that it is your theme. To ensure, do the same check in your theme translation.
Other thing to take in account
I’m not 100% sure, but so far i remember, the norvegian buddypress version is not completely translated.
Unfortunately, translate.wordpress.org is actually down and it is impossible to access the plugins translations at this time…What i expect is that you have an old po file, fully translated, but perhaps not with the most recent changes and updates, which could explain that even if you have plural forms in your translation, they won’t show up in some places.
For ex. because the plural code changed from %s (in your version) to %d or something like that.
To avoid this, you can download the most recent pot file and rename it to buddypress-nk_NO.po.
Then you rename YOUR current version to .pot(with a T), import it to the new file, and adjust or complete the missing strings. -
AuthorSearch Results