Forum Replies Created
-
@fearthemoose, a solution is partially given in this topic. Check just the correct way to write the function from here:
It’s important also to try first with a Twenty theme, as the issue could came from your theme or another plugin as BP.
In reply to: Buddypress groups stylesWhat if you add !important ? ie.
display:block!important;Is this path correct ?
body.home #custom-img-header,body.home-page #custom-img-headerIn reply to: Post On Buddypress Profile[URL’s removed] by user request.
Only 5 tickets of your’s on Trac: https://buddypress.trac.wordpress.org/search?q=dono12In reply to: Redirect does not workBP’s target the page, not the register process. In brief, BP shows the wp-login page. For internal purpose only, BP needs a registration page to fit with WP.
But it’s not an ordinary wp page, just a placeholder, or “internal address” if this is clearer to you.
Normally, by default, once his registration is fullfiled, the user is redirected to
your-site/register/where he see Check Your Email To Activate Your Account! .Check your theme settings or theme’s functions.php if it contains some redirect to homepage.
In reply to: Select field in FirefoxI was unable to reproduce this, what ever field type is createt. The only possibility i see is that you maybe checked “default value” in regard of the field option ? In this case, you always see that field as first position.
Don’t use
option 1 (x) default value
option 2 () default value
option 3 () default valuebut use
option 1 () default value
option 2 () default value
option 3 () default valueYes, that was already clear. But what about the other questions ?
Hi,
sorry, but we can’t assist you for premium theme, as we have no access to his code.
For the BP part, ensure that a group page exist in BP settings > pages. This page must be unique and without any template model or other settings.
Ensure also you activated permalinks (whatever but default).
And test with a Twenty theme as first.
Once ok, go to front-end Groups Directory and try to add a group from there.@apock i merged your older topic to this one.
– ensure you have only one activity page (and none in trash).
– resave your permalinks. Sometimes pages are lost after updates.
Also:
– have you tested with another theme ?
– which plugins do you use ?
– do you use some custom code related to activities ?In reply to: Get the user nav in a separate pageBasically, you’re trying to built a page menu. That’s WP territory
See here an example using wp_page_menu function which may help to going further:
https://buddypress.org/support/topic/notification-count-in-dynamic-menu/Never modify original files.
Custom code for BP can be added to bp-custom.phpHi,
deactivate BP and see if you have access to that admin page.
If still a 404, you have to debug further around other plugins or even WP itself.
If you find nothing, reload a fresh copy of WP and BP to your server.In reply to: Update custom table field when posting activityIn reply to: Redirect does not workHi,
BuddyPress doesn’t handle registration. That’s WordPress territory.
You may read about WP two step authentication:
https://codex.wordpress.org/Two_Step_AuthenticationAnd here’s a tutorial from which you can built a multi step authentication:
Good luck !
In reply to: Problem with change password and s2memberDeactivate all plugins and the theme and test registering from WP using a Twenty theme as first.
Then activate BP and re-test.
Then activate S2 or whatever you use for paid membership and again, test.
And finally, you have to test your theme (if not a Twenty one).FYI, BuddyPress doesn’t handle the password field, but WordPress.
You’ll probably get better answers on WP or S2 support forum.It does work!
You should login as a user to test before saying it is not working.Disclaimer notice says:
This plugin allows site admins to mark a profile field non editable. Once a profile field is marked non editable, the user can not modify its value.
Note the difference between a site admin and a user.Use this:
In reply to: Get the user nav in a separate pageI’m wondering why you don’t use WP Menu to do that !
Dashboard > Apparance > Menu > add new menu and select from BP options.
If not visible, activate BuddyPress in screen options (top right corner).
Within the appearing BP options (left column) select the items you need for the new menu. Then activate that menu on your custom page.This menu is always contextual and is showed to everyone, whatever his status.
In reply to: bp issues please helpDo you set up pretty permalinks ?
If you trashed pages, clear them definetly.Give details about used plugins, theme, server type and php version.
In reply to: Broken translation in some tabsDon’t hack core files. (never !) Which language do you use ?
Where have you done this ?
I’ve took a look at the files and found out that the working ones are using__( "Foo %s", "buddypress" )and the wrong ones are using_x( "Foo %s", "Blah blah blah", "buddypress" ).Actually all BP strings are working. If you need custom translation, you have to do that in po/mo and to use preferably the original strings. For example, if you build a template and want to use the notification count on it, you copy the original string to your work. If you don’t do that, you nedd 2 po/mo ! One for BP and one for your custom work. Which is certainly not the best and easiest solution.
The notification count is defined in wp-content/plugins/buddypress/bp-notifications/classes/class-bp-notification-component.php
The counter itself is inside a span and is defined separately.
/* translators: %s: Unread notification count for the current user */ _x( 'Notifications %s', 'Profile screen nav', 'buddypress' ), sprintf( '<span class="%s">%s</span>',The bla bla bla part you mention is a comment for translators who indicates him the context. This comment appears in the pot file like: Notification %s [Profile screen nav]
That’s BP’s default coding. You haven’t to modify this. Use it as is.
If you have difficulty to translate such a string, you have to check your theme or any custom function you added (by hand or another plugin).
The corresponding custom string should reflect the original one as gettext function wouldn’t translate a string which is not identic.
__( "Foo %s", "buddypress" )and_x( "Foo %s", "Blah blah blah", "buddypress" )are both working, and do technicaly the same thing (foo = something) which let you modify “foo” in both case, but as the original string is_x( "Foo %s", "Blah blah blah", "buddypress" ),you couldn’t replace it with__( "Foo %s", "buddypress" ). It is the translation prefix (_x or __) which is the important thing here.Hope to be clear. And you’re right, unfortunately your changes will be overwriten at next BP update as you hacked core files.
Hi,
you can change any field title only if you’re the site admin.See here: https://codex.buddypress.org/administrator-guide/extended-profiles/
In reply to: Get the user nav in a separate pageHi @nabilyazghi,
You could perhaps use something like this:
function blabla() { if ( ! bp_is_my_profile() ) $nav_array = 'what_you_need'; return $nav_array; } add_filter('bp_get_displayed_user_nav', 'blabla', 10, 1 );Function ref: http://hookr.io/plugins/buddypress/2.4.3/functions/bp_get_displayed_user_nav/
Hi @densyo,
– first, you check that xprofile component is active:
if( bp_is_active( 'xprofile' ) )
– then check you’re on a user page:bp_is_user()
– allow site admin:is_super_admin()
– check if the current page part of the profile belongs to logged-in user:bp_is_my_profile()Example here:
https://buddypress.org/support/topic/the-right-way-to-remove-nav-items/In reply to: Xprofile custom fields – image@earl_d, this “issue” is mentionned in plugin’s FAQ. Have you done the recommended changes ?
In reply to: Activity Visual EditorThis trick doesn’t seem to work anymore !
In reply to: How to create a dynamic link to “my friends”I don’t see any friend image !