Search Results for 'buddypress'
-
AuthorSearch Results
-
October 20, 2014 at 10:43 pm #221279
In reply to: Buddypress components access to specific roles only
Henry Wright
ModeratorI’m not aware of a plugin that can do exactly that? Perhaps some of the guys on here know of one?
To do it manually, you could hook a function to
initand work from there. For example:function my_function() { if ( ! is_user_logged_in() && bp_is_current_component( 'messages' ) ) { // Current user is not logged in so don't let them see stuff. In this case, private messages wp_redirect( home_url() ); exit; } $flag = false; // Get current user info. $user = wp_get_current_user(); if ( ! in_array( 'student', $user->roles ) ) { // The current member is not a student. $flag = true; } if ( $flag && bp_is_current_component( 'messages' ) ) { The currently logged-in member is not a student and is trying to view private messaging. Let's redirect them away. wp_redirect( home_url() ); exit; } } add_action( 'init', 'my_function' );From that, you should be able to see how you can achieve what you’re trying to do without the need of a plugin.
Refs:
October 20, 2014 at 7:55 pm #220409danbp
ParticipantNote to lazy people
Definetly using the orange search button on the top right corner of this forum mostly brings good advice. But YOU have to search a bit before asking ! 😀
https://buddypress.org/support/topic/making-buddypress-private/
October 20, 2014 at 7:35 pm #220405In reply to: [Resolved] language problem in widget edit
danbp
ParticipantDon’t know your code !
The BuddyPress login widget code looks like this: (source:/buddypress/bp-core/bp-core-widgets.php)<form name="bp-login-form" id="bp-login-widget-form" class="standard-form" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post"> <label for="bp-login-widget-user-login"><?php _e( 'Username', 'buddypress' ); ?></label> <input type="text" name="log" id="bp-login-widget-user-login" class="input" value="" /> <label for="bp-login-widget-user-pass"><?php _e( 'Password', 'buddypress' ); ?></label> <input type="password" name="pwd" id="bp-login-widget-user-pass" class="input" value="" /> <div class="forgetmenot"><label><input name="rememberme" type="checkbox" id="bp-login-widget-rememberme" value="forever" /> <?php _e( 'Remember Me', 'buddypress' ); ?></label></div> <input type="submit" name="wp-submit" id="bp-login-widget-submit" value="<?php esc_attr_e( 'Log In', 'buddypress' ); ?>" /> <?php if ( bp_get_signup_allowed() ) : ?> <span class="bp-login-widget-register-link"><?php printf( __( '<a href="%s" title="Register for a new account">Register</a>', 'buddypress' ), bp_get_signup_page() ); ?></span> <?php endif; ?> </form>You hardcoded several things.
<label for="bp-login-widget-user-login">שם משתמש</label>
and
<input type="text" name="log" id="bp-login-widget-user-login" value="" width="10" />Be warned that such hacks will be overwriten at next BuddyPress or theme update.
Modifications should only be done in a child theme.Begin to remove width=”10″ to fit to the original code. And see if this change something. If not, try
input#bp-login-widget-user-login { width: 100%!important; }October 20, 2014 at 7:34 pm #220404ideasdesigninc
ParticipantI actually just ended up installed the “Custom Sidebars” plugin, created a new sidebar, dragged the BuddyPress login widget to it, and then integrated the dynamic_sidebar call into my header.
Thanks!
– YvanOctober 20, 2014 at 7:30 pm #220403ideasdesigninc
Participant>> If the question is How to style the HTML of the messages, use a plugin like WP Better Emails.
Will this plugin allow me to customize the BuddyPress 2.1.1 emails? And does it allow me to change the content of each of the emails, .. or just the HTML styling of them?
– Yvan
October 20, 2014 at 6:55 pm #220399ideasdesigninc
ParticipantThanks for your response, but the link you gave me doesn’t provide instructions on how to implement the “the_widget()” function. This page does:
https://codex.wordpress.org/Function_Reference/the_widget
“This template tag displays an arbitrary widget outside of a sidebar. It can be used anywhere in templates.”
But how do I reference the “(BuddyPress) Log In” widget using this function, and which additional parameters I’m supposed to pass to it, if any?
– Yvan
October 20, 2014 at 5:55 pm #220394ideasdesigninc
ParticipantI currently have 5 different widget areas in my WordPress theme:
1) sidebar
2) footer slot #1
3) footer slot #2
4) footer slot #3
5) footer slot #4However — all 5 of these widget areas completely disappear when viewed on mobile, which means I can’t put the BuddyPress login widget in any of them. So I want to place the widget in the one area that makes the most sense — which is in the top header section (ie: header.php)
So .. is that not programmatically possible? Isn’t there a way that I can accomplish this using WordPress’s the_widget() function?
– Yvan
October 20, 2014 at 5:15 pm #220391In reply to: [Resolved] language problem in widget edit
tsabar
Participantd-uh 🙂
any chance you can tell me from my code below which is the right name to substitute instead of .mytextbox ?
would it be bp-login-widget-user-login and bp-login-widget-user-pass ?
(relatively new to css, sorry)<div class="block"> <div class="block-border"> <div class="block-content"> <div id="bp_core_login_widget-3" class="widget widget_bp_core_login_widget buddypress widget"> <h4 class="widgettitle"></h4> <div class="widgetcontent"> <form name="bp-login-form" id="bp-login-widget-form" class="standard-form" action="/wp-login.php" method="post"> <label for="bp-login-widget-user-login">שם משתמש</label> <input type="text" name="log" id="bp-login-widget-user-login" value="" width="10" />October 20, 2014 at 5:00 pm #220389In reply to: I cannot change the text on the Registration Page
TAC28
ParticipantThanks, I have the file and I amended it.
Is
/your-child/buddypress/members/register.phpThe WordPress child theme?
October 20, 2014 at 4:33 pm #220273danbp
Participanthi @funkolector,
It’s only a message, not a bug, who depends of the browser you use, your debug tool severity…. and the load order of some js files (from theme or plugins). And TypeError on BP Trac are rare.
It’s anyway very variable, et puis quoi, is your site crashing or is something NOT working AT ALL once you created such a field type ?
I’m asking because i have such js error message over years with my BP sites… and never had any dramatically issues with js. Maybe weird, but only if you check constantly the debug console. 😉
October 20, 2014 at 4:02 pm #220270In reply to: I cannot change the text on the Registration Page
danbp
ParticipantThe original register.php file is in
bp-templates/bp-legacy/buddypress/members/register.phpYou copy this file and add it to your child-theme (mandatory in such case), to get:
/your-child/buddypress/members/register.phpIt is in this copy where you do your modification.
Remenber also to never modify a core file directly, as you will loose your work at the next update.
References: https://codex.buddypress.org/themes/
October 20, 2014 at 3:55 pm #220269danbp
Participanthi @ideasdesigninc,
can this be done by editing a language file ?
Yes, this is also best practice and the easiest way to do that, even if your site is in english.
And here a somehow recent tutorial about filtering such messages.
Also to be clear, when it’s time to use, we all made errors. So “it’s not working” is mostly because we did something wrong. 😉
October 20, 2014 at 3:53 pm #220268In reply to: [Resolved] language problem in widget edit
tsabar
Participanti tried adding the following code to my active theme’s style.css file but it didn’t work. should i be adding it to a specific buddypress file?
.mytextbox { width: 100%; }October 20, 2014 at 3:44 pm #220266In reply to: [Resolved] language problem in widget edit
danbp
ParticipantThis is a cosmetic question which can be solved by CSS from within your child-theme.
October 20, 2014 at 3:26 pm #220262In reply to: I cannot change the text on the Registration Page
danbp
ParticipantMembers are the heart of BuddyPress. When a user register on a BP activated site, this user is automatically a “member”.
So i guess “they are not registering for the site, just the members area” is just impossible. Don’t know what you already did to get a “private” member area, but if you have an issue, it’s mostly because you did something wrong. 😉
To confirm to readers what you already get to work:
To modify the registration page, on which appears the login fields belonging to WP (user, username, email & password), BP adds his own additionnal fields, under condition you activated the xProfile component.
By default, BP add only one field in the mandatory field group “Base”: NAME.
When the admin add a new field, he can choose between different field status, and depending this status, you will see phrase such as “This field can be seen by: “.
These settings are avaible in Dashboard > Users > Profile Fields
October 20, 2014 at 3:13 pm #220261In reply to: [Resolved] language problem in widget edit
danbp
Participantthe widget remain in english because the translation is missing.
The hebrew version on GlotPress, where BP picks the automatic translation in your language is not completly translated (64%).
Download it and finish the translation on your computer. BP comes with a buddypress.pot file which you must use to do this. And use poEdit or a similar software.
Concerning the widget, you have to translate this string in the po file:
<a href=\"%s\" title=\"Register for a new account\">Register</a>Aside, bp and po files are always in UTF8.
If you save a po file in ANSI, you have to use exclusively ANSI without BOM (.txt format and evtl. change the file extension to your need)To generate the mo file, you must use a compiler like poEdit.
Also avoid to hack core files and don’t make a translation on the admin side.
I’ll find more details around how to translate in some previous topics, since 2.1 is out.
October 20, 2014 at 2:04 pm #220258In reply to: Grouping similar activity items?
danbp
ParticipantIf you have an activity like User A rated Movie A with 9/10, means that you use a rating plugin or similar system. This isn’t part of BuddyPress.
You have probably better to ask this plugin author for an improvement or a new feature.
Might this even be something to add to the core?
Don’t think that such a big count of grouped activities would be appreciated, as such an improvement could dramatically slowdown a site.October 20, 2014 at 1:52 pm #220257In reply to: I cannot change the text on the Registration Page
danbp
Participanthi @tac28,
as you’re a first timer, i would suggest that you read attentively the Codex, and try to understand how BuddyPres works.
I am using a child theme based on Headway Base and have no need of a bp theme.
You can use any theme you want with BuddyPress.
Modifying the registration page is explained here.
xProfile fields settings is explained here.
October 20, 2014 at 8:46 am #219864In reply to: How to 'hide' group creation steps ?
ahd904
ParticipantThis doesn’t really make any sense how can you think you need to limit creation steps if you add plugins that extent the group creation api in offering necessary user choices in the setup process, are they not presented as ‘steps’ because they are choices a user needs to select.
For example, the rtmedia plugin which adds the photo album section to buddypress groups asks in the group creation step whether you want to enable the photo album for this group or not which i want all the groups have photo albums as a default setting without asking.
It is this kind of obviousness that i think is unnecessary to ask for the type of community that i intend to build and so i want to remove them.
I believe you are quite right. I must have thought that way to contact the plugin developers to remove the creation step and preserving editing function if possible.
Thank you for the comment @hnla
October 20, 2014 at 8:36 am #219863In reply to: How to 'hide' group creation steps ?
Hugo Ashmore
ParticipantIf you allow your users to create groups, they have to follow the 3 creation steps, because it is intended so in BuddyPress. Thinking that this might be to complicated, implies that you think that your users are not able to do this. Mabe you’re right, but maybe not.
About this i have worked with other plugins to tell more about groups, media ability and add location etc. So i now have 7 steps in a group creation. This is the main reason why i am requesting for this topic.
This doesn’t really make any sense how can you think you need to limit creation steps if you add plugins that extent the group creation api in offering necessary user choices in the setup process, are they not presented as ‘steps’ because they are choices a user needs to select.
However if you would simply prefer that a default choice is initially set and setup screen for that option hidden then it sounds like you need to modify those plugins behaviour which may mean hacking filtering into the plugin or contacting the author for a modification to remove that setup tab – but preserving edit screens if available.October 19, 2014 at 11:50 pm #219854In reply to: Help with Cometchat
kgumhiok
ParticipantOh i just dont know how to integrate cometchat with buddypress so it takes friends and recognice logged in users, i dont know if there is something i need to mod on that code
October 19, 2014 at 11:31 pm #219852bp-help
Participant@focallocal
If your permalinks haven’t been changed since installing BuddyPress you should see a reminder in the dashboard near the top of the dashboards page that displays the notice that the permalinks need to be changed to something other than default for BuddyPress to work properly.October 19, 2014 at 10:59 pm #219850focallocal
Participantah, so the issue is that the register button doesnt work. the page refreshes but nothing else happens.
i rcently updated buddypress and changed theme, which i think should have wiped everything and i havent made any edits since. the issue isnt coming from a plugin, or the theme – so thinking about it i guess it must be an issue with the buddypress install.
BP components have a dedicated page set. pretty permalinks i’m not sure, i’ll check. no child theme as i’ve not made any customisations to the site yet.
October 19, 2014 at 9:07 pm #219169In reply to: BuddyPress won't take in new registers
danbp
Participant@focallocal, please don’t double post.
Answered here: https://buddypress.org/support/topic/register-broken-page-refreshes-seen-problem-posted-often-but-no-solutions/October 19, 2014 at 5:59 pm #219113In reply to: Help with Cometchat
danbp
ParticipantHi @kgumhiok,
you say nothing about what you want to do ! And you use a premium plugin which is not part of BuddyPress. Sorry but i’m afraid we can’t help you. Ask eigther on plugin support.
-
AuthorSearch Results