View Single Post
  #183  
Old 10-13-2004, 05:22 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by defi
The templates were fine; Exactly as you said. This problem is still occuring... Any other ideas?
It seems like the value in page_header.php doesnt read properly

if ($user_info['user_level'] >= USER) doesnt return TRUE even when you logged in.

Check:

- constants.php

// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);


-sessions.php

$user_table_fields = array(
"user_id" => "userid",
"user_level" => "usergroupid",
"user_name" => "username",
"user_password" => "password",
"user_email" => "email",
"user_showemail" => "",
"user_allowemails" => "",
"user_invisible" => "",
"user_joindate" => "joindate",
"user_activationkey" => "",
"user_lastaction" => "lastactivity",
"user_location" => "",
"user_lastvisit" => "lastvisit",
"user_comments" => "",
"user_homepage" => "homepage",
"user_icq" => "icq"

make sure you have correct user_level
If you dont use forum's groupid, make sure that the field is filled with "user#" value


check includes/page_header.php
this should be default, but still chec, just incase
PHP Code:
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
if ($user_info['user_level'] >= USER) {
  
$site_template->register_vars("lang_loggedin_msg"preg_replace("/".$site_template->start."loggedin_user_name".$site_template->end."/siU"$user_info['user_name'], $lang['lang_loggedin_msg']));
  
$user_box $site_template->parse_template("user_logininfo");
  
$myuserid $user_info['user_id'];
  
$site_template->register_vars(array(
    
"user_box" => $user_box,
    
"myuserid" => $myuserid,
    
"user_loggedin" => 1,
    
"user_loggedout" => 0,
    
"is_admin" => ($user_info['user_level'] == ADMIN) ? 0
  
));
  
$site_template->un_register_vars("user_logininfo");
  unset(
$user_box);
}
else {
  
$user_box $site_template->parse_template("user_loginform");
  
$site_template->register_vars(array(
    
"user_box" => $user_box,
    
"user_loggedin" => 0,
    
"user_loggedout" => 1,
    
"is_admin" => 0
  
));
  
$site_template->un_register_vars("user_loginform");
  unset(
$user_box);


let me know how you come up with..


Quote:
What does this mean in the installation instructions

2. 4images tables and vbulletin tables have to be in the same database.

Does this mean we have to combine or tell 4images to use the vbulletin mysql database? If so, how?
this mean both of them use the same database (supposed 4images has a different prefix)

if you dont have any table with the same name, then you can just dump one database and restore into the other, using phpMyAdmin maybe?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01538 seconds
  • Memory Usage 1,793KB
  • 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_php
  • (2)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