Seite 1 von 1

Prob mit Forum Random Advertising Banner MOD

Verfasst: 06.01.2006 12:26
von Tasso
Hallo,
ich wollte mir o.g. MOD einbauen, was aber nicht ganz so einfach scheint. Das ist das Code-Stück

Code: Alles auswählen

<?php
define('IN_PHPBB', 1);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);


// Start session management
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
// End session management
und ich bekomme die Meldung

Code: Alles auswählen

Parse error: parse error, unexpected T_VARIABLE in /home/virtual/site16/fst/var/www/html/phpBB2/db_update_admin_banners.php on line 13
Hat vllt. jemand eine Idee, woran es liegen könnte? Ich danke im Voraus.

Verfasst: 06.01.2006 12:45
von kjwargan
Ersetze

Code: Alles auswählen

<?php
define('IN_PHPBB', 1);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);


// Start session management
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
// End session management 
mit

Code: Alles auswählen

<?php
define('IN_PHPBB', 1);
$phpbb_root_path = './';
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'config.'.$phpEx);
include_once($phpbb_root_path . 'common.'.$phpEx);
include_once($phpbb_root_path . 'includes/constants.'.$phpEx);
include_once($phpbb_root_path . 'includes/db.'.$phpEx);


// Start session management
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
// End session management 

Verfasst: 06.01.2006 12:51
von Tasso
Die Fehlermeldung bleibt immer noch die gleiche :(

Verfasst: 06.01.2006 13:11
von kjwargan
Das hast du ausgeführt?

Code: Alles auswählen

FÜHRE DIE db_update_admin_banners.php AUS DEM FORUMROOT NACH DER INSTALLATION AUS UND LÖSCHE SIE DANACH WIEDER AUS DEM FORUMROOT 

Verfasst: 06.01.2006 14:33
von Tasso
Ich hab´s hinbekommen, danke.