View Single Post
  #2  
Old 03-07-2006, 03:07 AM
 
sanj-xcart sanj-xcart is offline
 

Member
  
Join Date: Sep 2005
Location: London, UK
Posts: 28
 

Default

You can show the membership by pasting this section of code over the corresponding piece in the snippet posted above.

Code:
{section name=cat_num loop=$users} {assign var="_usertype" value=$users[cat_num].usertype} {if $_usertype eq "P" and $single_mode eq ""} {assign var="products" value=$users[cat_num].products} {else} {assign var="products" value=""} {/if} <TR{cycle values=", class=TableSubHead"}> <TD width="5"><INPUT type="checkbox" name="user[{$users[cat_num].login}]"{if $users[cat_num].login eq $login} disabled{/if}></TD> <TD>{$users[cat_num].login}</TD> <TD><FONT class="ItemsList">{$users[cat_num].firstname} {$users[cat_num].lastname}</FONT> / {$users[cat_num].email}</TD> <TD><SPAN title="{$users[cat_num].membership|default:$lng.lbl_no_membership}">{$usertypes.$_usertype}</SPAN>{if $_usertype eq 'B'} <FONT class="SmallText">({if $users[cat_num].status eq 'Q'}{$lng.lbl_unapproved}{elseif $users[cat_num].status eq 'D'}{$lng.lbl_declined}{else}{$lng.lbl_approved}{/if})</FONT>{/if} {if $products ne ""} <NOBR>({$lng.txt_N_products|substitute:"products":$products})</NOBR>{/if} </TD> <TD nowrap>{if ($users[cat_num].last_login ne 0)}{$users[cat_num].last_login|date_format:$config.Appearance.datetime_format}{else}{$lng.lbl_never_logged_in}{/if}</TD> <TD>{* NEWSLISTS GO HERE *}</TD> <TD>{$users[cat_num].membership}</TD> </TR> {/section}

Showing the newslists will be a little more involved. You should obtain the info from the newslist_subscription db table within admin/user.php, and then manipulate the variables a little so you can easily put the required info into the presentation table.

That should get you started. Good luck.

sanj
__________________
X-Cart Gold 4.0.16, 4.0.17
X-AOM 4.0.16, 4.0.17
X-Affiliate 4.0.16, 4.0.17
Reply With Quote