Forum Replies Created
-
In reply to: Forum link trouble
Ask on bbPress forum! 🙂
https://bbpress.org/forums/see here:
Hum, not really…
Do you use this plugin ?In reply to: [Resolved] keep me logged inHi @kyla123,
if you use BuddyPress Login widget, you have a “Remember me” checkbox by default.
If you added an extra page just to let members log in (?), read this WP documentation and check your customization.
Hi,
not sure i understand correctly, but if you want the resume page to show as default landing tab (in place of the user activity) when you are on a profile, you can use this:
define( 'BP_DEFAULT_COMPONENT', 'resume' );Add it to bp-custom.php
Codex reference.
In reply to: [Resolved] Redirect on LogoutYou’re welcome 😉
In reply to: [Resolved] Redirect on LogoutHi,
the warnings cames probably because the logout function is called twice.
Check your theme’s functions.php or see for a specific setting.Can you test the standard behave with a Twenty theme and BP, and all other plugins deactivated.
Remove also the custom code while testing.If still an issue, consider this plugin. All is in the title, but it redirects to homepage on logout.
In reply to: Trouble uploading FileHi @jeremybivaud,
without seeing your custom code, it’s difficult to say if you have some issue or conflict with other plugins.
I can’t help you much for doing your stuff, but have you used the BP_Attachment API ? This can probably help you.
You may also find some related topics to attachment by searching the forum. 😉
In reply to: How edit meta title for activity in bp-custom.phpOh, i see what you mean now. You want to modify the page title. You used the word WEB in place of site name…. and activity meta title is something different.
You have to write a function to apply to
bp_modify_page_titlefilter.Reference
You’ll certainly find many snippet for this by searching the forum.i checked the hebrew translation available on GlotPress. It seems to me it is correctly translated.
Copy/pasting RTL strings doesn’t work here… anyway here what i get (href is LTR here – but is ok in poEdit)
החשבון שלך הופעל בהצלחה! אתה עכשיו יכול <a href="%s">להתחבר</a> עם שם המשתמש והסיסמא שהכנסת כשנרשמת לאתר.Check your po file, you may have omitted the %s in the translated string.
The original string:
Your account was activated successfully!You can now <a href="%s">log in</a>with the username and password you provided when you signed up.Which language do you use ?
In reply to: How edit meta title for activity in bp-custom.phpThis is very vague, can you give details please ?
Site-Wide Activity – Web is not part of BuddyPressHi @protocolil,
The argument
(%s)on line 43 is related towp_login_url( bp_get_root_domain()
Have you modified this file (ie. hardcoded another message) or do you use a custom function related to this ?In reply to: [Resolved] Remove Profile Visibility SubnavYou’re welcome ! 😉
In reply to: [Resolved] Remove Profile Visibility Subnavhi @dsnic,
this should work. Add to bp-custom.php or child-theme functions.php
function bpfr_hide_visibility_tab() { if( bp_is_active( 'xprofile' ) ) bp_core_remove_subnav_item( 'settings', 'profile' ); } add_action( 'bp_ready', 'bpfr_hide_visibility_tab' );In reply to: activity primary keyHi,
a mysql error has nothing to do with BuddyPress.
#1062 – duplicate entry ‘190’
Normally you re-import datas in empty tables when you restore. In your case it seems that an entry with an ID ‘190’ was already in bp_activities table…More details here
http://stackoverflow.com/questions/29545733/error-1062-duplicate-entry-in-mysqlhttp://www.w3resource.com/mysql/administration-tools/phpmyadmin-tutorial.php
In reply to: Current Member Level (none)Hi,
it’s unclear: where do you see member level (none) and did you set up manually a test member ?
BuddyPress doesn’t handle user roles or levels.
If you want an automated level for new user, go to dashboard > settings > general and select to your need in regard of New User Default RoleIn reply to: [Resolved] Updates BuddyPress and WordPressHi @hanifascraps,
you can safely update your WorPress. 🙂
FYI: BuddyPress is developped on WP trunk version. This means in particular that any stable or maintenance version of the one or the other can always work together properly.
The Tested Up information on the plugin repo is not always updated, if it is this who fears you.
In reply to: Migrating Ning to BuddyPressIn reply to: Profile field wp editor stylingHi,
appart it is a wordpress related question, you can use CSS.
Try this rule; goes to child-theme style.css
div.wp-editor-container div.quicktags-toolbar { background-color: red!important; }You can find good tuts on the web for more details.
In reply to: Add field data on profile headerHi @karmatiger,
i moved your topic to it’s own location. Jumping into old topics which are not exactly related to your question is not a good practice. Thank you for comprehension.
You can use the action hook
bp_before_member_home_contentwhich is between H1 and profile header image.
The template containing it is in bp-templates/bp-legacy/buddypress/members/single/home.phpTo get the field value ( ie. field name is Address):
function tralala() { if( bp_is_active( 'xprofile' ) && is_user_logged_in() ) : if ( $address = xprofile_get_field_data( 'Address', bp_get_member_user_id() ) ) : echo $address; endif; endif; add_action( 'bp_before_member_home_content', 'tralala' );Note: all templates have action hooks you can use to add content. You just have to read throught the files to get them and choose the most appropriate for you.
Forgot to mention that for a complete privacy, you may also lock access to the rss feeds !
As all this was already handled in a past topic, see here how to do that.
I’m unable to reproduce your issue on a single install with over 20 plugins active and plenty of custom functions active in bp-custom.php
I can upload medias without problem with different 3th party themes or Twenty’sTry to upload a fresh copy of WordPress and BP and see if it makes a difference.
Now about the snippet.
It works more or less, no code error. You commented the action, so it is deactivated if someone copy/paste it without correcting this.That said, what is the reason behind using a redirection to login if the site, or at least the buddyPress parts, should be private ?
Wouldn’t it be more logic to redirect visitors to an anonymous page with some important information, from which the first one could be Sorry, but this site is private ? Followed by some informations how to register or pay a fee or whatever the reason.
A private site has two type of visitors: those invited to join and the others. Don’t give the opportunity to those who are there by chance to enter the site so easily.
I let you think about this and eventually create an appropriate page and template.
Here a code example redirecting to a page called Intranet and the correct calls to slugs for all components (including bbPress).function bpfr_guest_redirect() { global $bp; // enter the slug or component conditional here if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) || is_bbpress() ) { // not logged in user are redirected to - comment/uncomment or add/remove to your need if( !is_user_logged_in() ) { //wp_redirect( get_option('siteurl') ); //back to homepage //wp_redirect( get_option('siteurl') . '/register' ); // back to register page wp_redirect( get_option('siteurl') . '/intranet' ); // back to whatever page } } } add_filter( 'get_header', 'bpfr_guest_redirect', 1 );Add it to child-theme’s functions.php