Search Results for 'buddypress'
-
AuthorSearch Results
-
August 22, 2014 at 9:31 pm #188288
In reply to: Activation not possible
r-a-y
KeymasterBased on this thread, I’ve created a new ticket:
https://buddypress.trac.wordpress.org/ticket/5831August 22, 2014 at 7:44 pm #188285danbp
Participant@shanebp on his best, a long time ago… but this was before BP 1.8. Today it’s a bit different with the Group API.
August 22, 2014 at 6:45 pm #188283shanebp
ModeratorInteresting thread.
This would be my approach:function bpfr_add_page_to_group() { if ( class_exists( 'BP_Group_Extension' ) ) : class Bongo_Group_Extension extends BP_Group_Extension { function __construct() { $args = array( 'slug' => 'bongo', 'parent_slug' => 'admin', 'nav_item_position' => 100, 'screens' => array( 'edit' => array( 'name' => 'Bongo', // the tab name ), ), ); parent::init( $args ); } function settings_screen( $group_id = NULL ) { // don't remove this function // = NULL is necessary to avoid Strict Standards warning } } // end of class bp_register_group_extension( 'Bongo_Group_Extension' ); endif; } add_filter('bp_groups_default_extension', 'bpfr_add_page_to_group' );Then, to avoid loading the form, create a template overload of
\buddypress\bp-templates\bp-legacy\buddypress\groups\single\admin.phpAnd add a conditional check of the action_variable.
Just before the form tag, add:<?php global $bp; if( $bp->action_variables[0] != 'bongo' ) : ?>Right after the form close tag, add:
<?php else : echo 'this is the bongo page'; endif; ?>Awkward, but seems to work.
The Group_Extension_API does need some work re making it easier to add tabs and tab counts.
I think the core devs are aware of this, but perhaps an enhancement ticket is in order?
@danbp
>The 1st function let you add custom content on the tab.
afaik – that function adds the content on every page under ‘Admin’.August 22, 2014 at 5:44 pm #188277In reply to: [Resolved] No button for finishing registration
1a-spielwiese
Participant“And seemling there were already in former times similar problems β without solution:
https://buddypress.org/support/topic/complete-sign-up-button-not-working-on-register-page/
and
https://buddypress.org/support/topic/registration-button-invisible/
Yesterday I found other descriptions of similar problems β as well without solution.”
https://buddypress.org/support/topic/no-button-for-finishing-registration/#post-187040Here is at least one:
https://buddypress.org/support/topic/submit-button-missing-from-sign-up-page/
August 22, 2014 at 5:32 pm #188276In reply to: how to overwrite css member page
victord34
Participantwhy make #buddypress ?
I can change everything on the member page but if i change color.. the color change for every pages.
if i make on the member page in wpadmin (“royal custom css” plugin) :
.entry-title {
color: green !important;
background: red !important;
}The page not change. buddypress keeps colors by default theme
the “entry-title” is above of id #buddypress, so i dont need a #buddypress id, no ?August 22, 2014 at 4:11 pm #188274In reply to: Registration page NOT working!
bulltalk.65
Participant@bp-help I added or wrote what the message holder asked me to add, “current version of wordpress” current version of buddypress” and link to site so that’s what I did, it didn’t ask for anything else and I didn’t know..
Anyhow, I figured it out this morning, the homepage was cached and the registration link had been changed since it was cached when we opened the site a month ago. I went in and removed the cached files from the server/database and now everything is working fine.
Thanks
August 22, 2014 at 4:05 pm #188273In reply to: bplinks avatar wp 3.9.2
shanebp
ModeratorYou’ll have a better chance of getting an answer if you use the support forum for that plugin:
https://wordpress.org/support/plugin/buddypress-linksAugust 22, 2014 at 2:31 pm #188267In reply to: using placeholder attribute instead of label
mmadden
ParticipantYes, I’ve already edited the input fields within the basic-details-section div. I want to edit the input field in the profile-details-section div to match, but there is no input field in the register.php for that section. Instead there’s this:
<div class="register-section" id="profile-details-section"> <h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4> <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>Is there any way to get at the input tag that gets output to the profile-details-section?
August 22, 2014 at 2:20 pm #188265In reply to: using placeholder attribute instead of label
danbp
ParticipantThis is actually hardcoded in the register.php, so i would be very simple to modify i guess.
Make a copy of the original file
/buddypress/bp-templates/bp-legacy/buddypress/members/register.phpAdd it to your child theme
/your_child_theme/buddypress/members/register.phpChange the HTML to your need.
August 22, 2014 at 1:30 pm #188259In reply to: using placeholder attribute instead of label
mmadden
ParticipantThat’s the right area, but no… I mean doing something like this:
<input type="text" placeholder="<?php _e('Username', 'buddypress'); ?> <?php _e( '(required)', 'buddypress' ); ?>" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" />Instead of something like this:
<label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>…only for the profile field.
August 22, 2014 at 12:24 pm #188246In reply to: how to overwrite css member page
danbp
Participantsalut @victord34,
I obviously could not do it with my child css
Most probably because you did it wrong !August 22, 2014 at 12:19 pm #188244In reply to: Activation not possible
John James Jacoby
KeymasterLooks like @maikelcoke found a solution here:
August 22, 2014 at 12:16 pm #188243danbp
ParticipantHello @multimartin,
2 nd question:
in the private blog settings, general > reading > search engine visibility, check disallow box. This will hide any of the private blog activities to appear on site activity and user feeds, except for those who are members of this blog.If it is not enough, considerer this plugin
1 st question:
read hereAugust 22, 2014 at 11:53 am #188240danbp
ParticipantHello @saurabhsjain91,
first let’s see what is normally going on with group settings:
This is a public group
Any site member can join this group.
This group will be listed in the groups directory and in search results.
Group content and activity will be visible to any site member.
This is a private group
Only users who request membership and are accepted can join the group.
This group will be listed in the groups directory and in search results.
Group content and activity will only be visible to members of the group.As you see, the only difference is the group content and activity visibility.
The easiest way would be to create only private groups, so the members had to request membership to access them. But it is not what you want to do and unfortunately, modifying group privacy for better flexibility is not very doable.
So, we have to focus on what it is possible to do with public groups accessibility, the one with the fewest restrictions.
Lukily, core developper @imath stumbled also upon this problem a few mounth back. And finally produced a plugin.
The features are:
- allow users to submit a request to join the group.
- selectively hiding group tabs.
- add a custom group homepage when non-members are viewing the group.
More about this experimental plugin on @pollyplummer ‘s WPTavern.
The original post (fr) on @imath ‘s blog
The plugin can be downladed on github.May this help ! π
August 22, 2014 at 7:30 am #188236In reply to: Xprofile fields – Per Member Visibility
danbp
Participantyou will find some usefull posts about this on the codex.
Add custom filters to loops and enjoy them within your plugin
https://codex.buddypress.org/plugindev/playing-with-the-users-id-in-different-contexts/
https://codex.buddypress.org/plugindev/using-bp_parse_args-to-filter-buddypress-template-loops/Searching on the forum can also help.
https://buddypress.org/support/search/xprofile+conditionnal+fields/August 22, 2014 at 6:42 am #188232In reply to: [Resolved] Auto-generate password & name?
bridieamelia
ParticipantI know this is an old post but I searched and searched for a solution to this and finally found one today, so will repost here for others. The solution does require installing Gravity Forms, and then you also need to install the GF User Registration Add-On (check the Add-On item in your Forms dashboard menu). Create a registration form with Gravity Forms, then add a User registration feed, and not only can you opt for automatic password generation but you can also map fields to Buddypress π
August 22, 2014 at 4:08 am #188231In reply to: Registration page NOT working!
bp-help
Participant@bulltalk65
It would help if you would list all the plugins you are using. You really should bulk deactivate all of them except BuddyPress and re-activate each one individually and test registration against each one until you find the plugin that is causing your issue, and if that is not the problem you need to check your servers error logs.August 21, 2014 at 10:43 pm #188045In reply to: Not getting the activation mail
danbp
ParticipantIs yor site allowed to send mails ?
Deactivate buddypress and regisrer from WP. If you don’t receive the mail you have to get in contact with your hoster or read the host documentation.Good read here, with some wise recommendation from @hnla
August 21, 2014 at 9:09 pm #187770In reply to: using placeholder attribute instead of label
danbp
ParticipantHi @mmadden,
not sure i understand what you want to achieve. Are you creating a register page from scratch ?
Anyway….
Open the original BP register file (/buddypress/bp-templates/bp-legacy/buddypress/members/register.php). It contains many placeholders and conditionnalsSo, for the mandatory NAME xprofile group (the only one you use), you have line 65
if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); --- blah---Line 75 sit this placeholder
do_action( 'bp_custom_profile_edit_fields_pre_visibility' );where you can hook your additionnal information.Line 98 there’s another one:
do_action( 'bp_custom_profile_edit_fields' );just above this function:<p class="description"><?php bp_the_profile_field_description(); ?></p>In register.php, the section you speak about goes from line 50 to 112
From/***** Extra Profile Details ******/to</div><!-- #profile-details-section -->Of course, you can also add your own placeholder to your register template.
Sorry if i’m wrong.
August 21, 2014 at 8:02 pm #187765Christian Freeman (codelion)
ParticipantAlright, I have an update.
It turns out that BuddyPress Activity Plus was not to blame after all. For some reason, when I use
$retval['object'] = 'status';it only shows activity updates that I’ve just submitted. Once I refresh the page, the stream is empty again.So I changed the function you provided to try to get around this, and to be conditional to the home page of my eX-Stream site only:
function bpfr_filtering_activity( $retval ) { global $blog_id; // activities to filter on, comma separated if ( $blog_id == 13 && is_front_page() ) { $retval['action'] = 'activity_update'; } return $retval; } add_filter( 'bp_after_has_activities_parse_args', 'bpfr_filtering_activity' );August 21, 2014 at 7:10 pm #187763Christian Freeman (codelion)
ParticipantThanks a lot @danbp!
The function you provided was EXACTLY what I needed. I appreciate the post you provided with additional info as well. Extremely helpful stuff.
After I added the function I realized that my activity stream was not showing anything. Then, I figured out that the BuddyPress Activity Plus Plugin doesnβt register status updates. So, once I deactivated it, everything was working perfectly.
Thanks again, you are a huge help!
August 21, 2014 at 5:57 pm #187722shanebp
Moderator> it seems as complicated as re-writing the bp_get_activities
It’s not even close to being that complicated.
This examples are re members, but should give you an idea of the general approach to a custom process:
August 21, 2014 at 5:09 pm #187720shanebp
ModeratorIf I was doing this, I would write a custom function(s) to gather the activity ids.
And that function would most likely contain one or more custom db queries.If you are unable to write such queries, you may want to consider hiring a developer.
August 21, 2014 at 5:04 pm #187719laxmanvel
ParticipantHi Dandp,
Thanks for your reply.
OH is it? if i customize template file then will update version overridden.! okay i understand your words.!
finally get URL value. i want message thread id from URL.
Just using simple keyword ( bp_get_thread_id(); )
this function get current URL thread id in Buddypress.-Laxmanvel
August 21, 2014 at 4:48 pm #187718Topic: Activity feature
in forum How-to & Troubleshootingitisix
ParticipantHi,
I love the activity feature I get when I’m logged as admin. In my CP I just click the icon and get a list of posts, replies and who registers in neat order.
My users can’t get this, nor can they get decent info from the activity option from the drop down top menu… or can they?
Latests versions of WordPress, BBpress and Buddypress.
Thanks,
-
AuthorSearch Results