Sorry it took me so long to write back. Here is what I have so far. I just imported a bunch of users that don't have their state entered yet so just know this page does correctly display the state. Still a work in progress.
http://amtech.abovemls.com/community...ian-roster.php
Here is the code for my custom template...
HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>Technician Roster - $vboptions[bbtitle]</title>
$headinclude
<LINK HREF="../AMtechVB.css" TYPE="text/css" REL="stylesheet"/>
</head>
<body style="color:#FFCC33">
$header
<div id="content">
<div >
<div id="primary">
<h1>$vbphrase[technician_roster]</h1>
<form action="profile.php?do=deleteusergroups&usergroupid=$usergroupid" method="post">
<input type="hidden" name="do" value="deleteusergroups" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="usergroupid" value="$usergroupid" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">
Alabama
</td>
</tr>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr align="center">
<td class="thead" align="$stylevar[left]" nowrap="nowrap"><a href="$sorturl<if condition="!$show['sorturlnoargs']">&</if>order=ASC&sort=username&pp=$perpage$usergrouplink">$vbphrase[username]</a> $sortarrow[username]</td>
<if condition="$show['usergroup']"><td class="thead"><input name="allbox" type="checkbox" value="Check All" title="$vbphrase[check_uncheck_all]" onClick="checkall(this.form);" /></td></if>
</tr>
$memberlistbits
<tr>
<td class="tfoot" colspan="15" align="$stylevar[right]">
</td>
</tr>
</table>
</form>
</div><!-- #primary -->
<div id="secondary" class="sidebar">
<ul id="subMenu">
<li><a href="#">Benefits</a></li>
<li><a href="#">Boards of Directors</a></li>
<li class="active"><a href="#">Certification</a></li>
<li><a href="#">Charter</a></li>
<li><a href="#">Code of Ethics</a></li>
<li><a href="#">Contact Amtech</a></li>
<li><a href="#">Join Now</a></li>
<li><a href="#">Officers</a></li>
</ul>
</div><!-- #secondary -->
</div><!-- #wrap -->
</div><!-- #content -->
<div id="siteInfo">
<ul>
<li class="first"><a href="#">About AMTECH</a></li>
<li><a href="#">Why Join?</a></li>
<li><a href="#">Community Forums</a></li>
<li><a href="#">Member Resources</a></li>
<li><a href="#">Training & Services</a></li>
<li><a href="#">Contact AMTECH</a></li>
</ul>
<h6>AM-TECH Assaociation of Marine Technicians ©2009 All rights reserved </h6>
</div><!-- #siteInfo -->
</body>
</html>
--------------- Added 10 Sep 2009 at 11:09 ---------------
Do you need the code for the php page code too because this site keeps telling me it's too many characters?
--------------- Added [DATE]1252606073[/DATE] at [TIME]1252606073[/TIME] ---------------
Can anyone just show me what the code would be for...
if a user's $userinfo[field7] (custom profile field) equals "X" (variable) then display those user's usernames?
I have tried to write this tons of ways and can't figure it out. I have no training in this stuff. This is what I came up with after scouring the web and guessing and finally gave up on...
PHP Code:
<if condition="$userinfo[field7] == OH"><a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a></if>