-
Andrew Tibbetts started the topic Assign Default Member Type in the forum How-to & Troubleshooting 8 years, 5 months ago
I am trying to assign a default member type when users register from a non-buddypress registration form. This is the action I’m adding:
add_action( 'user_register', 'default_member_type', 10, 1 );
function default_member_type( $user_id ) {if ( ! bp_get_member_type($user_id) ) {
bp_set_member_type( $user_id, 'member' );
}
}
…and the…[Read more]
-
Andrew Tibbetts replied to the topic Double Dots in Gmail Addresses in the forum How-to & Troubleshooting 8 years, 6 months ago
Ya, I found that’s true, as well. But nothing in the registration process gives indication of that. Validation shouldn’t allow it. Maybe this is an issue upstream / with WP? Chrome’s built-in email field validation even let’s the .. slip by. This might be a futile endeavor…
-
Andrew Tibbetts started the topic Double Dots in Gmail Addresses in the forum How-to & Troubleshooting 8 years, 6 months ago
Gmail ignores dots in the name of emails. Useful if you want to use one email to keep test registering for a site without having to use multiple emails. But it seems Buddypress gets a bit confused if there are 2 dots in a row. So, I’ll get a confirmation email at
myname@gmail.com
andmy.name@gmail.com
butmy..name@gmail.com
slips by validation…[Read more] -
Andrew Tibbetts started the topic Get Notification Format Empty in the forum How-to & Troubleshooting 8 years, 6 months ago
I am trying to add a new notification for all members of a group when a new user joins a group. I have registered a new dummy component, can successfully get the notification into the db, but returning the notification for formatting / display comes up empty. Here’s my code:
[Read more]
add_filter( 'bp_notifications_get_registered_components',… -
Andrew Tibbetts replied to the topic Groups Default Sort By Alpha in the forum How-to & Troubleshooting 8 years, 7 months ago
So, instead of modifying the
bp_has_broups
query in the template, I figured I needed to do an if / else to check if the user has not set the sort option yet. To do that, inbp-custom.php
I hooked in to thebp_ajax_querystring
filter:add_filter( 'bp_ajax_querystring', 'mediclique_bp_ajax_querystring', 32, 2 );
[Read more]
function… -
Andrew Tibbetts started the topic Groups Default Sort By Alpha in the forum How-to & Troubleshooting 8 years, 7 months ago
How can I set the main list of Groups be sorted by
Alphabetical
by default instead ofLast Active
? I can modify thebp_has_groups
query in the template with&type=alphabetical
but then the dropdown will no longer affect the sort when changed.WP: 4.4.2
BP: 2.5.2 -
Andrew Tibbetts replied to the topic Make Group Home the Forum in the forum How-to & Troubleshooting 8 years, 8 months ago
FYI – this approach still shows the ‘Home’ nav item to logged out users, but it can effectively be hidden via CSS.
-
Andrew Tibbetts replied to the topic Hold Specific Member Types for Manual Activation in the forum How-to & Troubleshooting 8 years, 9 months ago
Solution:
There is an action to hook to inside
bp_core_activate_signup()
that fires right after activating the account ( user clicked the link in the email ), so when the user hits/activate
this will fire and reset the user_status to3
(1
is spammer I guess ). Now to figure out the rest…Here is the code ( the second function disallows the…[Read more]
-
Andrew Tibbetts started the topic Hold Specific Member Types for Manual Activation in the forum How-to & Troubleshooting 8 years, 9 months ago
I have a handful of member types that I would like to manually confirm by an admin.
Users choose their member type upon registration so, regular members can register, confirm email and start using the site, but special member types I want to be able to register, confirm email and then get put into some kind of user confirmation status.
Couple…[Read more] -
Andrew Tibbetts replied to the topic See if member belongs to group based on forum id in the forum How-to & Troubleshooting 8 years, 9 months ago
Scratch that.
I need the forum id based on group id.Aaaaand the solution: bbp_get_group_forum_ids()
-
Andrew Tibbetts started the topic See if member belongs to group based on forum id in the forum How-to & Troubleshooting 8 years, 9 months ago
How can I find out if a user is a member of a group using only the id of the forum attached to the group?
Trying a bunch of stuff but nothing’s working. -
Andrew Tibbetts replied to the topic Make Group Home the Forum in the forum How-to & Troubleshooting 8 years, 9 months ago
Found the solution!
So, in/buddypress/bp-groups/bp-groups-loader.php
if found that it’s checking for a “front” template along with Activity Streams being disabled.
So, I just created an emptyfront.php
file in my overloads/buddypress/groups/single/
folder and, boom! -
Andrew Tibbetts replied to the topic Make Group Home the Forum in the forum How-to & Troubleshooting 8 years, 9 months ago
Couple things to consider / need direction on:
– the URL is still /home. Looking to have /members
– the “Manage” section for admins—what is the proper way to handle visibility in the nav? -
Andrew Tibbetts replied to the topic Make Group Home the Forum in the forum How-to & Troubleshooting 8 years, 9 months ago
To be clear, and provide further details to demonstrate that this hasn’t been answered previously, I’m looking to have 2 nav items in every group: Forum, Members.
In that order, with the default page being Forum.
I have achieved the default page being Forum with this:add_filter( 'bp_groups_default_extension', 'custom_bp_groups_default_extension'…
[Read more] -
Andrew Tibbetts started the topic Make Group Home the Forum in the forum How-to & Troubleshooting 8 years, 9 months ago
When Activity Streams are disabled, Members becomes the default landing page within a group.
How can I make the Forum the ‘Home’ page and bring back the Members nav item? -
Andrew Tibbetts started the topic Redirect Loop on Ajax Actions in Custom Loop in the forum How-to & Troubleshooting 8 years, 10 months ago
I am using a page template for my “front page” so that if a user is logged out they see the “sign up” side of the site and when logged in an activity feed.
I used the example loop here:https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/
When I click ‘Favorite’, unlike on the
/member/username/
activity feed where it…[Read more] -
Andrew Tibbetts replied to the topic Buttons + Tabs Loading Whole Site Into Template in the forum How-to & Troubleshooting 8 years, 10 months ago
Ok, the one i found that has the ajax check does work.
I have narrowed all issues down to a redirect loop on ajax actions inside a custom loop on a page template.
Starting a new topic… thanks all. -
Andrew Tibbetts replied to the topic Buttons + Tabs Loading Whole Site Into Template in the forum How-to & Troubleshooting 8 years, 10 months ago
Thought I had found the silver bullet here:
which includes a check for
! ( defined( 'DOING_AJAX' ) && DOING_AJAX )
…still has a redirect loop when performing the ajax actions.The search continues…
-
Andrew Tibbetts replied to the topic Buttons + Tabs Loading Whole Site Into Template in the forum How-to & Troubleshooting 8 years, 10 months ago
Sorry, correction:
This doesn’t cause a redirect loop…but it doesn’t prevent access of non-admins to admin section.
And it DOES now cause a redirect loop on the actions that were, before, loading the whole home page into the middle of the template. -
Andrew Tibbetts replied to the topic Buttons + Tabs Loading Whole Site Into Template in the forum How-to & Troubleshooting 8 years, 10 months ago
Switching the action to
wp
causes a redirect loop.
But we’re thinking it’s just a matter of finding the right action to hook into? - Load More
@andrewgtibbetts
Active 7 years ago