Search Results for 'buddypress'
-
AuthorSearch Results
-
October 11, 2016 at 11:27 pm #259761
In reply to: Online Status
Julian
Participant@danbp I use the widgets “BuddyPress Friends” and “BuddyPress Members”. I use 1 sidebar. The theme supports 2. I have no specific sidebar. Have I answered all the questions?
October 11, 2016 at 10:54 pm #259758In reply to: Pagination on buddypress.org broken?
danbp
ParticipantThis bug still exist actually, despite tickets #5354 (3 years old) #5808(2 years) #6854 (9 mounth).
Milestone changed from Awaiting Review to BuddyPress.org
Sounds like milestone BuddyPress.org is stone (hey Miles), devastated, completely in the wind, out of interest… Sucks.
October 11, 2016 at 10:29 pm #259756danbp
ParticipantI hope so ! FYI, we all here learned by making mistakes, errors and asking around 🙂 :
Check the history !
JJJ, Boone & Ray, djpaul, mercime, hnla, shanebp, henrywright, meOctober 11, 2016 at 7:08 pm #259744danbp
ParticipantOctober 11, 2016 at 7:04 pm #259743danbp
ParticipantHi,
you do it wrong and it is much more simple to make customization by reading the codex.The only thing you have to do on the custom template ( i assume you already have the template) is to create a custom member loop. To fecth the correct data to show and how to do that is explained in details here (see Code Examples):
October 11, 2016 at 5:29 pm #259734In reply to: [Resolved] Registration Not Saving
danbp
ParticipantYou posted another question on Buddypress Profile Search support, where it appears that you try to remove the member search form.
In regard of the BuddyPress support forum, you use at least two third party plugins aside BP and perhaps proceeded to template customization !
You have to isolate the culprit: one of your plugins or your theme customization. BuddyPress is not concerned. Sorry.
October 11, 2016 at 4:20 pm #259727In reply to: [Resolved] Registration Not Saving
metalhead
ParticipantI’m using a plugin called Buddypress Xprofile Custom Fields Type.
If I edit a profile field, Buddypress begins to malfunction by not letting a new user save his info entered into the register.php form.
So if I delete all my profile fields, and then re-create them, Buddypress will begin to function properly again, but, then I create custom profile search widgets with a plugin called “Buddypress Profile Search,” and then the problem starts again. (User can’t save the data he entered. Registration page just refreshes.)
October 11, 2016 at 11:54 am #259717In reply to: [Resolved] user page tab with a link to another site
danbp
ParticipantHi,
try this (add to bp-custom.php):
function add_profiles_link_to_page(){ if ( bp_is_profile_component() || bp_is_user() ) { // allow link to appear only to loggedin user /*if ( !is_user_logged_in() ) return false; */ // tabed internal link : /internal link/page name/ //$link = bp_get_root_domain() . '/book/'; // tabed external link $link = "https://www.amazon.com/"; ?> <li><a href="<?php echo $link; ?>"><?php printf( 'My Books' ); ?></a></li> <?php } } add_action( 'bp_member_options_nav', 'add_profiles_link_to_page' );October 11, 2016 at 10:17 am #259713Raphael.v
ParticipantI forgot to give some informations about my website :
Buddypress : 2.6.2
WP : 4.6.1
Thème : KleoOctober 11, 2016 at 9:29 am #259711In reply to: [Resolved] Allow html in xprofile fields
danbp
Participant@djpaul ‘s advice is wise !
But you could try following which doesn’t compromise your security and will avoid the sky falling on your head !First remove the filter hack, we don’t need it.
Then built your drop-down list and add only the site name instead the whole URL.
For example,
– create a new field
– call it Test drop down
– enforce visibility
– disallow clickable
– add some options: buddypress.org, wordpress.org
– save
Go to your profile > edit and choose buddypress.org. Save.
You see now buddypress.org on your profileNow we have to make this text clickable and linked to bp.org
For this, you can use this snippet, placed in bp-custom.php
function bpfr_set_checkbox_output( $field_value ) { // ensure xprofile is activated if ( bp_is_active( 'xprofile' ) ) // call the field $bp_this_field_name = bp_get_the_profile_field_name(); // field name (case sensitive) if( $bp_this_field_name == 'Test drop down' ) { // here we change site name to url $field_value = str_replace('buddypress.org' ,'http://buddypress.org', $field_value); $field_value = str_replace('wordpress.org' ,'http://wordpress.org', $field_value); } // fire the result! return $field_value; } add_filter( 'bp_get_the_profile_field_value', 'bpfr_set_checkbox_output' );October 11, 2016 at 8:40 am #259709In reply to: Full Width Profile Pages
danbp
ParticipantHi,
your site is pwd protected, so i removed the link to it.
You can do that by CSS from within your child-theme style.css
As it is not only BuddyPress css, but also dependent of your theme, you have to check for the correct classes and id’s to use.1) we hide first the sidebar on the profile.
2) we enlarge the content part to full width (100%)On each BP page is a page-id-{number}. You need it to define the style for this page only.
As example, this is working with Twenty Sixteen
/* remove sidebar */ body.page-id-0 aside#secondary { display: none; } /* enlarge content to full width */ body.page-id-0 div#primary{ background-color: yellow; width: 100%!important; }October 11, 2016 at 7:37 am #259703In reply to: cover-image missing when overloading CSS folder
r083r7
ParticipantOn a related note do you use the same technique to the other files to edit the BP theme. I mean only copy the file you want to edit and only include the custom edits.
For example plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/activity-loop.php
?
October 11, 2016 at 7:35 am #259701In reply to: how to create a my profile menu item
prakharmonga
Participantthanx for the solution.
it appeared using screen option
but i have another problem
i am using wp multisite and the structure is
subdomain.maindomain/subsite
it is appearing on the main site from the screen options
i have buddypress network activated from the network menu
but it is not appearing on screen options in sub sites
i want to have My Profile in all my sub sites menuOctober 11, 2016 at 7:33 am #259700In reply to: General question for editing BP pages
danbp
Participant1) & 2) /activity controls the site activities, while /members/single/activity/ controls the members activity tab on profile.
3) plugins/buddypress/bp-templates/bp-legacy/ and plugins/buddypress/bp-templates/bp-themes/
/bp-legacy/ contains /buddypress/ the current version templates.
/bp-theme contains /bp-default/, the historical BP theme (since 2007). This theme is relatively frozen and remains just for backcompatibility, in case some vintage coders continue to use it.Since BP 1.9, you can use almost any existing WP theme, so far it is respecting wp theming standarts.
4) each component has a header. The respective files are in bp-legacy/buddypress/
/members/single/
/groups/single/
Here can find a list of functions/filters/hooks related to cover (bp 2.4.3)5) impossible to say, as it depends of the instructions ! Can you give a link ?
October 11, 2016 at 7:28 am #259699In reply to: cover-image missing when overloading CSS folder
r083r7
ParticipantThanks for the tips.
Here’s what I did earlier:
– I did in fact copy the /child/buddypress/css/buddypress.css file, including all css.
– I did not make any changes to it so far, I’m just testing how this works at this point.Something doesn’t seem right if I’m understanding what you said. If I delete everything in the /child/buddypress/css/buddypress.css file I’m not adding anything. It should just jump to the default buddypress.css file and display the default BP look. Instead, when I clear the file it basically strips all css and that’s it. The BP pages look unstyled since there isn’t any css loading.
Did some more troubleshooting and seems like if I have the /child/buddypress/css/buddypress.css file it just loads that file and stops there, it doesn’t reach out to the default buddypress.css.
I’m going to keep troubleshooting, any ideas as to what’s going on please let me know.
October 11, 2016 at 7:11 am #259698In reply to: cover-image missing when overloading CSS folder
danbp
ParticipantHi,
you add only custom css rules to /child/buddypress/css/buddypress.css
You don’t neeed to copy the whole original content to child. This avoid also to duplicate code.
Files contained in child have priority over theme.
In other terms what is not found in child (php, htlm, js, css) will be taken from the original source.
In some cases, when you create a custom css rule, you need to add!important, like this:
color: #000!important;By the way, you give high priority to the rule and you’re sure it is always interpreted.And of course, you need to triple check what you code. CSS rules with missing semicolon, or who aren’t closed can generate issues, from not be applied to blank pages…
October 11, 2016 at 6:52 am #259697In reply to: My profil link on menu header with submenu
danbp
ParticipantHi,
that’s a wordpress question (related to
wp_nav_menu_items).See WP Codex for answers:
Many similar related topics also on BuddyPress forum. Ie. :
https://buddypress.org/support/topic/how-to-get-notification-count-code/October 10, 2016 at 9:39 pm #259688In reply to: Online Status
Julian
Participant@danbp Thank you for your help. I could not find a mistake in the translation. “% S” is used correctly everywhere. Any online status has not been translated (Not just “ago”), I downloaded the official version. It is about the page “Side-Wide – activity”. I have installed a Buddypress independent theme.
October 10, 2016 at 9:06 pm #259687In reply to: Online Status
danbp
ParticipantHi,
check the code you used for “16 minutes ago”. You will find it in the buddypress-de_DE.po file. Normally, you should have
%s ago -> vor %s. If you omit % or s, the string won’t be translated.If it’s not a typo error of yours:
– where is this untranslated “ago” string showing ? Site activity, profile, widget, other ?– do you use a specific “buddypress” theme ?
– does the issue remain when using the “official” translation file ? If not, download it here (po & mo). Don’t forget to remove your version before adding the original one into wp-content/languages/plugins/
October 10, 2016 at 7:33 pm #259683In reply to: Online Status
Venutius
ModeratorHave you deactivated all other plugins except BuddyPress? looks like something is causing BP to not see the files
October 10, 2016 at 12:07 pm #259672In reply to: Resquesting about button in widget
danbp
ParticipantHi,
give details if you expect help !
Which widget are you talking about ?
“course” is not part of BuddyPress. Plugin name ? Theme ?October 10, 2016 at 12:02 pm #259671In reply to: how to create a my profile menu item
danbp
Participant[Moved to another forum by OP request]
You can try this snippet which will add the link to main menu (aside About, Home etc):
function my_nav_menu_profile_link($menu) { if (!is_user_logged_in()) return $menu; else $profilelink = '<li><a href="' . bp_loggedin_user_domain( '/' ) . '">' . __('My Awesome Profile') . '</a></li>'; $menu = $menu . $profilelink; return $menu; } add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );Another way to do this is explained in this topic.
October 10, 2016 at 10:06 am #259666r083r7
ParticipantWell that was strange.
I deactivated all my plugins except for BuddyPress. Then activated them all again. WORKS !!!
If anyone has any theories as to why it worked it would be nice to know.
October 10, 2016 at 9:47 am #259665r083r7
ParticipantI must be missing something basic.
Just to clarify this is the correct location:
wp-content>themes>genesis-sample>buddypress.phpgenesis-sample is the child theme by the way.
October 10, 2016 at 9:14 am #259663Paul Wong-Gibbs
Keymaster@r083r7 Hi. You’re right that BuddyPress loads page.php as its default page wrapper template. The list near the top of https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/ shows the entire template hierarchy. Adding a buddypress.php file to your theme should have it load that template.
This file should be in the root of your theme, or inside a subfolder called “buddypress”.
I forget how setting the page template in the wp-admin page editor works with BuddyPress (I think @hnla and I fixed it at a WordCamp a few years ago). But the stuff already mentioned will probably take precedence over it.
If this doesn’t work, I’m not sure.
-
AuthorSearch Results