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) ? 1 : 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?