Seite 1 von 1
Fehler beim betreten des Portals
Verfasst: 06.01.2005 16:48
von DreamPromise
Moin Mooin
Wie bekomme ich diese Meldung weg ??
LAST VISIT MOD: Couldn't retrieve user today data
DEBUG MODE
SQL Error : 1054 Unknown column 'user_lastlogon' in 'field list'
SELECT user_id,username,user_allow_viewonline,user_level,user_lastlogon FROM forum_users WHERE user_id!="-1" AND user_session_time >= 1104966000 AND user_session_time< 1105052399 ORDER BY username
Line : 658
File : /www/htdocs/leisten/portal.php
Danke schon mal
DP
Verfasst: 06.01.2005 16:53
von DreamPromise
Moin Moin
Ich hab die Datenbank mal mit der mitgelieferten Datei upgedatet.
Code: Alles auswählen
<?
#########################################################
## SQL commands to phpBB2
## Author: Niels Chr. Rød
## Nickname: Niels Chr. Denmark
## Email: ncr@db9.dk
##
## Ver 1.0.8
##
## phpBB2 database update script for mods
## this file is intended to use with phpBB2, when installing mods
## after so you may delete this file, but only admin can use so it really doesen't matter
## The script will look what prefix you are using, and use the existing DB defined by congig.php
## The execution of this script's included SQL is harmless, so you can run it as meny times you like
## note, though that the users last visit, will be set back to his/her last login,
## but that is a minor cosmetic isue, that will correct it self next time the use logs in
##
## the following example are from my mods, and you can add some self, for other mods if you like
## you will after execution get a list over those commands that are run with succes and those with warnings !
## delete the sample lines if you are using it only for other mods
##
#########################################################
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
###################################################################################################
##
## put the SQL commands below here, the SQL commands listed below are only exampels, substitude them with the one you need ##
##
###################################################################################################
$sql=array(
'ALTER TABLE '.USERS_TABLE.' ADD user_lastlogon INT (11) DEFAULT "0" not null',
'UPDATE '.USERS_TABLE.' SET user_lastlogon=user_lastvisit WHERE user_lastlogon="0"',
'INSERT INTO '.CONFIG_TABLE.' (config_name, config_value) VALUES ("hidde_last_logon", "0")',
'ALTER TABLE ' . USERS_TABLE .' ADD user_totaltime INT (11) DEFAULT "0"',
'ALTER TABLE ' . USERS_TABLE .' ADD user_totallogon INT (11) DEFAULT "0"',
'ALTER TABLE ' . USERS_TABLE .' ADD user_totalpages INT (11) DEFAULT "0"',
'UPDATE '. USERS_TABLE .' SET user_totaltime=(user_session_time-user_lastlogon) WHERE user_totaltime="0" AND user_lastlogon>0',
'UPDATE '. USERS_TABLE .' SET user_totallogon=1 WHERE user_totallogon="0" AND user_session_time<>"0"'
);
$mods = array (
'Last Visit PART 1 Mod','Last Visit PART 1 Mod','Last Visit PART 2 Mod','Last Visit PART 4 Mod','Last Visit PART 4 Mod','Last Visit PART 4 Mod','Last Visit PART 4 Mod','Last Visit PART 4 Mod'
);
############################################### Do not change anything below this line #######################################
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
if ($userdata['user_level']!=ADMIN)
message_die(GENERAL_ERROR, "You are not Authorised to do this");
$n=0;
$message="<b>This list is a result of the SQL queries needed for MOD</b><br/><br/>";
while($sql[$n])
{
$message .= ($mods[$n-1] != $mods[$n]) ? '<p><b><font size=3>'.$mods[$n].'</font></b><br/>' : '';
if(!$result = $db->sql_query($sql[$n]))
$message .= '<b><font color=#FF0000>[Already added]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />';
else $message .='<b><font color=#0000fF>[Added/Updated]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />';
$n++;
}
message_die(GENERAL_MESSAGE, $message);
?>
Aber nun kommt:
Warning: main(./chatbox_front.php) [function.main]: failed to create stream: No such file or directory in /www/htdocs/leisten/portal.php on line 715
Verfasst: 06.01.2005 18:05
von Andy120
hi...
Der Fehler sagt dir, das eine Datei fehlt. (chatbox_front.php)
Gruss, Andy
Verfasst: 06.01.2005 18:50
von DreamPromise
Moin Moin
In der Anleitung steht aber nichts davon das die mit kopiert werden muß.
Code: Alles auswählen
##############################################################
## MOD Title: Last Visit
## MOD Author: Niels < ncr@db9.dk > (Niels Chr. Rød) http://mods.db9.dk
## MOD Description: This mod will register when the user last
## logged in, allong with the info about how
## many users have visited the board.
##
## MOD Version: 1.2.7.
## Compatibility: 2.0.5-2.0.6
##
## Installation Level: Moderate
## Installation Time: 25 minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit: 14
## index.php
## search.php
## memberlist.php
## admin/admin_board.php
## includes/functions.php
## includes/page_header.php
## includes/sessions.php
## includes/usercp_viewprofile.php
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## templates/subSilver/index_body.tpl
## templates/subSilver/member_body.tpl
## templates/subSilver/profile_view_body.tpl
## templates/subSilver/admin/board_config_body.tpl
##
## Included Files: 0
##
##############################################################
chatbox_front.php ...woher bekomm ich die denn?
In dem zip-File war sie nicht mit bei
DP
Verfasst: 06.01.2005 19:19
von Andy120
Hast du mal so ein Chat installiert?
Verfasst: 06.01.2005 20:10
von DreamPromise
Nicht das ich wüßte
DP