vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Login problem non-vbpage (https://vborg.vbsupport.ru/showthread.php?t=75215)

mikaelweb 01-27-2005 08:04 AM

Login problem non-vbpage
 
Now if you are not loget in you can no see this page and you get login from but when you test to log in you get this
http://www.yoursite.com/login.php and i want it to go like this http://www.yoursite.com/forum/login.php how do this ?????

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';
}
// #############################################################################
// 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') . '");'); 


Colin F 01-27-2005 08:41 AM

That would have to do with the HTML code. Post the template you are using.

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">&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') . '");'); 



All times are GMT. The time now is 04:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01247 seconds
  • Memory Usage 1,793KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete