Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 1,501 through 1,525 (of 3,460 total)
  • Author
    Search Results
  • #162876
    shanebp
    Moderator

    @henrywright-1
    What’s different? The answer is in your reply “Thanks for that… ”


    @valuser

    That usage makes sense and has been mentioned by others.
    But it’s not a simple tweak.
    And would require an admin screen so you could choose to show / not show the button in loops.
    And etc. etc.
    I’ll write an article in the next week or so on
    PhiloPress

    #162868
    valuser
    Participant

    Thanks for function https://gist.github.com/shanebp/5391229

    works bp 1.7, wp 3.5.1, bbPress 2.3.1 Theme: Child of bp Befault

    Any chance that it might call up your BP Profile Message UX 1.1.3

    #162865
    Henry
    Member

    Interestingly I just tried this outside of the members loop. It doesn’t work on the friends list page. What is different about the friends loop and the members loop for this not to work? Humm…

    #162863
    Henry
    Member

    Thanks for that! I can see now you’ve created a new function display_private_message_button which hooks on to action bp_directory_members_item in the members loop. Sorry for being slow, i got there in the end :}

    #162849
    shanebp
    Moderator

    Start with the add_action and follow the function calls.
    If you see a function that isn’t defined in the gist, then that function is in the codebase.
    Find and study it.

    The add_action calls a function that calls bp_send_message_button() which creates the button.
    Part of creating the button is creating the link.
    The link can be filtered – so look for apply_filters in that context.

    #162830
    Henry
    Member

    @shanebp

    Is it possible to explain how the code works?

    #162731
    jawanda0
    Participant

    Bummmp, I’m curious too. Thanks for any info!

    #162399
    Ben Hansen
    Participant

    gs is a shared environment as such it is not recommended for anything but private buddypress sites (maybe not even then). unlike other shared environments gs will not throttle you but instead they will bill you for overage the thing to really watch for is the GPU. WP+BP will use something like 100x the GPU of a typical static site when i used them on a BP site with about 2000 visitors a day about 2 years ago we were looking at about 200 in overage in the first month alone.

    #1 some media temple term that doesn’t mean much just think of it as total bandwidth cause thats probably what it is.

    #2 yes.

    #3 1

    #4 probably not but i’m sure you can buy extras. email accounts are totally separate from wordpress/buddypress accounts.

    David Cavins
    Keymaster

    Hi Modemlooper-

    My theme is a child theme of Twenty Twelve, so my style.css declares Template: twentytwelve.

    I followed your suggestion then took it a step farther and included slightly modified version of the js setup functions from the template pack in my `functions.php` file. I’ll post them here in case somebody else has the same problem I’m having:

    `function bp_support_theme_setup() {
    global $bp;

    // Load the default BuddyPress AJAX functions if it isn’t explicitly disabled or if it isn’t already included in a custom theme
    if ( ! function_exists( ‘bp_dtheme_ajax_querystring’ ) )
    require_once( BP_PLUGIN_DIR . ‘/bp-themes/bp-default/_inc/ajax.php’ );

    // Let’s tell BP that we support it!
    add_theme_support( ‘buddypress’ );

    if ( ! is_admin() ) {
    // Register buttons for the relevant component templates
    // Friends button
    if ( bp_is_active( ‘friends’ ) )
    add_action( ‘bp_member_header_actions’, ‘bp_add_friend_button’ );

    // Activity button
    if ( bp_is_active( ‘activity’ ) )
    add_action( ‘bp_member_header_actions’, ‘bp_send_public_message_button’ );

    // Messages button
    if ( bp_is_active( ‘messages’ ) )
    add_action( ‘bp_member_header_actions’, ‘bp_send_private_message_button’ );

    // Group buttons
    if ( bp_is_active( ‘groups’ ) ) {
    add_action( ‘bp_group_header_actions’, ‘bp_group_join_button’ );
    add_action( ‘bp_group_header_actions’, ‘bp_group_new_topic_button’ );
    add_action( ‘bp_directory_groups_actions’, ‘bp_group_join_button’ );
    }

    // Blog button
    if ( bp_is_active( ‘blogs’ ) )
    add_action( ‘bp_directory_blogs_actions’, ‘bp_blogs_visit_blog_button’ );
    }
    }
    add_action( ‘after_setup_theme’, ‘bp_support_theme_setup’, 11 );

    /**
    * Enqueues BuddyPress JS and related AJAX functions
    *
    * @since 1.2
    */
    function bp_support_enqueue_scripts() {

    // Add words that we need to use in JS to the end of the page so they can be translated and still used.
    $params = array(
    ‘my_favs’ => __( ‘My Favorites’, ‘buddypress’ ),
    ‘accepted’ => __( ‘Accepted’, ‘buddypress’ ),
    ‘rejected’ => __( ‘Rejected’, ‘buddypress’ ),
    ‘show_all_comments’ => __( ‘Show all comments for this thread’, ‘buddypress’ ),
    ‘show_all’ => __( ‘Show all’, ‘buddypress’ ),
    ‘comments’ => __( ‘comments’, ‘buddypress’ ),
    ‘close’ => __( ‘Close’, ‘buddypress’ )
    );

    // BP 1.5+
    if ( version_compare( BP_VERSION, ‘1.3’, ‘>’ ) ) {
    // Bump this when changes are made to bust cache
    $version = ‘20120412’;

    $params[‘view’] = __( ‘View’, ‘buddypress’ );
    $params[‘mark_as_fav’] = __( ‘Favorite’, ‘buddypress’ );
    $params[‘remove_fav’] = __( ‘Remove Favorite’, ‘buddypress’ );
    }
    // BP 1.2.x
    else {
    $version = ‘20110729’;

    if ( bp_displayed_user_id() )
    $params[‘mention_explain’] = sprintf( __( “%s is a unique identifier for %s that you can type into any message on this site. %s will be sent a notification and a link to your message any time you use it.”, ‘buddypress’ ), ‘@’ . bp_get_displayed_user_username(), bp_get_user_firstname( bp_get_displayed_user_fullname() ), bp_get_user_firstname( bp_get_displayed_user_fullname() ) );
    }

    // Enqueue the global JS – Ajax will not work without it
    wp_enqueue_script( ‘dtheme-ajax-js’, BP_PLUGIN_URL . ‘/bp-themes/bp-default/_inc/global.js’, array( ‘jquery’ ), $version );

    // Localize the JS strings
    wp_localize_script( ‘dtheme-ajax-js’, ‘BP_DTheme’, $params );
    }
    add_action( ‘wp_enqueue_scripts’, ‘bp_support_enqueue_scripts’ );
    `

    Which is identical to installing the template pack only for the JS, I think. Everything’s working as expected, so I think we can consider this problem resolved. Thanks for your attention, Hugo and Modemlooper.

    -David

    #162375
    bp-help
    Participant

    @sarathbabu_k
    Have you tried this plugin. I tested it with WP 3.5.1 BP 1.7 and various themes. It works with all of my tests. It makes BP private and also redirects visitors trying to access BP pages to register. Read the readme.txt and study the code to change where you want your logged out visitors redirected to.
    https://github.com/bphelp/private_community_for_bp

    #162212
    timvango
    Participant

    Oh, I’m sorry.
    I thought that you can’t send private messages to somebody who isn’t a friend, but it also works on my website…

    #162181
    timvango
    Participant

    Hello,
    When I press on message on the pofile page in the app, I can send an private message, also if it is not a friend. The message is send also.

    Hope this will help you.
    As mentioned before my English is not very good.
    Tim

    #162179
    Yuttadhammo
    Participant

    @timvango I’m sorry, I don’t understand. which private message feature? Are you sure it actually sends messages to people you can’t normally? if you can’t, it just won’t send.

    #162134
    timvango
    Participant

    Hello,
    The private message feature works great, but you can send private messages to all people, not only friends. I think this is a bug.

    PS Your work is great! Keep it on!

    LudachrisGSX
    Participant

    Alright, no suggestions. I sure am not having any luck getting feedback in these forums.

    Plan B would be to get quotes from some reputable WP development companies to build something custom, as I don’t know that I can build it myself. Can anyone point me to some of the more recommended developers in the community? If it’s against the forum policies to reply publicly with suggestions just send them to me privately please – multiple suggestions are preferred.

    #162098
    bp-help
    Participant

    @lavishdhand
    If you want to share your solution then add the code on
    http://pastebin.com/
    And share the link here.

    #162096
    LavishDhand
    Participant

    `

    `

    #162094
    LavishDhand
    Participant

    @henrywright-1 Thank you very much, I used the below code and it worked like a charm. Your hint worked for me πŸ™‚

    Don’t know why the code is not shwoing here

    #162086
    LavishDhand
    Participant

    I’m sorry I really don’t understand coding, however I am grateful for the solution you have provided. I will try to find a way to use this.

    Thank you very much πŸ™‚

    #162052
    xprt007
    Participant

    Hi
    I certainly did not go through all the details, though in another installation the link was working.
    After going through the steps, I edited some settings under “B. Set Up Group and Sitewide Forums” and now the group forum is now active. I learned quite a number of new things about forums/group forums.

    Thank you very much!

    Kind regards

    @mercime
    Participant

    claims of working with any theme


    @fpats
    I’ve seen reports where there are themes from themeforest which have failed the easiest route to BP Theme Compatibility enjoyed by almost all WordPress themes. Many possibilities to theme failure. Let’s take a look at what could be causing the failure in your theme and find the best alternative route provided by BP Theme Compat to make it work.

    Start a new topic here with your theme name and Theme Compat as title. Copy the source code of your theme’s page.php file, post the code in pastebin.com and post the generated pastebin URI in your topic. BP Theme Compat has alternative methods of making it work, here alone or with the theme author’s participation.

    #161977
    @mercime
    Participant

    @xprt007 so basically when you say latest WP 3.5.1, BP 1.7 and now bbPress 2.3, right? If your group is set to Private then the Group Forum created via https://codex.buddypress.org/user/setting-up-a-new-installation/installing-group-and-sitewide-forums/ should be private as well. So the question is, how did you set up your forum for that group?

    Sea Jay
    Participant

    I’m aware that, in the past, there used to be two admin bars: the WPAdmin bar shown to logged-in users and the Buddybar shown to all users, including a log-in/register link for new users.

    I believe I understood that the BuddyBar was being deprecated. Does that mean non-logged in users will see BuddyPress options on the main WP-Admin bar? (I am developing with a private site, so cannot see the options.)

    I’m looking for documentation that might help us understand the change.

    I am using Responsive theme, but have looked in source code and no longer see both bars.

    #161938
    Henry
    Member

    Couldn’t you make the To field a hidden input with a value of ‘admin’ with a conditional to check if the user is a member (and not the admin themself)?

    e.g in compose.php change the text input to something like:

    if ( !is_super_admin() ) {
    input type=”hidden” name=”send-to-input” value=”admin”

    } else {
    input type=”text” name=”send-to-input”
    }

    #161934
    LavishDhand
    Participant

    Hello @djpaul ,

    I see there is a β€˜Send a Reply’ box bebeath every message received and the receiver can easily type a reply here and send it. To send a reply the receiver do not need to visit β€˜/messages/compose/’ which I have restricted using S2member plugin.

    I have successfully achieved the solution. I have kept composing messages for myself (admin) only. All my users can reply back to me and cannot message each other.

    The problem that I’m facing is a little strange, the receiver does successfully reply to my message and I do receive the reply however as soon as this happens the user finds himself logged out!

    NOTE : Only a user (subscriber) other than admin logs out while replying. When I use the same box to reply to a message I do not log out!!!

    Any thoughts?

    Thanks

Viewing 25 results - 1,501 through 1,525 (of 3,460 total)
Skip to toolbar