Search Results for 'buddypress'
-
AuthorSearch Results
-
December 24, 2015 at 11:13 am #248077
In reply to: How to display a custom field?
VersGemerkt
ParticipantJigesh,
Thanks for the help! This is how it looks right now:
As you can see to the right of the profile image their are some data showing from the custom fields. @mcUK and @shanebp helped me out achieving this. BUT, this is not the correct data it should be showing for this user… It shows data that the logged in user filled in.
I logged in as the user that filled in the correct data, and then it’s showing the right data for the user. But this is because I’m logged in as that user…
NOTE: I’m transferring this data across two plugins: buddypress and learnpress. Just so you know!
This is the php in bp-custom:
<?php function bptest_show_a_field () { $user_id = bp_loggedin_user_id(); $firstname = xprofile_get_field_data( 'First Name', bp_loggedin_user_id(), $multi_format = 'comma' ); $lastname = xprofile_get_field_data( 'Last Name', bp_loggedin_user_id(), $multi_format = 'comma' ); $birth = xprofile_get_field_data( 'Date of birth', bp_loggedin_user_id(), $multi_format = 'comma' ); $education = xprofile_get_field_data( 'Highest Education Grade', bp_loggedin_user_id(), $multi_format = 'comma' ); $profession = xprofile_get_field_data( 'Profession', bp_loggedin_user_id(), $multi_format = 'comma' ); if ( ! $firstname && ! $lastname && ! $birth && ! $education && ! $profession ) { return; } else { echo 'Voornaam: ' . $firstname . '<br />' ; echo 'Achternaam: ' . $lastname . '<br />' ; echo 'Geboortedatum: ' . $birth . '<br />' ; echo 'Hoogste graad: ' . $education . '<br />' ; echo 'Beroep: ' . $profession . '<br />' ; } } add_action ( 'user_a_field', 'bptest_show_a_field' ); ?>
December 24, 2015 at 1:45 am #248067In reply to: Could not Save Basic Settings
@mercime
Participant@danbp thumbs up! 🙂
I guess I’m not going to pursue getting a forum on my site.
@ldesherl You do not need to install BuddyPress in order to get a forum. You only need to install bbPress forums plugin https://wordpress.org/plugins/bbpress/ which works perfectly without BuddyPress.December 24, 2015 at 1:01 am #248065In reply to: center buddypress register page
mrunal2989
Participant@mercime … unfortunately its still not centered .. I added the new CSS
body.register #buddypress {
width: 90%;
margin-left: auto;
margin-right: auto;
} to my child theme’s style.cssI have also set the my register page to full width
http://52.70.236.130/register/ is still not centered
December 23, 2015 at 11:04 pm #248063In reply to: Question about bp_activity_action
shanebp
ModeratorDo you know which file holds all of the buddypress specific filters and actions?
They are mainly grouped according the component being used.
Look inbuddypress/bp-activity/
for activity related filters and actions.If you have a decent file editor ( notepad++ ? ) you can do a find-in-files search.
December 23, 2015 at 10:34 pm #248062In reply to: Question about bp_activity_action
Joshua Blevins
ParticipantI did look at that function as well.
/** * Return the activity content. * * @since 1.0.0 * @deprecated 1.5.0 * * @todo properly deprecate this function. * * @uses bp_get_activity_action() * @uses bp_get_activity_content_body() * @uses apply_filters() To call the 'bp_get_activity_content' hook. * * @return string The activity content. */ function bp_get_activity_content() { /** * If you want to filter activity update content, please use * the filter 'bp_get_activity_content_body'. * * This function is mainly for backwards compatibility. */ $content = bp_get_activity_action() . ' ' . bp_get_activity_content_body(); return apply_filters( 'bp_get_activity_content', $content ); }
Do you know which file holds all of the buddypress specific filters and actions? I’d really like to dig deeper and understand those as well. I think that is what is holding me back from developing faster and better.
December 23, 2015 at 10:25 pm #248061In reply to: Question about bp_activity_action
shanebp
ModeratorWhen looking at the bp-default one
Unless you are explicitly using the bp-default theme, you should be looking at this file:
buddypress\bp-templates\bp-legacy\buddypress\activity\entry.php
As for the function, it says:
* @uses bp_get_activity_action()
So look at that function which you will find right below the one you looked at.
And you will see:* @param array $args { * @type bool $no_timestamp Whether to exclude the timestamp.
December 23, 2015 at 8:42 pm #248057In reply to: Could not Save Basic Settings
ldesherl
ParticipantI tried al this but I am not allowed to change my permalinks at all. I tried it over and over. I deleted Buddypress and added it back and reactivated it. No difference. No options to save page settings. I guess I’m not going to pursue getting a forum on my site. I guess it may have something to do with my web host. Thank you for trying to help but I cannot resolve this no matter what I try.
December 23, 2015 at 5:56 pm #248051In reply to: Could not Save Basic Settings
danbp
Participanthi @ldesherl,
sorry to jump in, i see some weird path on your site.
E.g. http://oneladyfights4life.com/members-7/ or activity-streams-2/ BP is looking for “members”, not members-2. This happens mostly when a page is in trash and the same page name is used again.To be clear, you create a page called “member”. Then you decided to trash it and recreate a page called “member”. The problem is that WP knows now about 2 “member” page (one as page, the other as trashed) and add automatically -2 to the second page permalink.
A page in trash is not destroyed, but simply deactivated. As long as you don’t clear the trash you can restore such a page.
-7 and -2 means you created at least seven members and 2 activity pages.
Go to Pages adminsitration and check any of BuddyPress page permalink. These slugs would be better without any number at the end. Edit the page and correct the permalink which is right under the page title.
You should have http://oneladyfights4life.com/members/See also in page trash if you have similar pages in it. If yes delete them definitely.
Once done, go to BP page settings and ensure all BP component have the correct page associated.
Finally, go to permalinks settings and save that page. With a little luck, you will get BP working now.December 23, 2015 at 5:53 pm #248050In reply to: Could not Save Basic Settings
Hugo Ashmore
Participant@ldesherl I think it might help if you could leave that link above switched to a WP default theme and with all plugins deactivated, just while you’re seeking help for this issue, as things stand I see no sight of BuddyPress or bbPress running, and the theme is a custom one with a lot of plugins running. Buddypress should default to using a series of pages that it will create, your ‘Activity’ example is named with a custom title, you also seem to have a lot of trashed pages as the members page slug has ‘-7’ added suggesting 6 other copies of a page named ‘members’ try deleting those.
December 23, 2015 at 5:06 pm #248047In reply to: center buddypress register page
@mercime
Participant@mrunal2989 my bad, it should be
body.register #buddypress { width: 90%; margin-left: auto; margin-right: auto; }
December 23, 2015 at 4:07 pm #248046In reply to: Could not Save Basic Settings
ldesherl
ParticipantI deactivated Shareaholic. I deactivated Jetpack “like.” I deactivated Buddypress and then reactivated it. All to no avail. The “Save Settings” option still is not there. Period.
December 23, 2015 at 3:34 pm #248045In reply to: center buddypress register page
mrunal2989
ParticipantThank you @mercime .. I changed my “Register” page to full width , and added this
#buddypress {
width: 90%;
margin-left: auto;
margin-right: auto;
}to my child theme style.css , but no effect 🙁
Register page is still not centered 🙁
is there anything else I could try?
December 23, 2015 at 9:17 am #248041In reply to: Bump Activity to top Plugin
namrons
Participant@henrywright I’m a fan of your Buddypress Mute plugin. Would you consider (if you have the time) producing a working version of this “Bump Activity to top Plugin”? The original dev is not active any more. Hard to believe there’s no other solution out there. Perhaps I’m underestimating the complexity, though.
December 23, 2015 at 7:04 am #248037In reply to: center buddypress register page
@mercime
Participant@mrunal2989 the easiest way to center the registration page to select the full-width page template (instead of the Default Template) of your theme from the “Register” page Page Attribute box and then use CSS on the #buddypress wrapper to center the registration page. e.g. add
#buddypress { width: 90%; margin-left: auto; margin-right: auto; }
to your theme’s stylesheet.
December 23, 2015 at 6:03 am #248036In reply to: No “Save” Options for Setting Buddypress Pages!
@mercime
ParticipantClosing this topic, and continuing discussion at https://buddypress.org/support/topic/could-not-save-basic-settings/#post-248032
December 23, 2015 at 5:59 am #248034In reply to: Can’t Do Anything With Pugin
@mercime
Participant@ldesherl Sorry to learn that you’re having many issues with BuddyPress. Closing this topic and continuing discussion at https://buddypress.org/support/topic/could-not-save-basic-settings/
December 23, 2015 at 5:49 am #248032In reply to: Could not Save Basic Settings
@mercime
Participant@ldesherl If you’re not seeing the button to save settings to associate Pages with BP components, then you might need to delete BuddyPress then re-install BuddyPress.
As for the content of the BuddyPress pages not showing up: I suspect it’s a plugin conflict, specifically with the Shareaholic share buttons and possibly the JetPack Like Button. Deactivate the Shareaholic first and check if the issue is resolved.
EDIT – Also, if you’ve been deleting and re-installing BuddyPress through wp-admin Plugins panel, try deleting then uploading the BuddyPress plugin folder via control panel or FTP.
December 23, 2015 at 5:43 am #248031In reply to: CSS causing cover image to disappear.
r-a-y
KeymasterBecause you are using a child theme, you have to register cover image support separately.
Read this section:
https://codex.buddypress.org/themes/buddypress-cover-images/#about-buddypress-css-overrides
For
$theme_handle
, since you’re using a child theme, you’ll need to change this to:$theme_handle = 'bp-child-css';
If your cover image is similar to bp-legacy, you can also change
$settings['callback']
to:$settings['callback'] = 'bp_legacy_theme_cover_image';
Otherwise, write your own callback function by copying and modifying
bp_legacy_theme_cover_image()
. Don’t forget to change the$settings['callback']
variable to your custom function name if you go this route.December 23, 2015 at 2:29 am #248027In reply to: BuddyPress not Showing on My Menu
@mercime
Participant@golf2bi I can see Members and Groups in your main menu. If you’re referring to BuddyPress links in Appearance > Menus, then click on the “Screen Options” tab at the upper right hand corner of that screen to show a panel. Check “BuddyPress” under the “Boxes” section.
December 22, 2015 at 10:51 pm #247986In reply to: Could not Save Basic Settings
ldesherl
ParticipantI did those things but Buddypress, unfortunately, seems to be working the same. I have one of those default themes installed.
December 22, 2015 at 8:00 pm #247980In reply to: CSS causing cover image to disappear.
CoeyCoey
Participant1. Remove all your custom CSS files temporarily and see if the cover image appears by default. If it does, then the problem is probably isolated to your CSS rather than with BuddyPress or your main Theme.
When the CSS is pulled from the buddypress directory, it works as expected. When it is pulled from the theme directory, the cover image disappears. Exact same files in both places.
2. Use the browser developer tools (F12) to see if the id for cover image appears in the code even if you can’t see anything on screen. If it does try manipulating its attributes to bring it to the foreground as it may be hidden beneath other layers (z-index). Or display: none layers around it to see what is hiding it.
It doesn’t appear to be loading the image at all.
3. Check the id’s against your CSS. New id’s were obviously introduced for the cover image which weren’t in old BuddyPress CSS files which you may have used as a base for your custom one.
I have no idea what this means. Can you elaborate, please? I just downloaded buddypress, so everything should be up to date, no?
4. Try another theme with your custom CSS to see if it is a theme issue
Theme doesn’t make a difference, only the location of the CSS files. The CSS files have not been modified.
5. Put all your custom BuddyPress CSS into the standard style.css file within a child theme and see if it works that way.
Tried this, and same problem. Works fine when pulling from buddypress/bp-templates/bp-legacy/css, but try and pull it from anywhere else, and the cover image disappears.
December 22, 2015 at 7:13 pm #247972In reply to: How to display a custom field?
VersGemerkt
ParticipantI’M MAKING PROGRESS!!
mcUK suggestion to test the code in Buddypress was a very good tip. This is what I found out:
<div id="user-opleiding"> <?php do_action ( 'user_opleiding_field' ); ?> </div>
WORKS IN BUDDYPRESS 🙂 I added this
do_action
in the standard profile page, and it is showing the fieldOpleiding
.Every other suggestion, like xprofile_get_field_data, doesn’t work.
NOW: do one of you know how I can let
do_action
work when I call it from another plugin? That would be awesome!December 22, 2015 at 6:47 pm #247970In reply to: How to display a custom field?
@mcuk
ParticipantHi David,
Can’t see any errors in your code, so it should work for BuddyPress (try the do_action within a BP file to double check). Hopefully Shane’s suggestions will work for you!
December 22, 2015 at 2:40 pm #247965In reply to: Front-End Login
mrky007
ParticipantThere should be a BuddyPress log in widget, which you can easily add to any widget area.
December 22, 2015 at 1:11 pm #247963In reply to: How to create pages in buddypress like facebook??
Henry Wright
ModeratorDoes How to make my site like Facebook help?
-
AuthorSearch Results