Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 65 total)

  • leog371
    Participant

    @leog371

    Try the plugin then ^^^^


    leog371
    Participant

    @leog371

    without seeing your code myself i would suggest

    #activity-personal-li .current selected a {
    border: none !important;
    }


    leog371
    Participant

    @leog371

    Refresh live


    leog371
    Participant

    @leog371

    Create a post category,
    Place notification posts in that category,
    Place a loop that queries only that category,
    Set the amount of posts to display to one,
    Place that anywhere in your template files you want the notifications.
    Customize the look and what the post displays easily by using ( the_content(), the_excerpt(), the_thumbnail(), title or whatever ect ) to style it the way you want.
    Easy way to that.


    leog371
    Participant

    @leog371

    
    <? php if ( is_user_logged_in() ) :
    
    echo bp_core_get_user_displayname( bp_loggedin_user_id() );
    
    endif; ?>
    
    

    leog371
    Participant

    @leog371

    A membership plugin ( say like S2 Member) allows you to create membership Types or Roles ( ie – levels). You would simply set-up your membership levels ( Business and Ordinary ) and then create a memberships page. The membership options would display there. The user would have to select from one or the other.


    leog371
    Participant

    @leog371

    You could use Buddypress’s natural refresh auto load feature for the Activity Stream, Just tie into it like the activity stream does.


    leog371
    Participant

    @leog371

    Yep, I agree. Make the groups private.


    leog371
    Participant

    @leog371

    Hmmmmm, well it simply sounds like the rows and columns might not be lining up exactly. Not sure.
    I have worked out many city meta data files the same way for the purpose of importing into WordPress and faced similar issues, it almost always came down to some columns or rows not exactly the same or something like that. I would do an export of your wordpress first and compare the files, if that didn’t get me any closer i might go into php-myadmin in my cpanel and export a copy of the database portion that has all of your users info and compare that to your .net export. I think that table is going to be one of the following : Either “wp_bp_xprofile_fields” or “wp_users”. Maybe if you compare those with your .net export and work them the same in excel it will be easier?
    Not really sure without seeing the files your working with.
    I will do a tutorial on that within the next day or so, lol.


    leog371
    Participant

    @leog371

    Oh no, you should be making a child theme. Anytime you update that theme, your works could be lost forever.


    leog371
    Participant

    @leog371

    What are you exporting this csv out of? Is it from another WordPress or BuddyPress Site? If so, do you have all fields in your new intrasite setup like you did in the last one? If this is from some other social networking script, do all your data columns and things match up?


    leog371
    Participant

    @leog371

    If you are using the wysiwyg editors in the dashboard, make sure you are working in the text tab and not the visual tab when using anything other that standard text. The visual tabe basically strips or mutilates any code that’s used in it and does the same for html entities like special characters and stuff .

    Chech This Out


    leog371
    Participant

    @leog371

    got a link to this ?


    leog371
    Participant

    @leog371

    in that case simply make it visible only to the comment author when he or she is logged in.


    leog371
    Participant

    @leog371

    Just Place this on your template files or header file or where you want to display it

    
    <?php if ( is_user_logged_in() ) : ?>
    
     <a href="<?php echo bp_core_get_user_domain(bp_loggedin_user_id()) ?>messages/" title="Messages" data-toggle="tooltip" >
    
    <i class="fa fa-envelope-open-o" aria-hidden="true"></i> //Font Awesome if you want the envelope icon
    <?php echo bp_get_total_unread_messages_count( bp_loggedin_user_id() ) ?>
    
     </a>
    
    <?php endif ; ?>
    

    leog371
    Participant

    @leog371

    On the template file that displays the create form on the front end


    leog371
    Participant

    @leog371

    Hi Cding, you shouldn’t be doing that in the Add Favorites Code, that is a separate function and would be a button or Input that would be placed next to the add favorites button if you want it there. The code would look something like this.

    **Needs to be a function**

    if ( isset( $_POST['comment_delete_nonce'] ) ) {
        if( wp_verify_nonce( $_POST['comment_remove_nonce'], 'comment-remove-nonce' ) ) {
        set_query_var( 'commentid1', $_POST['commentid'] );     
        wp_delete_comment( get_query_var( 'commentid1'), true ); 
    	wp_safe_redirect( wp_get_referer() ); exit;			
        }
    } 

    And on the template file

    <form method="POST" action="" class="delete-comment-form">
    <input type="hidden" name="comment_remove_nonce" value="<?php echo wp_create_nonce('comment-remove-nonce'); ?>" /> 
    
    <input type="hidden" name="commentid" value="<?php comment_ID() ?>" />
    
    <input type="submit" value="Delete" title="Delete" id="submit-btn" class="btn" />
    </form>

    leog371
    Participant

    @leog371

    Wrap that in a BuddyPress Loop on whatever template your using it on.

    https://codex.buddypress.org/type/loop/


    leog371
    Participant

    @leog371

    Just to be sure of what your asking, Are you trying to hide these from everyone including the person who owns the profile?

    Just in case you dont want to hide them from the profile owner, you should know that any links that are edit, upload rtmedia links only display for the profile owner and no one else and most other things like this are hidden by default from users and friends anyways. Only a profile owner can upload and make changes to his profile or post activity on their profiles.

    Also, each member has privacy options in their profile settings. You can set defaults in the dashboard for this as well.

    If this is not the case, could you clarify what you hope to achieve?

    If you simply wish to remove links for everyone in your site including the profile owner, just use something like this in bp-custom.php file

    /* Example to Remove subnav tabs from Group Settings  https://codex.buddypress.org/developer/navigation-api/#examples*/ 	
    	function remove_group_manager_subnav_tabs() {   
        // site admin will see all tabs
        if ( ! bp_is_group() || ! ( bp_is_current_action( 'admin' ) && bp_action_variable( 0 ) ) || is_super_admin() ) {
            return;
        }
           // all subnav items are listed here.
           // comment those you want to show
            $hide_tabs = array(             
            //  'group-settings'    => 1,
            //    'delete-group'      => 1,
             //   'group-avatar'      => 1,
            //  'group-invites'     => 1,
             //   'manage-members'    => 1,
            //  'forum'             => 1,
            //  'group-cover-image' => 1
            );
                       
            $parent_nav_slug = bp_get_current_group_slug() . '_manage';
      
        //Remove the nav items
        foreach ( array_keys( $hide_tabs ) as $tab ) {
            bp_core_remove_subnav_item( $parent_nav_slug, $tab, 'groups' );
        }   
    }
    add_action( 'bp_actions', 'remove_group_manager_subnav_tabs' );

    leog371
    Participant

    @leog371

    No Worries NiceCap. Glad I could help out.


    leog371
    Participant

    @leog371

    Try this in functions.php or bp-custom. Img_url is where your new image is located

    define ( 'BP_AVATAR_DEFAULT', $img_url );

    Example

    
    define ( 'BP_AVATAR_DEFAULT', 'http://www.mysite.com/wp-content/uploads/2017/12/blue-blog75.jpg' )

    ;


    leog371
    Participant

    @leog371

    Or maybe something like this

    <form name="form" method="post" action="process or whatever here.php">
    <input type="submit" name="submit" value="submit" />
    <input type="button" name="cancel" value="cancel" onClick="window.location='http://yoursite.com/index.php';" />
    </form>

    leog371
    Participant

    @leog371

    This might get you started in the right direction.

    <form action="blahblahblah" method="post or get">
    <input type="submit" name="submitted" value="cancel">
    <input type="submit" name="submitted" value="don't cancel">
    </form>
    if ($_GET['submitted'] == "cancel")
    {
        send_header("Location: page.php");
    }
    ...

    leog371
    Participant

    @leog371

    Yep, the 2 plugins @vapvarun said will do all of that easily for you. I use those 2 plugins in a few sites and they work beautifully. Thanks @vapvarun.


    leog371
    Participant

    @leog371

    Hiya CDing, check this out. Its pretty self explanitory. Add BuddyPress Favorite Button On posts

Viewing 25 replies - 1 through 25 (of 65 total)
Skip to toolbar