Forum Replies Created
-
In reply to: Can I @everyone when I message?
You said group admins were a special case and not covered in the @mods command, would it be possible to have a shout to both admins and mods?
I’ve just released version 1.0.1 which lets you use both @moderators and @administrators within a group to mention group moderators and administrators respectively.
In reply to: Custom Hook HelpCould be a function name conflict? Try
happymunkee_hook_test()just to be sure that’s not the issue.In reply to: Feature Request – Group invites – invite allKeep an eye on this ticket:
In reply to: NEW! Buddy Member Stats & BuddyPress Community StatsThanks for these useful plugins @danbp!
In reply to: Prohibit create groups with existing nameIf Group1 already exists, you can’t create a new group with the name Group1 or group1.
Hope that helps!
In reply to: Prohibit create groups with existing name@danbp Thanks for testing! I don’t think everyone would want this in core because some websites need groups to have the same name. I could package it up as a plugin if there’s much interest in it?
In reply to: Prohibit create groups with existing nameI had some time this morning so wrote this: http://pastebin.com/7wBvs7MM
Note, I’m using a custom database query because I couldn’t find anything already available in the API.
In reply to: Prohibit create groups with existing nameAlso should i be using the search_groups method for searching for an existing group with the same name or is there a different way?
BP_Groups_Group::search_groups()will get you a list of groups that match the first argument you pass to it. But the snag is, name and description matches are returned. We only want name matches.An alternative would be to use
BP_Groups_Group::group_exists( $slug ). This method will return either the ID of the group if one is found, elsenull. Keep in mind, the custom function you have hooked togroups_group_before_savewill be passed the value of$slug.In reply to: Prohibit create groups with existing nameIs it possible to do the same with Events? For example in Events Manager plugin?
I’m not familiar with the plugin but likely you can do the same sort of thing. Drop the plugin author the same question on their support forum. Hopefully they’ll get back to you with the info.
so should we use
bp_core_add_message
function to show the user an error?
Yes, the
bp_core_add_message()function will display a message you provide after a page reload. Be sure you havedo_action( 'template_notices' );in your template because the function will use that hook.In reply to: BoldIt’ll only change these links:
#subnav ul li.current a. If you want it to change all links within the subnav list items and not just the current one, you can do this:#subnav ul li a { color: #e2e419; font-weight: bold; }In reply to: BoldYou could try:
#subnav ul li.current a { color: #e2e419; font-weight: bold; }Ref: https://developer.mozilla.org/en/docs/Web/CSS/font-weight
In reply to: Prohibit create groups with existing nameYes. You can use the
groups_group_before_savehook to check if the name already exists. If so, set the name to and empty string. This will result in theBP_Groups_Group::save()method returningfalse, and no group being created. Note, you’ll probably also want to give the user some kind of useful message to tell them what’s happened.In reply to: groups_get_group in blog 1 from group 2There are a number of ways to install BuddyPress in your network. Can you describe your set up?
See the Installation in WordPress Multisite article for more info.
In reply to: Unable to log inWhich WordPress forum are you referring to? Can you give a link?
In reply to: NEW! Buddy Member Stats & BuddyPress Community Statsyep, both are currently pending review on wp’s repo
+1 for submitting to the Plugin Directory! Makes them far easier for users to find. 🙂
In reply to: BuddyPress LoginIn reply to: Page loadTry the BP Local Avatars plugin.
In reply to: New custom tab only visible by account ownerYou need to pass a value of
falseforshow_for_displayed_userto thebp_core_new_nav_item()function.In reply to: CSS for Registration FormUnfortunately, this code did not work at all 🙁
Likely you’ll need to change the selector
#buddypress .standard-form div.radio div labelso that it’s appropriate for the theme you’re using.In reply to: BuddyPress Profile UpdationCan you describe the steps you took? Also provide any error messages you got along the way. We also need details of your environment (see When Asking for Support).
In reply to: Buddypress as an Intranet@travis_98 if you do get this working, I’d be interested in hearing about the steps you took. If you could post here that would be great 🙂
In reply to: Sending Form Data to Activity StreamYou can add items to the activity stream with
bp_activity_add(). You could use your form values to build thecontentargument.Ref: https://codex.buddypress.org/developer/function-examples/bp_activity_add/
In reply to: Error Logs with BuddyPressI’ve recently installed Buddypress to my WP theme
Can you explain exactly the steps you took?
In reply to: Welcome e-mailYou could try Paul’s Welcome Pack plugin. It’s listed as not been updated in 2 years but it should still work.
In reply to: Is Buddypress’ “Username” field mandatory?Which theme is that? BuddyPress doesn’t ask for 2 usernames. The WordPress username and the BuddyPress username are one and the same. It looks as though your theme is asking for it twice