1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-12 08:32:34 +01:00
php-e107/e107_themes/templates/user_template.php

212 lines
6.1 KiB
PHP
Raw Normal View History

2006-12-02 04:36:16 +00:00
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| <EFBFBD>Steve Dunstan 2001-2002
| http://e107.org
| jalist@e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_themes/templates/user_template.php,v $
| $Revision: 1.6 $
| $Date: 2008-11-21 16:40:48 $
| $Author: secretr $
2006-12-02 04:36:16 +00:00
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); }
global $user_shortcodes, $pref, $user;
2006-12-02 04:36:16 +00:00
//Set this to TRUE if you would like any extended user field that is empty to NOT be shown on the profile page
define("HIDE_EMPTY_FIELDS", FALSE);
$EXTENDED_CATEGORY_START = "<tr><td colspan='2' class='forumheader center'>{EXTENDED_NAME}</td></tr>";
2006-12-02 04:36:16 +00:00
$EXTENDED_CATEGORY_TABLE = "
<tr>
<td style='width:40%' class='forumheader3'>
{EXTENDED_ICON}&nbsp;
{EXTENDED_NAME}
</td>
<td style='width:60%' class='forumheader3'>{EXTENDED_VALUE}</td>
</tr>
";
$EXTENDED_CATEGORY_END = "";
/**
* Preparing for huge markup/css changes
*/
2006-12-02 04:36:16 +00:00
$USER_SHORT_TEMPLATE_START = "
<div class='content user-list'>
<div class='center'>".LAN_138." {TOTAL_USERS}
2006-12-02 04:36:16 +00:00
<br />
<br />
{USER_FORM_START}
<p>".LAN_419.": {USER_FORM_RECORDS} ".LAN_139." {USER_FORM_ORDER}
{USER_FORM_SUBMIT}
</p>
2008-01-06 21:26:32 +00:00
{USER_FORM_END}
2006-12-02 04:36:16 +00:00
</div>
<br />
<br />
<table style='".USER_WIDTH."' class='fborder e-list'>
<thead>
2006-12-02 04:36:16 +00:00
<tr>
<td class='fcaption' style='width:2%'>&nbsp;</td>
<td class='fcaption' style='width:20%'>".LAN_142."</td>
<td class='fcaption' style='width:20%'>".LAN_112."</td>
<td class='fcaption' style='width:20%'>".LAN_145."</td>
</tr>
</thead>
<tbody>
2006-12-02 04:36:16 +00:00
";
$USER_SHORT_TEMPLATE_END = "
</tbody>
2006-12-02 04:36:16 +00:00
</table>
</div>
2006-12-02 04:36:16 +00:00
";
$USER_SHORT_TEMPLATE = "
<tr>
<td class='forumheader3' style='width:2%'>{USER_ICON_LINK}</td>
<td class='forumheader3' style='width:20%'>{USER_ID}: {USER_NAME_LINK}</td>
2006-12-02 04:36:16 +00:00
<td class='forumheader3' style='width:20%'>{USER_EMAIL}</td>
<td class='forumheader3' style='width:20%'>{USER_JOIN}</td>
</tr>
";
$sc_style['USER_SIGNATURE']['pre'] = "<tr><td colspan='2' class='forumheader3 left'>";
2006-12-02 04:36:16 +00:00
$sc_style['USER_SIGNATURE']['post'] = "</td></tr>";
$sc_style['USER_COMMENTS_LINK']['pre'] = "<tr><td colspan='2' class='forumheader3 left'>";
2006-12-02 04:36:16 +00:00
$sc_style['USER_COMMENTS_LINK']['post'] = "</td></tr>";
$sc_style['USER_FORUM_LINK']['pre'] = "<tr><td colspan='2' class='forumheader3 left'>";
2006-12-02 04:36:16 +00:00
$sc_style['USER_FORUM_LINK']['post'] = "</td></tr>";
$sc_style['USER_UPDATE_LINK']['pre'] = "<tr><td colspan='2' class='forumheader3 center'>";
2006-12-02 04:36:16 +00:00
$sc_style['USER_UPDATE_LINK']['post'] = "</td></tr>";
$sc_style['USER_RATING']['pre'] = "<tr><td colspan='2' class='forumheader3'><div class='f-left'>".LAN_406."</div><div class='f-right'>";
$sc_style['USER_RATING']['post'] = "</div></td></tr>";
2006-12-02 04:36:16 +00:00
$sc_style['USER_LOGINNAME']['pre'] = " : ";
if(isset($pref['photo_upload']) && $pref['photo_upload'])
{
$user_picture = "{USER_PICTURE}";
$colspan = " colspan='2'";
$main_colspan = "";
}
else
{
$user_picture = "";
$colspan = "";
$main_colspan = " colspan = '2' ";
}
$sc_style['USER_SENDPM']['pre'] = "<tr><td colspan='2' class='forumheader3'><div class='f-left'>";
$sc_style['USER_SENDPM']['post'] = "</div><div class='f-right'>".LAN_425."</div></td></tr>";
2006-12-02 04:36:16 +00:00
// Determine which other bits are installed; let photo span those rows (can't do signature - will vary with user)
$span = 4;
if ($tp->parseTemplate("{USER_SENDPM}", FALSE, $user_shortcodes)) $span++;
$span = " rowspan='".$span."' ";
2006-12-02 04:36:16 +00:00
$sc_style['USER_PICTURE']['pre']="<td {$span} class='forumheader3 center middle' style='width:20%'>";
2006-12-02 04:36:16 +00:00
$sc_style['USER_PICTURE']['post']="</td>";
$USER_FULL_TEMPLATE = "
<div class='content user'>
2006-12-02 04:36:16 +00:00
<table style='".USER_WIDTH."' class='fborder'>
<tr>
<td colspan='2' class='fcaption center'>".LAN_142." {USER_ID} : {USER_NAME}{USER_LOGINNAME}</td>
2006-12-02 04:36:16 +00:00
</tr>
<tr>
{$user_picture}
<td {$main_colspan} class='forumheader3'>
<div class='f-left'>{USER_REALNAME_ICON} ".LAN_308."</div>
<div class='f-right right'>{USER_REALNAME}</div>
2006-12-02 04:36:16 +00:00
</td>
</tr>
<tr>
<td {$main_colspan} class='forumheader3'>
<div class='f-left'>{USER_EMAIL_ICON} ".LAN_112."</div>
<div class='f-right right'>{USER_EMAIL_LINK}</div>
2006-12-02 04:36:16 +00:00
</td>
</tr>
<tr>
<td {$main_colspan} class='forumheader3'>
<div class='f-left'>".LAN_406.":</div>
<div class='f-right right'>{USER_LEVEL}</div>
2006-12-02 04:36:16 +00:00
</td>
</tr>
<tr>
<td {$main_colspan} class='forumheader3'>
<div class='f-left'>".LAN_404.":&nbsp;&nbsp;</div>
<div class='f-right right'>{USER_LASTVISIT}<br />{USER_LASTVISIT_LAPSE}</div>
2006-12-02 04:36:16 +00:00
</td>
</tr>
{USER_SENDPM}
2006-12-02 04:36:16 +00:00
{USER_RATING}
{USER_SIGNATURE}
{USER_EXTENDED_ALL}
<tr>
<td colspan='2' class='forumheader'>".LAN_403."</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".LAN_145."</td>
<td style='width:70%' class='forumheader3'>{USER_JOIN}<br />{USER_DAYSREGGED}</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".LAN_147."</td>
<td style='width:70%' class='forumheader3'>{USER_CHATPOSTS} ( {USER_CHATPER}% )</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".LAN_148."</td>
<td style='width:70%' class='forumheader3'>{USER_COMMENTPOSTS} ( {USER_COMMENTPER}% )</td>
</tr>
{USER_COMMENTS_LINK}
<tr>
<td style='width:30%' class='forumheader3'>".LAN_149."</td>
<td style='width:70%' class='forumheader3'>{USER_FORUMPOSTS} ( {USER_FORUMPER}% )</td>
</tr>
{USER_FORUM_LINK}
<tr>
<td style='width:30%' class='forumheader3'>".LAN_146."</td>
<td style='width:70%' class='forumheader3'>{USER_VISITS}</td>
</tr>
{USER_EMBED_USERPROFILE}
2006-12-02 04:36:16 +00:00
{USER_UPDATE_LINK}
<tr>
<td colspan='2' class='forumheader3 center'>
2006-12-02 04:36:16 +00:00
<table style='width:95%'>
<tr>
<td style='width:50%'>{USER_JUMP_LINK=prev}</td>
<td class='right' style='width:50%;'>{USER_JUMP_LINK=next}</td>
2006-12-02 04:36:16 +00:00
</tr>
</table>
</td>
</tr>
</table></div>
{PROFILE_COMMENTS}
{PROFILE_COMMENT_FORM}
";
$USER_EMBED_USERPROFILE_TEMPLATE = "
<tr><td colspan='2' class='fcaption'>{USER_EMBED_USERPROFILE_CAPTION}</td></tr>
<tr><td colspan='2' class='forumheader3'>{USER_EMBED_USERPROFILE_TEXT}</td></tr>";
2006-12-02 04:36:16 +00:00
?>