Forum Replies Created
-
In reply to: Generic Link to Profile?
You can do that like this:
<?php if ( is_user_logged_in() ) { ?> <a href="<?php echo bp_loggedin_user_domain(); ?>">Profile</a> <?php } else { ?> <a href="/login">Login</a> <?php } ?>In reply to: [Resolved] Site PrivacyIt’s probably worth giving it a shot and then just open a new topic for any specific coding questions you have.
In reply to: [Resolved] Site PrivacyAh OK. Deadlines are always a pain! If a plugin isn’t available, you can do all of those things relatively easily with PHP. How is your PHP knowledge?
In reply to: [Resolved] Site PrivacyWould it be possible to include features that would enable site admins to make their sites accessible to logged-in users only?
It certainly would be possible but even though such features have been requested lots of times here in the forum, it doesn’t mean everyone would want, or welcome that particular functionality. This is a great example that highlights why plugins exist. By providing this feature as a plugin, it ensures the core doesn’t become bloated. And users that do want the functionality can simply install a plugin.
Regarding 1, have a read of the Template Hierarchy article. This will give you an overview of how templates work.
You’ll need to know PHP in order to do point 2.
1) You will need to make sure the
template_noticeshook is in your template.2) I’m not sure if an email is sent on settings change by default, but if not, the general approach would be to hook a custom function to
bp_core_general_settings_after_save. Within your custom function you should usewp_mail()to send the email.Media commenting isn’t available in core so you will need to find a plugin. Two popular media plugins I know of are rtMedia and MediaPress. Alternatively, you could build something yourself using the new BP Attachment API
In reply to: Comments notification doesn’t workYou should note the ticket is still under development, which means the patch provided may not fully work. If you notice something not working then feel free to provide feedback directly in the Trac ticket.
In reply to: Buddypress Profile Styling IssueThis is theme-related. You should use Chrome dev tools to investigate whether that particular nav item’s CSS or HTML is different from the rest of the nav items (or it may just be that they don’t fit in the horizontal space). Alternatively, you could contact the theme author for support.
In reply to: Comments notification doesn’t workThe core handbook should show you how. Specifically, take a look at The Code Repository section.
In reply to: Substantial changes to layout of buddypress profileCSS and HTML are the things you’ll need to use in order modify the page. The BuddyPress Template Hierarchy article will show you which files you’ll need to modify. Note, you may have to create the templates if your theme doesn’t already have them.
In reply to: Comments notification doesn’t workTake a look at the Apply a Patch Using TortoiseSVN article. The article focuses on WordPress, but the same idea should apply to BuddyPress.
No idea. Try checking if you have JavaScript disabled.
Do you have JavaScript disabled?
In reply to: Button Display ProblemTheme-related issues can be solved with CSS. Alternatively you could write to the theme author asking them for help.
In reply to: Auto Join specific groupAre you interested in a plugin solution?
Try BuddyPress Auto Group Join. It looks as though it’ll do what you need.
In reply to: Mark Particular Messages as ReadThe
messages_mark_thread_read()function will mark a message thread as read. It accepts the thread ID. So, to mark read all new private messages if they have a given subject, you could do this:function creativesinside_mark_read( $message ) { // Be sure we're working with an array. if ( is_object( $message ) ) { $args = (array) $message; } else { $args = $message; } // Mark as read. if ( $args['subject'] == 'comment on your post' ) { messages_mark_thread_read( $args['thread_id'] ); } } add_action( 'messages_message_sent', 'creativesinside_mark_read' );In reply to: I have an odd Code Snippet IssueThat’s odd. All I can think of is it must be your text editor. Try doing the same thing in something like Sublime Text or Atom and see if the problem occurs.
In reply to: BuddyPress pages not full widthA few options spring to mind:
- Ask the theme author to make their templates BuddyPress-compatible
- Create your own BuddyPress templates. See the Template Hierarchy article
Making a theme BuddyPress-compatible is something many theme authors would consider doing because it opens the door to 2,000,000+ BuddyPress sites, so it’s probably worth a shot asking.
In reply to: Activity shows logged out when I’m indeed logged in.This could be theme-related. Which theme are you currently using? Try using TwentyFifteen to see if the problem resolves.
In reply to: New plugin: BuddyPress ComplimentNice plugin @danbp!
In reply to: How can I change the Cropping size in profile page?Check out the Customizing BuddyPress Avatars article. You’ll see that avatar sizes can be set using constants:
define( 'BP_AVATAR_FULL_WIDTH', 250 ); define( 'BP_AVATAR_FULL_HEIGHT', 250 );In reply to: Action Hook for bp-registrationYou’ll need to be more specific. If you mean which hook fires when the registration page loads, then the answer is there are many. See here and look for the one you need.
In reply to: Adding more fields to the create groupCheck out the BuddyPress Template Hierarchy article if you’re not already using templates. You can add the new fields to buddypress/groups/create.php
In reply to: Wp Photo Album Plus – works 100% with Buddypress!You should consider leaving a review. It might help people in future if they are trying to decide whether to use the plugin.