Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-10T23:43:17-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15747 2011-11-10T23:43:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=52736#p52736 <![CDATA[Re: Extra registration field question]]> https://codex.wordpress.org/Function_Re ... /get_users

Code:
$level1users get_users('role=s2member_level1');
foreach (
$level1users as $user) {
     echo 
'<li>' $user->display_name '</li>';


I hope it helps. :)

Statistics: Posted by Cristián Lávaque — November 10th, 2011, 11:43 pm


]]>
2011-11-08T01:27:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=52512#p52512 <![CDATA[Re: Extra registration field question]]> Statistics: Posted by ngentile — November 8th, 2011, 1:27 am


]]>
2011-11-07T00:35:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=52443#p52443 <![CDATA[Re: Extra registration field question]]> Statistics: Posted by ngentile — November 7th, 2011, 12:35 am


]]>
2011-11-07T00:13:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=52438#p52438 <![CDATA[Re: Extra registration field question]]> viewtopic.php?f=4&t=15747#p50985

Statistics: Posted by Cristián Lávaque — November 7th, 2011, 12:13 am


]]>
2011-11-06T21:21:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=52417#p52417 <![CDATA[Re: Extra registration field question]]>
Code:
<?php
////////////////////////////////////////////////////////////////////////////////////////////////////
//
//      File:
//         meta.php
//      Description:
//         This file compiles and processes the plugin's user meta options.
//      Actions:
//         1) compile options
//         2) process and save options
//      Date:
//         Added on April 30th 2011
//      Copyright:
//         Copyright (c) 2011 Matthew Praetzel.
//      License:
//         This software is licensed under the terms of the GNU Lesser General Public License v3
//         as published by the Free Software Foundation. You should have received a copy of of
//         the GNU Lesser General Public License along with this software. In the event that you
//         have not, please visit: http://www.gnu.org/licenses/gpl-3.0.txt
//
////////////////////////////////////////////////////////////////////////////////////////////////////

/****************************************Commence Script*******************************************/

//                                *******************************                                 //
//________________________________** INITIALIZE                **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
if($pagenow !== 'profile.php' and $pagenow !== 'user-edit.php') {
   return;
}
//                                *******************************                                 //
//________________________________** ADD EVENTS                **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
add_action('profile_update','WP_members_list_meta_actions');
add_action('init','WP_members_list_meta_styles');
add_action('init','WP_members_list_meta_scripts');
add_action('edit_user_profile','WP_members_list_meta');
add_action('show_user_profile','WP_members_list_meta');
//                                *******************************                                 //
//________________________________** SCRIPTS                   **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
function WP_members_list_meta_styles() {
   
}
function WP_members_list_meta_scripts() {
   
}
//                                *******************************                                 //
//________________________________** ACTIONS                   **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
function WP_members_list_meta_actions($i) {
   global $getWP,$tern_wp_members_defaults,$current_user,$wpdb,$profileuser,$current_user;
   $o = $getWP->getOption('tern_wp_members',$tern_wp_members_defaults);
   get_currentuserinfo();

   if(!current_user_can('edit_users') and (($o['allow_display'] and $current_user->ID != $i) or !$o['allow_display'])) {
      return;
   }

   global $getWP,$tern_wp_members_defaults,$current_user,$wpdb,$profileuser;
   $o = $getWP->getOption('tern_wp_members',$tern_wp_members_defaults);
   
   delete_user_meta($i,'_tern_wp_member_list');
   foreach((array)$_REQUEST['lists'] as $v) {
      add_user_meta($i,'_tern_wp_member_list',$v);
   }
   
}
//                                *******************************                                 //
//________________________________** SETTINGS                  **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
function WP_members_list_meta($i) {
   
   global $getWP,$tern_wp_members_defaults,$profileuser,$current_user;
   $o = $getWP->getOption('tern_wp_members',$tern_wp_members_defaults);
   get_currentuserinfo();

   if(!current_user_can('edit_users') and (($o['allow_display'] and $current_user->ID != $i->ID) or !$o['allow_display'])) {
      return;
   }
?>
   <h3>Members Lists</h3>
   <table class="form-table">
   <tr>
      <th><label for="lists">Select the lists you'd like this user displayed in:</label></th>
      <td>
         <ul>
         <?php foreach($o['lists'] as $v) { ?>
         <li><input type="checkbox" name="lists[]" value="<?php echo $v; ?>" <?php if(WP_members_list_is_in_list($i->ID,$v)) {?>checked<?php } ?> /> <?php echo $v; ?></li>
         <?php } ?>
         </ul>
      </td>
   </tr>
   </table>
<?php
   
}

/****************************************Terminate Script******************************************/
?>
\



I also found this and am including it just in case.




Code:
<?php
////////////////////////////////////////////////////////////////////////////////////////////////////
//
//      File:
//         tern_wp_members.php
//      Description:
//         This file initializes the Wordpress Plugin - Members List Plugin
//      Actions:
//         1) list members
//         2) search through members
//         3) perform administrative actions
//      Date:
//         Added on January 29th 2009
//      Copyright:
//         Copyright (c) 2010 Matthew Praetzel.
//      License:
//         This software is licensed under the terms of the GNU Lesser General Public License v3
//         as published by the Free Software Foundation. You should have received a copy of of
//         the GNU Lesser General Public License along with this software. In the event that you
//         have not, please visit: http://www.gnu.org/licenses/gpl-3.0.txt
//
////////////////////////////////////////////////////////////////////////////////////////////////////

/****************************************Commence Script*******************************************/

//                                *******************************                                 //
//________________________________** ADD EVENTS                **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
add_action('admin_menu','tern_wp_members_menu');
//scripts & stylesheets
add_action('init','tern_wp_members_styles');
add_action('init','tern_wp_members_js');
add_action('wp_print_scripts','tern_wp_members_js_root');
//hide new members
add_action('user_register','tern_wp_members_hide');
//short code
add_shortcode('members-list','tern_wp_members_shortcode');
//errors
add_action('init','WP_members_list_errors');
//                                *******************************                                 //
//________________________________** MENUS                     **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
function tern_wp_members_menu() {
   if(function_exists('add_menu_page')) {
      add_menu_page('Members List','Members List',10,__FILE__,'WP_members_list_settings');
      add_submenu_page(__FILE__,'Members List','Settings',10,__FILE__,'WP_members_list_settings');
      add_submenu_page(__FILE__,'Change Sort Fields','Change Sort Fields',10,'members-list-configure-sort','WP_members_list_sort_fields');
      add_submenu_page(__FILE__,'Change Search Fields','Change Search Fields',10,'members-list-configure-search','WP_members_list_search_fields');
      add_submenu_page(__FILE__,'Configure Mark-Up','Configure Mark-Up',10,'members-list-configure-mark-up','WP_members_list_markup');
      add_submenu_page(__FILE__,'Edit Members','Edit Members',10,'members-list-edit-members-list','WP_members_list_list');
      add_submenu_page(__FILE__,'Create a List','Create a List',10,'members-list-create-list','WP_members_list_create');
   }
}
//                                *******************************                                 //
//________________________________** SCRIPTS                   **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
function tern_wp_members_styles() {
   if(!is_admin()) {
      wp_enqueue_style('tern_wp_members_css',get_bloginfo('wpurl').'/wp-content/plugins/members-list/css/members-list.css');
   }
}
function tern_wp_members_js() {
   if(!is_admin()) {
      wp_enqueue_script('members-list',get_bloginfo('wpurl').'/wp-content/plugins/members-list/js/scripts.js',array('jquery'));
   }
}
function tern_wp_members_js_root() {
   echo '<script type="text/javascript">var tern_wp_root = "'.get_bloginfo('home').'";</script>'."\n";
}
function tern_wp_members_hide($i) {
   global $getWP,$tern_wp_members_defaults;
   $o = $getWP->getOption('tern_wp_members',$tern_wp_members_defaults);
   if($o['hide'] and !in_array($i,$o['hidden'])) {
      $o['hidden'][] = $i;
      $o = $getWP->getOption('tern_wp_members',$o,true);
   }
}
//                                *******************************                                 //
//________________________________** SHORTCODE                 **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
function tern_wp_members_shortcode($a) {
   $m = new tern_members;
   return $m->members($a,false);
}
//                                *******************************                                 //
//________________________________** ERRORS                    **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
function WP_members_list_errors() {
   global $getWP,$tern_wp_members_defaults;
   $o = $getWP->getOption('tern_wp_members',$tern_wp_members_defaults);

   //if(!$o['url'] or empty($o['url'])) {
   //   $getWP->addError('Please remember to select a page in your Members List settings. Otherwise, many of the Members List plugin\'s featured will not work.');
   //}
   
   $getWP->renderErrors();
}
//                                *******************************                                 //
//________________________________** FUNCTIONS                 **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
function WP_members_list_is_in_list($u,$l) {
   $m = get_user_meta($u,'_tern_wp_member_list');
   $m = is_array($m) ? $m : array($m);
   
   foreach($m as $v) {
      if($v == $l) {
         return true;
      }
   }

   return false;
}
function WP_members_list_get_users_by_role($r) {
   global $wpdb;
   
   foreach($r as $v) {
      $x .= empty($x) ? " $wpdb->usermeta.meta_value LIKE '%$v%' " : " or $wpdb->usermeta.meta_value LIKE %'$v'% ";
   }
   return $wpdb->get_results("select ID from $wpdb->users inner join $wpdb->usermeta on($wpdb->users.ID = $wpdb->usermeta.user_id) where $wpdb->usermeta.meta_key='$wpdb->prefix"."capabilities' and ($x)"); 
}

/****************************************Terminate Script******************************************/
?>




I am posting this one because it looks like it is actually accepting the markup input from the WP member list setting page and applying it to the markup.




Code:
<?php
////////////////////////////////////////////////////////////////////////////////////////////////////
//
//      File:
//         markup.php
//      Description:
//         This file compiles and processes the plugin's configure mark-up page.
//      Actions:
//         1) compile plugin mark-up form
//         2) process and save plugin mark-up
//      Date:
//         Added on September 15th 2010
//      Copyright:
//         Copyright (c) 2010 Matthew Praetzel.
//      License:
//         This software is licensed under the terms of the GNU Lesser General Public License v3
//         as published by the Free Software Foundation. You should have received a copy of of
//         the GNU Lesser General Public License along with this software. In the event that you
//         have not, please visit: http://www.gnu.org/licenses/gpl-3.0.txt
//
////////////////////////////////////////////////////////////////////////////////////////////////////

/****************************************Commence Script*******************************************/

//                                *******************************                                 //
//________________________________** INITIALIZE                **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
if((!isset($_REQUEST['page']) or $_REQUEST['page'] !== 'members-list-configure-mark-up') and $GLOBALS['pagenow'] != 'admin-ajax.php') {
   return;
}
//                                *******************************                                 //
//________________________________** ADD EVENTS                **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
add_action('init','WP_members_list_markup_actions');
add_action('wp_ajax_markup','WP_members_list_markup_actions');
add_action('wp_ajax_getmarkup','WP_members_list_markup_actions');
add_action('init','WP_members_list_markup_styles');
add_action('init','WP_members_list_markup_scripts');
//                                *******************************                                 //
//________________________________** SCRIPTS                   **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
function WP_members_list_markup_styles() {
   wp_enqueue_style('tern_wp_members_css',get_bloginfo('wpurl').'/wp-content/plugins/members-list/css/members-list.css');
}
function WP_members_list_markup_scripts() {
   wp_enqueue_script('TableDnD',get_bloginfo('wpurl').'/wp-content/plugins/members-list/js/jquery.tablednd_0_5.js.php',array('jquery'),'0.5');
   wp_enqueue_script('members-list',get_bloginfo('wpurl').'/wp-content/plugins/members-list/js/admin.js');
}
//                                *******************************                                 //
//________________________________** ACTIONS                   **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
function WP_members_list_markup_actions() {
   global $getWP,$tern_wp_members_defaults,$current_user;
   get_currentuserinfo();
   $o = $getWP->getOption('tern_wp_members',$tern_wp_members_defaults);
   
   if($_REQUEST['page'] == 'members-list-configure-mark-up') {
      if(wp_verify_nonce($_REQUEST['_wpnonce'],'tern_wp_members_nonce')) {
         switch($_REQUEST['action']) {
            //update all fields
            case 'markup' :
               $o['fields'] = array();
               foreach($_REQUEST['field_titles'] as $k => $v) {
                  $v = stripslashes($v);
                  $o['fields'][$v] = array(
                     'name'      =>   $_REQUEST['field_names'][$k],
                     'markup'   =>   stripslashes($_REQUEST['field_markups'][$k])
                  );
               }
               $o = $getWP->getOption('tern_wp_members',$o,true);
               echo '<div id="message" class="updated fade"><p>Your order has been successfully saved.</p></div>';
               die();
            //add a field
            case 'add' :
               $f = $_REQUEST['new_field'];
               $o['fields'][$f] = array(
                  'name'      =>   $f,
                  'markup'   =>   '<div class="tern_wp_members_'.$f.'">%value%</div>'
               );
               $o = $getWP->getOption('tern_wp_members',$o,true);
            //delete a field
            case 'remove' :
               $a = array();
               foreach($o['fields'] as $k => $v) {
                  if($v['name'] != $_REQUEST['fields'][0]) {
                     $a[$k] = $v;
                  }
               }
               $o['fields'] = $a;
               $o = $getWP->getOption('tern_wp_members',$o,true);
         }
      }
      //attempted to update all fields without nonce
      elseif($_REQUEST['action'] == 'update' or $_REQUEST['action'] == 'add' or $_REQUEST['action'] == 'delete') {
         echo '<div id="message" class="updated fade"><p>There was an error whil processing your request. Please try again.</p></div>';
         die();
      }
      //get sample mark-up
      if($_REQUEST['action'] == 'getmarkup') {
         $m = new tern_members();
         echo htmlentities($m->markup($current_user));
         die();
      }
   }
   
}
//                                *******************************                                 //
//________________________________** SETTINGS                  **_________________________________//
//////////////////////////////////**                           **///////////////////////////////////
//                                **                           **                                 //
//                                *******************************                                 //
function WP_members_list_markup() {
   global $wpdb,$getWP,$ternSel,$tern_wp_members_defaults,$tern_wp_msg,$tern_wp_members_fields,$tern_wp_meta_fields,$current_user,$notice;
   $o = $getWP->getOption('tern_wp_members',$tern_wp_members_defaults);
   get_currentuserinfo();
?>
   <div class="wrap">
      <div id="icon-options-general" class="icon32"><br /></div>
      <h2>Configure Your Members List Mark-Up</h2>
      <?php if(!empty($notice)) { ?><div id="notice" class="error"><p><?php echo $notice ?></p></div><?php } ?>
      <p>
         Below you can configure what fields are shown when viewing your members list. Add fields to be displayed and edit their names,
         mark-up and order. When editing their mark-up, use the string %value% to place the respective value for each field and use the string
         %author_url% to add the url (e.g. http://blog.ternstyle.us/?author=1) for each respective author's page.
      </p>
      <div id="tern_wp_message">
      <?php
         if(!empty($tern_wp_msg)) {
            echo '<div id="message" class="updated fade"><p>'.$tern_wp_msg.'</p></div>';
         }
      ?>
      </div>
      <form class="field-form" action="" method="get">
         <p class="field-box">
            <label class="hidden" for="new-field-input">Add New Field:</label>
            <?php
               foreach($tern_wp_members_fields as $k => $v) {
                  foreach($o['fields'] as $w) {
                     if($v == $w['name']) {
                        continue 2;
                     }
                  }
                  $a['Standard Fields'][] = array($k,$v);
               }
               foreach($tern_wp_meta_fields as $k => $v) {
                  foreach($o['fields'] as $w) {
                     if($v == $w['name']) {
                        continue 2;
                     }
                  }
                  $a['Standard Meta Fields'][] = array($k,$v);
               }
               $r = $wpdb->get_col("select distinct meta_key from $wpdb->usermeta");
               foreach($r as $v) {
                  if(in_array($v,$tern_wp_members_fields) or in_array($v,$tern_wp_meta_fields)) {
                     continue;
                  }
                  foreach($o['fields'] as $w) {
                     if($v == $w['name']) {
                        continue 2;
                     }
                  }
                  $a['Available Meta Fields'][] = array($v,$v);
               }
               echo $ternSel->create(array(
                  'type'         =>   'tiered',
                  'data'         =>   $a,
                  'key'         =>   0,
                  'value'         =>   1,
                  'id'         =>   'new_field',
                  'name'         =>   'new_field',
                  'select_value'   =>   'Add New Field'
               ));
            ?>
            <input type="hidden" id="page" name="page" value="<?php echo $_REQUEST['page']; ?>" />
            <input type="submit" value="Add New Field" class="button" />
            <input type="hidden" name="action" value="add" />
            <input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo wp_create_nonce('tern_wp_members_nonce'); ?>" />
            <input type="hidden" name="_wp_http_referer" value="<?php wp_get_referer(); ?>" />
         </p>
      </form>
      <form id="tern_wp_members_list_fm" method="post" action="">
         <table id="members_list_fields" class="widefat fixed" cellspacing="0">
            <thead>
            <tr class="thead">
               <th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input type="checkbox" /></th>
               <th scope="col" id="field" class="manage-column column-field" style="width:20%;">Database Field</th>
               <th scope="col" id="name" class="manage-column column-name" style="width:20%;">Field Name</th>
               <th scope="col" id="markup" class="manage-column column-markup" style="">Mark-Up</th>
            </tr>
            </thead>
            <tfoot>
            <tr class="thead">
               <th scope="col" class="manage-column column-cb check-column" style=""><input type="checkbox" /></th>
               <th scope="col" id="field" class="manage-column column-field" style="">Database Field</th>
               <th scope="col" class="manage-column column-name" style="">Field Name</th>
               <th scope="col" class="manage-column column-markup" style="">Mark-Up</th>
            </tr>
            </tfoot>
            <tbody id="fields" class="list:fields field-list">
               <?php
                  foreach($o['fields'] as $k => $v) {
                     $d = empty($d) ? ' class="alternate"' : '';
               ?>
                     <tr id='field-<?php echo $v['name']; ?>'<?php echo $d; ?>>
                        <th scope='row' class='check-column'><input type='checkbox' name='fields[]' id='field_<?php echo $v['name'];?>' value='<?php echo $v['name'];?>' /></th>
                        <td class="field column-field">
                           <input type="hidden" name="field_names%5B%5D" value="<?php echo $v['name'];?>" />
                           <strong><?php echo $v['name'];?></strong><br />
                           <div class="row-actions">
                              <span class='edit tern_memebrs_edit'><a>Edit</a> | </span>
                              <span class='edit'><a href="admin.php?page=members-list-configure-mark-up&fields%5B%5D=<?php echo $v['name'];?>&action=remove&_wpnonce=<?php echo wp_create_nonce('tern_wp_members_nonce');?>">Remove</a></span>
                           </div>
                        </td>
                        <td class="name column-name">
                           <input type="text" name="field_titles%5B%5D" class="tern_members_fields hidden" value="<?php echo $k;?>" /><br class="tern_members_fields hidden" />
                           <input type="button" value="Update Field" class="tern_members_fields hidden button" />
                           <span class="tern_members_fields field_titles"><?php echo $k;?></span>
                        </td>
                        <td class="markup column-markup">
                           <textarea name="field_markups%5B%5D" class="tern_members_fields hidden" rows="4" cols="10"><?php echo $v['markup'];?></textarea><br class="tern_members_fields hidden" />
                           <input type="button" value="Update Field" class="tern_members_fields hidden button" />
                           <span class="tern_members_fields field_markups"><?php echo htmlentities($v['markup']); ?></span>
                        </td>
                     </tr>
               <?php
                  }
               ?>
            </tbody>
         </table>
         <input type="hidden" name="action" value="markup" />
         <input type="hidden" id="page" name="page" value="members-list-configure-mark-up" />
         <input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo wp_create_nonce('tern_wp_members_nonce');?>" />
         <input type="hidden" name="_wp_http_referer" value="<?php wp_get_referer(); ?>" />
      </form>
      <h3>Your Mark-Up will look like this:</h3>
      <?php
         $m = new tern_members();
         echo '<pre id="tern_members_sample_markup">'.htmlentities($m->markup($current_user)).'</pre>';
      ?>
   </div>
<?php
}

/****************************************Terminate Script******************************************/
?>

There are about 15 pages of code so if these two aren't it let me know and I will look back through them again. Thank you.

Statistics: Posted by ngentile — November 6th, 2011, 9:21 pm


]]>
2011-11-06T20:11:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=52407#p52407 <![CDATA[Re: Extra registration field question]]> Statistics: Posted by ngentile — November 6th, 2011, 8:11 pm


]]>
2011-11-06T14:33:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=52393#p52393 <![CDATA[Re: Extra registration field question]]> Statistics: Posted by ngentile — November 6th, 2011, 2:33 pm


]]>
2011-11-06T14:31:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=52392#p52392 <![CDATA[Re: Extra registration field question]]> /*
Plugin Name: Members List
Plugin URI: http://www.ternstyle.us/products/plugin ... ist-plugin
Description: List your members with pagination and search capabilities.
Author: Matthew Praetzel
Version: 3.5.5
Author URI: http://www.ternstyle.us/
Licensing : http://www.gnu.org/licenses/gpl-3.0.txt
*/

////////////////////////////////////////////////////////////////////////////////////////////////////
//
//File:
//init.php
//Description:
//This file initializes the Wordpress Plugin - Members List Plugin
//Actions:
//1) list members
//2) search through members
//3) perform administrative actions
//Date:
//Added on January 29th 2009
//Version:
//3.5.5
//Copyright:
//Copyright (c) 2010 Matthew Praetzel.
//License:
//This software is licensed under the terms of the GNU Lesser General Public License v3
//as published by the Free Software Foundation. You should have received a copy of of
//the GNU Lesser General Public License along with this software. In the event that you
//have not, please visit: http://www.gnu.org/licenses/gpl-3.0.txt
//
////////////////////////////////////////////////////////////////////////////////////////////////////

/****************************************Commence Script*******************************************/

// ******************************* //
//________________________________** ADD EVENTS **_________________________________//
//////////////////////////////////** **///////////////////////////////////
// ** ** //
// ******************************* //
//register_activation_hook(__FILE__,'');
// ******************************* //
//________________________________** INCLUDES **_________________________________//
//////////////////////////////////** **///////////////////////////////////
// ** ** //
// ******************************* //
require_once(dirname(__FILE__).'/conf.php');

/****************************************Terminate Script******************************************/
?>

The other code that I can edit is in the posts above. Thanks for all of your help

Statistics: Posted by ngentile — November 6th, 2011, 2:31 pm


]]>
2011-11-05T22:37:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=52347#p52347 <![CDATA[Re: Extra registration field question]]> Statistics: Posted by Cristián Lávaque — November 5th, 2011, 10:37 pm


]]>
2011-11-04T20:10:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=51064#p51064 <![CDATA[Re: Extra registration field question]]> Statistics: Posted by ngentile — November 4th, 2011, 8:10 pm


]]>
2011-11-04T15:42:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=51048#p51048 <![CDATA[Re: Extra registration field question]]> <div class="tern_wp_member_info">
<div class="tern_wp_members_display_name">admin</div>
<div class="tern_wp_members_user_email"><a href="mailto:ngentile@gmail.com">ngentile@gmail.com</a></div>
<div class="tern_wp_members_wp_s2member_custom_fields">[s2Get user_field="user_hobby" /]</div>
</div>
</li>

This is what I input in my markup. It just renders that code as a text string as shown below

Joanna Gentile
test@home.com
[s2Get user_field="user_hobby" /]

Statistics: Posted by ngentile — November 4th, 2011, 3:42 pm


]]>
2011-11-04T12:07:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=51035#p51035 <![CDATA[Re: Extra registration field question]]>
Code:
[s2Get user_field="my_custom_field_id" /]

This doesn't need Exec-PHP or anything of the style.

I found it in WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants, thought maybe this would help.

Statistics: Posted by Eduan — November 4th, 2011, 12:07 pm


]]>
2011-11-04T12:01:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=51034#p51034 <![CDATA[Re: Extra registration field question]]>
Parse error: syntax error, unexpected ‘/’ in C:\Sites\Masonic Lodge\wp-content\plugins\exec-php\includes\runtime.php(42) : eval()’d code on line 5

This is the code it is trying to execute
<?php echo get_user_field("user_hobby"); /?>

What else you got?

Statistics: Posted by ngentile — November 4th, 2011, 12:01 pm


]]>
2011-11-04T11:46:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=51028#p51028 <![CDATA[Re: Extra registration field question]]> Statistics: Posted by Eduan — November 4th, 2011, 11:46 am


]]>
2011-11-04T11:44:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=51027#p51027 <![CDATA[Re: Extra registration field question]]> Statistics: Posted by ngentile — November 4th, 2011, 11:44 am


]]>
2011-11-04T10:17:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=51015#p51015 <![CDATA[Re: Extra registration field question]]> Do you have the Exec-PHP plugin installed?

Statistics: Posted by Eduan — November 4th, 2011, 10:17 am


]]>
2011-11-04T01:29:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=50998#p50998 <![CDATA[Re: Extra registration field question]]> Statistics: Posted by ngentile — November 4th, 2011, 1:29 am


]]>
2011-11-04T01:21:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=50997#p50997 <![CDATA[Re: Extra registration field question]]>
Code:
echo get_user_field('user_hobby'$user_id); 


Does it help?

Statistics: Posted by Cristián Lávaque — November 4th, 2011, 1:21 am


]]>
2011-11-04T00:52:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=50987#p50987 <![CDATA[Re: Extra registration field question]]> http://706backup.com/members/member-list/

Link to the page.

Statistics: Posted by ngentile — November 4th, 2011, 12:52 am


]]>
2011-11-04T00:49:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=50985#p50985 <![CDATA[Re: Extra registration field question]]>
******************** From Member list markup*****************
<li>
<div class="tern_wp_member_info">
<div class="tern_wp_members_display_name">admin</div>
<div class="tern_wp_members_user_email"><a href="mailto:ngentile@gmail.com">ngentile@gmail.com</a></div>
<div class="tern_wp_members_wp_s2member_custom_fields"><?php echo get_user_field("user_hobby"); ?></div>
</div>
</li>
************************************

************************* Member list page shortcode ********************
[members-list list="Main" search=true alpha=true pagination=true pagination2=true sort=true]


[php]
echo get_user_field("user_hobby");
[/php]

This is what has me stumped.

Statistics: Posted by ngentile — November 4th, 2011, 12:49 am


]]>
2011-11-04T00:17:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=50978#p50978 <![CDATA[Re: Extra registration field question]]>
Code:
        <div class="tern_wp_members_wp_s2member_custom_fields"><?php echo get_user_field('user_hobby'); ?></div>


I hope that helps. :)

Statistics: Posted by Cristián Lávaque — November 4th, 2011, 12:17 am


]]>
2011-11-03T13:43:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=50934#p50934 <![CDATA[Re: Extra registration field question]]> Statistics: Posted by ngentile — November 3rd, 2011, 1:43 pm


]]>
2011-11-03T02:21:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=50880#p50880 <![CDATA[Re: Extra registration field question]]> coding Parse error: syntax error, unexpected $end in C:\Sites\Lodge\wp-content\plugins\allow-php-in-posts-and-pages\allowphp.php(77) : eval()'d code on line 3

where I ran this code: print_r($s2_custom_fields);

But I was able to use echo get_user_field("user_hobby"); to return the value successfully. I just don't know how to integrate that into the member list markup that looks like this:

Code:
<li>
    <
div class="tern_wp_member_info">
        <
div class="tern_wp_members_display_name">admin</div>
        <
div class="tern_wp_members_user_email"><a href="mailto:ngentile@gmail.com">ngentile@gmail.com</a></div>
        <
div class="tern_wp_members_wp_s2member_custom_fields">echo get_user_field("user_hobby");</div>
    </
div>
</
li

Statistics: Posted by ngentile — November 3rd, 2011, 2:21 am


]]>
2011-11-03T01:21:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=50875#p50875 <![CDATA[Re: Extra registration field question]]>

Statistics: Posted by Cristián Lávaque — November 3rd, 2011, 1:21 am


]]>
2011-11-03T00:58:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15747&p=50874#p50874 <![CDATA[Re: Extra registration field question]]> Statistics: Posted by ngentile — November 3rd, 2011, 12:58 am


]]>