Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 1,376 through 1,400 (of 3,460 total)
  • Author
    Search Results
  • #168426
    nando99
    Participant

    it shows a zero 🙁

    #168425
    David Cavins
    Keymaster

    Put this before the code we’ve been talking about, and see what it displays on the page:

    $test_id = bp_get_current_group_id();
    echo 'The current group ID is:' . $test_id;

    If it returns a number besides zero (zero means that it can’t figure out which group is the current group, a non-zero number is the current group ID), then you could probably adjust the conditional code:

    if ( bp_group_is_visible( bp_get_current_group_id() ) ) {
    //do the topics loop here
    }

    Fingers crossed.

    #168423
    nando99
    Participant

    it doesnt work as in: no posts show up at all :/

    it is on the sidebar… how would i pass the group_id and give bbp_topics access… pretty much a noob here, sorry…

    thanks in advance!

    #168383
    David Cavins
    Keymaster

    When you say it didn’t work, do you mean that people who should see the topics couldn’t, or that no one could see the topics, or that everyone could see the topics? Was it too generous in letting people through or did it keep everyone out? 😉

    Also, could it be that this is this being used in a sidebar? I’m wondering if the placement on the page means that the group context is not certain, so you’d need to pass the group_id into bp_group_is_visible. Although I’d expect the bbp_topics to need to access the group_id as well.

    #168377
    nando99
    Participant

    i tried using the code you provided but nothing i tried worked… the latest forum topic is a widget so i tried putting it around the widget but that of course didnt work…

    so i dug deeper and found the template for the actual link and wrapped the code around that and it didnt work either 🙁

    the widget code: http://pastebin.com/cWrRkF1H

    the mytopics code: http://pastebin.com/PxJGi76N

    the single topic code where i put the code you provided: http://pastebin.com/X8VuwWpe

    not sure where else to put it…

    any help would be appreciated, thanks!

    #168350
    David Cavins
    Keymaster

    You should be able to wrap your bbp_has_topics output in a conditional like:

    if ( bp_group_is_visible() ) {
    //do the topics loop here
    }

    bp_group_is_visible checks to see if the group is public or private, and if it’s public, returns true. If not public, then it checks to see if the user is a member of the current group; if yes, it returns true. It’s located at /bp-groups/bp-groups-template.php -> line 377.

    function bp_group_is_visible( $group = false ) {
     378      global $groups_template;
     379  
     380      if ( bp_current_user_can( 'bp_moderate' ) )
     381          return true;
     382  
     383      if ( empty( $group ) )
     384          $group =& $groups_template->group;
     385  
     386      if ( 'public' == $group->status ) {
     387          return true;
     388      } else {
     389          if ( groups_is_user_member( bp_loggedin_user_id(), $group->id ) ) {
     390              return true;
     391          }
     392      }
     393  
     394      return false;
     395  }
    @mercime
    Participant

    @jais-p removed the extra posts 😉

    Thank you for posting back with your solution. Cheers.

    jais-p
    Participant

    Sorry for the multi-posting, bug. Thanks for your help!

    #167926
    bp-help
    Participant

    @asdevargas
    I removed the github version in favor of using the version in the official WP repository which has been improved. You can get it here:
    https://wordpress.org/plugins/private-community-for-bp-lite/

    jais-p
    Participant

    Allright, I’ve solved the problem.
    I needed to activate the “always include” option for JS. Although the “include JS” & “include CSS” options were checked, apparently the third option is required in order to upload files attached to private group posts.

    Thanks for the clue!

    jais-p
    Participant

    Dear Mercime,

    Thanks for your reply.
    I have tried to attach PDF, DOCX and simple TXT files.

    I do use GD-bbPress-attachments Version 1.9.2. I have checked the settings, they all seem correct.
    Strangely, the behaviour of the posting page doesn’t seem to upload the file I’ve selected, e.g. when I attach a file to any post, the uploading time of the page takes a few second (uploading of the file), whereas when I do the same on a private forum, the uploading time is almost instantaneous, as if the file was simple not uploaded

    @mercime
    Participant

    @jais-p What kinds of files are you attaching? Are you using https://wordpress.org/plugins/gd-bbpress-attachments/ ?

    #167767
    nobodymove
    Participant

    @bphelp. Upon a little further research, I wanted to note that I created a new User Profile Group, created a private field seen by Admins Only in that group, and the settings seem to be working fine in that group. In my Base (Primary) group though, all profile fields still remain visible to all users. Does the Base (Primary) group automatically force all fields visibility public by default? If so, is there way to override?

    If there is no way to change the visibility in the Base (Primary), I suppose I can just put private info in the other Profile Group, but I’m curious if or how that may effect my database import..

    #167765
    nobodymove
    Participant

    Hi @bphelp, is there a way I can privately send you a private link and/or set you up with a user account for my site’s user information? I just don’t want a public link with all of the user’s info public. I currently have all plugin’s deactivated and the twentytwelve theme active. I also did a clean install of Buddypress, still no luck, all the extended profile information is still visibile to everyone.

    #167733
    bp-help
    Participant
    #167566
    Renato Alves
    Moderator

    @bphelp Agree, every project is different and maybe will need a different solution. Thanks for creating the plugin though. 🙂

    #167547
    bp-help
    Participant

    @shameermohamed50
    Something is getting lost in the translation here. I know there is a BuddyPress plugin hence we are in the BuddyPress support forums but you keep mentioning a “BuddyPress Forum Plugin.” If you want forums then you will need to install bbpress and use the links I supplied. You can get bbpress here:
    https://wordpress.org/plugins/bbpress/
    BuddyPress just adds the social networking side of things like activity stream, members directories, extended profiles, adding friends, private messaging etc. If you need to have a forum you will need bbpress. Please do not take this offensively but you need to have a clear understanding of what BuddyPress is and what bbpress is because as stated before as of BuuddyPress 1.7 you will need to install bbpress which is a seperate plugin if forums is a requirement for your project. Have a look in the codex documentation to get a better understanding. Do a google search for BuddyPress and another for bbpress.

    #167540
    bp-help
    Participant

    @espellcaste
    Thank you, and in future releases I will be using the comments I get to make adjustments but the thing is I will never be able to satisfy everyone’s requirements. You may want it that way but another user may like it the way it is, or want something totally different. I do appreciate the positive comment, I may bump it up to 5 unblocked pages but I plan to release a premium version so I am not certain yet but I do take everything into consideration. Thanks again! 🙂

    #167539
    Renato Alves
    Moderator

    @bphelp Yeah, I tested it before commenting… Two pages is very little… My recommendation is to change it to get private only buddypress related pages, like the Private Buddypress plugin does.

    Either way, your plugin has great potential. Great work! =)

    #167527
    bp-help
    Participant

    @espellcaste
    There is a new version that is totally refactored on the repo.
    https://wordpress.org/plugins/private-community-for-bp-lite/

    #167525
    Renato Alves
    Moderator

    Good plugin, works like a charm.. But it would be good if we could set which pages to get private because as of now, it blocks the whole site from outside visitors except the home page.

    #167364

    In reply to: Creating New Plugins

    modemlooper
    Moderator

    Looks good. One more suggestion per WP standards. Place all add_actions right below it’s function unless the action is inside a function in that case you place that actions function below the function the add action is inside. It’s to keep the code easier to manage when you have really long file and scrolling up and down gets tedious.

    /*** Make sure BuddyPress is loaded ********************************/
    function private_community_for_bp_lite_bp_check() {
        if ( !class_exists( 'BuddyPress' ) ) {
    	add_action( 'admin_notices', 'private_community_for_bp_lite_install_buddypress_notice' );
        }
    }
    add_action('plugins_loaded', 'private_community_for_bp_lite_bp_check', 999);
    
    function private_community_for_bp_lite_install_buddypress_notice() {
    	echo '<div id="message" class="error fade"><p style="line-height: 150%">';
    	_e('<strong>Private Community For BP Lite</strong></a> requires the BuddyPress plugin to work. Please <a href="https://buddypress.org/download">install BuddyPress</a> first, or <a href="plugins.php">deactivate Private Community For BP Lite</a>.');
    	echo '</p></div>';
    }
    
    function private_community_for_bp_lite_init() {
    	require( dirname( __FILE__ ) . '/private-community-for-bp-lite.php' );
    }
    add_action( 'bp_include', 'private_community_for_bp_lite_init' );
    #167357
    kizmark
    Participant

    how did you get their name?.. I’ve tried to click on the textbox but their names aren’t appearing where it should have automatically searched.

    #167337
    Henry
    Member

    ‘Add friend’ and ‘send private message’ aren’t supposed to display when a user is logged out. For example, how would BuddyPress know who the friend request came from? How would BP know who the private message came from?

    #167336
    designweb
    Participant

    @bphelp Thank for your reply. my question is simple. i need to show member header item which include (add friend, send private message etc). which are not showing when user are not login. i need to remove login to see header item button condition . any way to do this.

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