View Single Post
  #3  
Old 01-27-2005, 08:45 AM
mikaelweb's Avatar
mikaelweb mikaelweb is offline
 
Join Date: Feb 2003
Location: Sweden
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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">&raquo; <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') . '");'); 
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01268 seconds
  • Memory Usage 1,847KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete