BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 24250

    Hi Maelga,
    Checking for your last 2 feedback. will get back in 30 mins.

  • Keymaster
    (BuddyDev Team)
    Posts: 24250

    Hi Maelga,
    Are you logged in as admin? Admin users have no restriction. Is it happening for normal users?

  • Keymaster
    (BuddyDev Team)
    Posts: 24250
    Brajesh Singh on in reply to: Profile Edit Fields / Tabs #126

    Hi Enrons
    Just wanted to put my thoughts on your question.

    Though Anu has gone into details, It is not very clear for what you want to accomplish.

    here is the step you need to do.

    1. There is no way to reuse BuddyPress edit profile template ( without any modification ) to show single field(single group is fine, you can show that).

    2. Your strategy should be create a form and use xprofile_get_field_data to fetch the field data and fillup the form.

    3. Then, you will need to write a custom action handler, that will use xprofile_set_field_data function to update the field.

    To make it easier for the user, you may want to do the update via ajax.

    PS: Are you comfortable with code or do you ant to see a snippet? I will be happy to provide a code snippet( Though I am a little busy, so will need a few days before I can do that ).

  • Keymaster
    (BuddyDev Team)
    Posts: 24250
    Brajesh Singh on in reply to: BuddyBlog: posts pending review #120

    Hi Maelga,
    Thank you for the reply.

    My concern was not related to the available post status. BuddyBlog is a generic plugin and I need to understand in what scenario, We can transition a post from draft to pending. Currently and admin can choose to allow users publish or moderate. So, we know whether the submitted post is a draft or should be set as published.

    How do we decide the same for the pending?

  • Keymaster
    (BuddyDev Team)
    Posts: 24250
    Brajesh Singh on in reply to: BuddyBlog: posts pending review #118

    Hi Maelga,
    Thank you for asking.

    1. If you set the post status as draft from BuddyBlog admin settings page, the posts tab lists all the posts(published|draft). I agree with you that we should have a draft section to make it better. Even better will be to provide user with the option to save as draft/published while creating post.

    Please give me 2 days and I will add the draft tab. A little bit busy with some other plugin.

    2. I am sorry but I don’t see a way to differentiate draft from pending/awaiting review

    These are easily doable but I need clarification on how to differentiate.

    Thank you
    Brajesh

    PS:

    I appreciate your suggestion about the individual forum. We have got around 100+ plugins on BuddyDev,giving individual forums will make it complex. We are using tags to manage the plugin association. We will certainly be adding a few more forums as we progress with the new forums 🙂

    Moving to Requests and feedback.

  • Keymaster
    (BuddyDev Team)
    Posts: 24250

    Hi Craig,
    Thank you for the kind words. These are worth more happiness than any money can buy 🙂

    Have a wonderful week to you too and happy social networking with BuddyPress:)

  • Keymaster
    (BuddyDev Team)
    Posts: 24250

    Hi Craig,
    Welcome to the BuddyDev forum.

    Here is a function that you can call anywhere(may be in header or footer) and It will hide the link

    
    function bpdev_custom_hide_link_css() {
    
    	$group = groups_get_current_group();
    	
    	if( empty( $group ) ) {
    		return ;//we are not at group page
    	}
    	//if the current user is not group admin, let us hide it
    	if( ! groups_is_user_admin( get_current_user_id(), bp_get_group_id() ) ) { 
    	?>
    	<style type="text/css">
    		.cpm-projects nav.cpm-new-project a{
    			display: none !important;//hide by overriding any other display layout
    		}
    	</style>
    	<?php
    	}
    
    }
    

    To call it, you can do like this

    
    <?php bpdev_custom_hide_link_css();?>
    

    Can you please give it a try and let me know if this works or not?

  • Keymaster
    (BuddyDev Team)
    Posts: 24250

    Hi Leigh,
    Welcome to the BuddyDev forums.

    Thank you for the bug report.

    That mean we need to update this plugin and use bp only hooks to avoid any such error in future. Will update today/tomorrow and message here too.

  • Keymaster
    (BuddyDev Team)
    Posts: 24250

    Hi Kasparas,
    Thank you for asking.

    I haven’t tested this plugin with the current version of BuddyPress. It’s Sunday, so I may be away for most of the time, but will check by the evening and get back to you.

  • Keymaster
    (BuddyDev Team)
    Posts: 24250

    Hi Kasparas,
    Thank you for the update.

    Yes, we will be submitting the plugin to wp.org repo( though you will need to delete the current and install from wp.org again when we have it up due to change in directory name. If you are using it from github, the name is mediapress-master but once released, It will be mediapress).

    It has been so many months since initial release and we haven’t seen any serious issue recently, so in 1-2 week, we will submit it on wp.org after doing a final round of audits).