$table = GLM_MEMBERS_PLUGIN_DB_PREFIX.$this->config['ref_type_table'][$r['ref_type']['value']];
// Get simplified member data
- $memberInfoData = $this->MemberInfo->getActiveInfoSimplified($r['ref_dest']);
+ $memberInfoData = $this->MemberInfo->getActiveInfoForMemberWithMemberData($r['ref_dest']);
if ($memberInfoData) {
$r['member'] = $memberInfoData;
glmMembersAdmin::addNotice($memberTypes, 'DataBlock', 'Member Types Data');
}
+ if ($memberID) {
+
+ // Also save the mmeber ID in a WordPress "option" in case someone clicks the "Member" sub-menu
+ update_option('glmMembersDatabaseMemberID', $memberID);
+
+ }
+
// Compile template data
$templateData = array(
'havePackages' => $havePackages,
$orderBy .= 'position DESC';
/*
- * Get the list of packages that meeet the previous requirements
+ * Get the list of packages that meet the previous requirements
*/
$packages = $this->getList($where, $orderBy);
if ($packages && count($packages) > 0) {
* ... additional short-codes
* )
*
+ * Shortcode descriptions sample
+ *
+ * <tr>
+ * <th>[glm-members-sample-shortcode]</th>
+ * <td> </td>
+ * <td width="50%">
+ * <p>
+ * Displays something related to this add-on.
+ * </p>
+ * </td>
+ * </tr>
+ * <tr>
+ * <td> </td>
+ * <th>type="{types}"</th>
+ * <td>
+ * <p>
+ * The "type" attribute is used to select the type of data to be displayed.
+ * Below is a list of available list types.
+ * </p>
+ * <p>
+ * <table width="100%">
+ * <tr><th colspan=3">List Types</th></tr>
+ * <tr><td>one</td><td>Type One</td></tr>
+ * <tr><td>two</td><td>Type Two</td></tr>
+ * </table>
+ * </p>
+ *
+ * </td>
+ * </tr>
+ *
+ *
*/
$glmMembersPackagingShortcodes = array(
{if $packageInfo.fieldFail.title}<p>{$packageInfo.fieldFail.title}</p>{/if}
</td>
</tr>
+ {if isset($packageInfo.fieldData.package_slug)}
<tr><th>Name for URLs:</th><td>{$packageInfo.fieldData.package_slug}</p></td></tr>
+ {/if}
<tr>
<th>Active:</th>
<td>