ui = array('title' => 'My Pod' ,'add_fields' => array('name' ,'position','photo','bio','eom'),'edit_fields' => array('name' ,'position','photo','bio','eom','approved')); //load Pod $pod = new Pod('dreams'); if(current_user_can('administrator')) { //set publicForm() visible fields for admins $object->ui = array('title' => 'My Dream' ,'add_fields' => array('name' ,'position','photo','bio','eom'),'edit_fields' => array('name' ,'position','photo','bio','eom','approved')); pods_ui_manage($object); } else if(is_user_logged_in()) { // Get the last URL variable $slug = pods_url_variable('1'); $Edit = new Pod('team', $slug); $name = $Edit->get_field('name'); $author_id = $Edit->get_field('author_id'); // GET AUTHOR FROM POD $user_id = $current_user->ID; global $current_user; // GET USER INFO get_currentuserinfo(); $object->ui = array('title' => 'My Dream' ,'add_fields' => array('name' ,'position','photo','bio','eom'),'edit_fields' => array('name' ,'position','photo','bio','eom','approved')); pods_ui_manage($object); // $edit_listing = (($author_id == $current_user->ID) || (current_user_can('manage_options') == true) ? true : false); // }; ?>

Create a Dream

What is this Dream, what do I want to do, accomplish, achieve?

Does this Dream involve someone else?

What tools are available to help achieve this Dream?

What steps can I take to help me achieve this Dream?

publicForm($fields); ?>
'where' => 'p.author_id = ' . $user_id, 'edit_where' => array('author_id' => $user_id)