mikaelweb |
01-27-2005 08:45 AM |
Quote:
Originally Posted by Colin F
That would have to do with the HTML code. Post the template you are using.
|
working more to this templates
HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="85%" valign="top"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">» <strong>Your Staff</strong></td>
</tr>
<tr>
<td class="alt1">
<div class="panel">
<fieldset class="fieldset">
<legend>Site Owners</legend>
<table width="548" border="0" cellpadding="0" cellspacing="$stylevar[formspacer]">
<tr>
<td><li></li>
<a href="http://www.coderslabz.com/forum/member.php?u=1">Mikaelweb</a>
(Site Owner)<br> <li></li>
<a href="http://www.coderslabz.com/forum/member.php?u=83">Peas</a>
(Site Owner)</td>
</tr>
</table>
</fieldset></if>
</div>
<br />
<div class="panel">
<fieldset class="fieldset">
<legend>Administrators</legend>
<table width="548" border="0" cellpadding="0" cellspacing="$stylevar[formspacer]">
<tr>
<td>
<li></li><a href="http://www.coderslabz.com/forum/member.php?u=51">Zanathel</a>
(Site Manager)</li>
<li></li><a href="http://www.coderslabz.com/forum/member.php?u=3">Rickeh</a>
(User Manager)</li>
</td>
</tr>
</table>
</fieldset></if>
</div>
<br />
<div class="panel">
<fieldset class="fieldset">
<legend>Senior Staff</legend>
<table width="548" border="0" cellpadding="0" cellspacing="$stylevar[formspacer]">
<tr>
<td><li></li>
<a href="http://www.coderslabz.com/forum/member.php?u=21">ArreliuS</a>
(coderslabz.com Web Site - Category) (Showroom - Forum)<br>
<li></li>
<a href="http://www.coderslabz.com/forum/member.php?u=68">Lizard</a>
(coderslabz.com Web Site - Category) (Art - Forum)</td>
</tr>
</table>
</fieldset></if>
</div></td>
</tr>
</table> </td>
</tr>
</table>
<br />
<div align="center" class="smallfont">Staff page Copyright ? 2004 - 2005, <a href="http://www.coderslabz.com">Coderslabz.com</a></div>
<br />
$footer
</body>
</html>
i have done this to includes/functions_online.php
PHP Code:
case 'staff.php':
$userinfo['activity'] = 'staff';
break;
and this
PHP Code:
case 'staff':
$userinfo['action'] = 'Viewing Staff Page';
$userinfo['where'] = "<a href=\"staff.php\">Viewing Staff Page</a>";
break;
but still need this login to work
How do i do if i want this to work whit staff page
PHP Code:
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'staff'); // change this depending on your filename
define('VBA_PORTAL', true);
// ============================================
// Enter the full path to your forum here
// Example: /home/yoursite/public_html/forum
// ============================================
chdir('/home/xxxxxx/public_html/forum');
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
'forum_staff',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
if ($bbuserinfo['userid'] == 0)
{
print_no_permission();
}
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
if (empty($_REQUEST['do']))
{
$_REQUEST['do'] = 'staff';
}
globalize($_REQUEST, array(
'find' => STR,
'threadid' => INT,
'usergroupid' => INT,
'moderatorid' => INT,
'userid' => INT,
'username' => STR
));
$user = $DB_site->query_first("
SELECT user.*, avatar.avatarpath, customavatar.dateline AS avatardateline,
NOT ISNULL(customavatar.avatardata) AS hascustomavatar, usertextfield.signature,
customprofilepic.userid AS profilepic, customprofilepic.dateline AS profilepicdateline, usergroup.adminpermissions
FROM " . TABLE_PREFIX . "user AS user
LEFT JOIN " . TABLE_PREFIX . "avatar AS avatar ON(avatar.avatarid = user.avatarid)
LEFT JOIN " . TABLE_PREFIX . "customavatar AS customavatar ON(customavatar.userid = user.userid)
LEFT JOIN " . TABLE_PREFIX . "usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
LEFT JOIN " . TABLE_PREFIX . "usergroup AS usergroup ON(usergroup.usergroupid = user.usergroupid)
WHERE user.userid = $userid
");
// #############################################################################
// draw navbar
$navbits = array();
$navbits[$parent] = 'Staff';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
// #############################################################################
// output page
eval('print_output("' . fetch_template('forum_staff') . '");');
|