<br />
<br />
<div style="padding-left:10%">
<div id="layer" style="width:80%; padding-left:3%;" class="ui-widget-content ui-corner-all">
<p>This content, between the header and footer, is from the file:<strong> /members-section/html-members/main_menu.html</strong><br />
(there is a copy of the original called: <strong>main_menu.ORIGINAL.html</strong>) <br />
Some basic links you will require are: </p>
<table width="913" border="1" cellpadding="6" cellspacing="0" bordercolor="#8CA2AE">
<tr>
<td width="173" ><div align="right"><strong><a href="modify">Modify details </a></strong></div></td>
<td width="710"> <div align="left"><em>the link to allow your members to edit their details </em></div></td>
</tr>
<tr>
<td> <div align="right"><strong><a href="password_change">Change password</a><br />
</strong></div></td>
<td><div align="left"><em>the page where your members change their password </em></div></td>
</tr>
<tr>
<td> <div align="right"><strong><a href="../../members-only-content">members-only-content</a></strong></div></td>
<td>Link to your members-only-content, if the member is not logged in they will be redirected to the login page.<br />
Test it yourself: <strong><a href="logoff" target="_blank">click here to logoff</a></strong> (opens in <strong> a new window</strong>) close it, then click: <strong><a href="../../members-only-content">members-only-content</a></strong></td>
</tr>
<tr>
<td><div align="right"><strong><a href="logoff">logoff</a></strong></div></td>
<td><div align="left">link to log off the user. </div></td>
</tr>
</table>
<p>Note that when linking to any PHP file within the WMM system the file extension can be omitted like this: <br />
<input name="mod" type="text" value="<a href="modify">Modify details</a>" size="40" />
(this will load the file modify.php) there is no need to specify any folder names when creating links within the system. </p>
<p>To link to your members area from another page outside of WMM use: <br />
<?php echo "<input name=\"mod2\" type=\"text\" value=\"<a href="";
echo "http://".$_SERVER['SERVER_NAME'].str_replace('index.php','',$_SERVER['PHP_SELF']);
echo "">Link to your members area</a>\" size=\"140\" />"; ?>
<br />
if any visitor is not logged in they will be prompted to login/register.</p>
<fieldset class="ui-widget-content ui-corner-all" style="width:90%; padding-left:3%;">
<legend class="ui-widget-header ui-corner-all">Member details array:</legend>
<table width="840" border="0">
<tr>
<td width="355"><strong>Accessing members details is easy,<br />
this members:
</strong></td>
<td width="382"><strong>here is the HTML and PHP code used:</strong></td>
</tr>
<tr>
<td><blockquote><font color="#0000CC"><strong>id</strong>: <?php echo $_SESSION['member_details_array']['id']; ?><br />
<strong>name</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['name']); ?><br />
<strong>company name</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['companyname']); ?><br />
<strong>address</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['address']); ?><br />
<strong>postcode</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['postcode']); ?><br />
<strong>email</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['email']); ?><br />
<strong>tel</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['tel']); ?><br />
<strong>mobile</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['mobile']); ?><br />
<strong>their_username</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['their_username']); ?><br />
<strong>account expire date</strong>: <?php echo strftime("%d %b, %Y",$_SESSION['member_details_array']['expire_date']); ?></font></blockquote></td>
<td><textarea rows="14" cols="80"><strong>id</strong>: <?php echo $_SESSION['member_details_array']['id']; ?>
<strong>name</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['name']); ?>
<strong>company name</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['companyname']); ?>
<strong>address</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['address']); ?>
<strong>postcode</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['postcode']); ?>
<strong>email</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['email']); ?>
<strong>tel</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['tel']); ?>
<strong>mobile</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['mobile']); ?>
<strong>their_username</strong>: <?php echo reverse_clean($_SESSION['member_details_array']['their_username']); ?>
<strong>account expire date</strong>: <?php echo strftime("%d %b, %Y",$_SESSION['member_details_array']['expire_date']); ?>
</textarea></td>
</tr>
</table>
</fieldset>
</div>
</div>