-
shanebp replied to the topic Adding Dynamic Profile Link to Main Menu Item in the forum How-to & Troubleshooting 11 years, 2 months ago
Try using: bp_get_loggedin_user_username() instead of bp_loggedin_user_username().
bp_loggedin_user_username() will echo the name so it will be out of the sequence you expect.
-
shanebp replied to the topic Flat Portal theme in the forum Showcase 11 years, 2 months ago
Nice demo.
I like Flat Portfolio.>It uses Conditional queries for the privacy options
So not the usual slug checking ?The idea of a theme specifically for a portal with access options is interesting.
I’ll bet it’s tough to get noticed in the huge number of themes available, but good luck. -
shanebp replied to the topic [Resolved] Filter email message content in the forum How-to & Troubleshooting 11 years, 2 months ago
Try this:
function change_bp_new_message_email_content($email_content, $sender_name, $subject, $content, $message_link, $settings_link) {
$email_content = sprintf( __(
'You have one new message:
Subject: %1$s
"%2$s"
To view and read your messages please log in and visit: %3$s
---------------------
', 'buddypress' ), $subject, $content,…[Read more] -
shanebp replied to the topic Disable notice to all users? in the forum How-to & Troubleshooting 11 years, 2 months ago
Create a template over-ride for this file:
buddypressbp-templatesbp-legacybuddypressmemberssinglemessagescompose.phpThen delete or comment out this:
<?php if ( bp_current_user_can( 'bp_moderate' ) ) : ?>
[Read more]
<input type="checkbox" id="send-notice" name="send-notice" value="1" /> <?php _e( "This is a notice to all users.", "buddypress" ); ?>
<?php… -
shanebp replied to the topic Members Only Content on a Page/Post in the forum How-to & Troubleshooting 11 years, 2 months ago
> reveal new content to logged in members.
What kind of content? New content on the same page/post?
Access to members area?Provide a Use Case.
-
shanebp replied to the topic How to disable Group Activity updates? in the forum How-to & Troubleshooting 11 years, 2 months ago
change this:
<?php bp_get_template_part( 'activity/post-form' ); ?>
to this:
<?php //bp_get_template_part( 'activity/post-form' ); ?>
or just delete this:
<?php if ( is_user_logged_in() && bp_group_is_member() ) : ?>
<?php bp_get_template_part( 'activity/post-form' ); ?>
<?php endif;…
-
shanebp replied to the topic Add another edit screen under group admin settings in the forum Creating & Extending 11 years, 2 months ago
What screen are you using to create the custom post type “events” ?
-
shanebp replied to the topic Add another edit screen under group admin settings in the forum Creating & Extending 11 years, 2 months ago
Tricky one.
Does it have to be on a separate page?
Have you tried using jQuery to reveal a hidden div that shows the cpt fields and populates it with the selected event ? -
shanebp replied to the topic Editing the BuddyPress site pages in the forum How-to & Troubleshooting 11 years, 2 months ago
Create a folder in your theme called ‘buddypress’
Copy a single file into that folder.
For example, copy this file:
buddypressbp-templatesbp-legacybuddypressmembersmembers-loop.phpinto this folder:
yourtheme/buddypress/members/Then make a change to that file.
-
shanebp replied to the topic Merge a BP site into a Non-BP site in the forum Installing BuddyPress 11 years, 2 months ago
To be clear: the non-bp magazine site is a WP site?
This can be done but will be somewhat tricky.
You’ll need database access via something like phpMyAdmin.
I suggest it will be safer to merge the 2 site into a third site.
I’m not aware of any docs re this type of merge. -
shanebp replied to the topic Categories and Tags from Blog Post in the activity stream in the forum How-to & Troubleshooting 11 years, 2 months ago
untested:
$activity_action = sprintf( __( '%1$s wroteDD a new post, %2$s, in %3$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>', get_the_category_list( ', ', '', $post->ID )…
-
shanebp replied to the topic Stop friend request after declining in the forum How-to & Troubleshooting 11 years, 3 months ago
@elpix
There is a premium plugin from PhiloPress that lets members block each other.
Once a member has blocked you, there is no way to send a friendship request to that member until they unblock you. -
shanebp replied to the topic Private Portal with BuddyPress in the forum Creating & Extending 11 years, 3 months ago
So you want to block
yoursite.com/members/
and
yoursite.com/activity/
from users who aren’t admins or editors ?But allow everyone to view
yoursite.com/members/my-profile?Then you might try putting a current_user_can conditional directly in the over-ride templates for those two pages.
[there surely is a way to write a function to do this,…[Read more]
-
shanebp replied to the topic Private Portal with BuddyPress in the forum Creating & Extending 11 years, 3 months ago
Perhaps a simpler way, given that she wants to check for both admin and editor, is to test against a cap that both admin and editor have.
Something like:
function bp_my_restrict() {
if ( !current_user_can('edit_posts') ) {
if ( bp_is_current_component('members') || bp_is_current_component('activity') ) {
wp_redirect( home_url()…[Read more]
-
shanebp replied to the topic Added a new tab but link doesn't work in the forum Creating & Extending 11 years, 3 months ago
@eflouret
>Do you think that moving the templates to the main theme is wrong?No, it’s what you should do when you want to customize templates.
I thought you did it solely as part of your attempt to get the new nav item working.If you want, you can add new templates to that dir.
And call a template from your show_content function:
function…
[Read more] -
shanebp replied to the topic Show members with certain role in the forum Creating & Extending 11 years, 3 months ago
Change break; to continue;
-
shanebp replied to the topic Adding event to activity stream in the forum Creating & Extending 11 years, 3 months ago
Again – What are you using to create the form for submitting a review?
-
shanebp replied to the topic Added a new tab but link doesn't work in the forum Creating & Extending 11 years, 3 months ago
1. Not necessary
4. Try:
global $bp;
[Read more]
bp_core_new_nav_item( array(
'name' => 'My Trips',
'slug' => 'mytrips',
'position' => 75,
'show_for_displayed_user' => true,
'screen_function' => 'my_trips_link',
'parent_url' => $bp->loggedin_user->domain . '/',
'parent_slug' => $bp->profile->slug,
'default_subnav_slug' =>… -
shanebp replied to the topic Registration Process in the forum How-to & Troubleshooting 11 years, 3 months ago
@henrywright-1
Thanks. - Load More
@shanebp
Active 10 hours, 1 minute ago