Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 01-27-2005, 08:04 AM
mikaelweb's Avatar
mikaelweb mikaelweb is offline
 
Join Date: Feb 2003
Location: Sweden
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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') . '");'); 
Reply With Quote
  #2  
Old 01-27-2005, 08:41 AM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would have to do with the HTML code. Post the template you are using.
Reply With Quote
  #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
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03886 seconds
  • Memory Usage 2,240KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete