Seite 1 von 2

Update von phpBB 2.0.21 zu phpBB 2.0.22

Verfasst: 24.12.2006 18:48
von DunShit
Guten Abend, und Frohes Fest

Ich habe die PhpBB2 Version phpBB 2.0.21 und zudem noch ctracker von http://www.cback.de installiert.

Jetzt möchte ich gerne mein forum updaten.

Leider gibts das Update nur auf der Americanischen seite www.phpbb.com. Ist mein Forum auf englisch wenn ich update? :oops:

Und wenn nein, könnt ihr mir beschreiben wie genau ich update? ins kleinste detail? Weil ich kenne mich mit dem forum überhaupt garnicht aus :oops: ..! :(

Danke schonmal, und viel spaß beim geschenke auspacken *gg*

Verfasst: 24.12.2006 18:51
von Michael Zacher
Hi,

einfach das hier downloaden und Dich an die Anweisungen halten.
Dein Board/Forum ist dann aber nicht Englisch, keine Angst. :)

Frohes Fest.

Verfasst: 24.12.2006 18:53
von dslmonster
HAllo SunShit,

Dir auch ein frohes Fest.
Nein wenn du dein Forum von der 2.0.21 auf die 2.0.22 updatest wird dein Forum nicht englich sein. Da nur *ein*satz in die Lang datei gepackt werden muß.

Wie du das Update durchzuführen hast, steht in der dabei gepackten install anleitung.

Sollte dir das nix sagen schaue mal hier nach:
http://www.phpbb.de/doku/kb/artikel.php ... Mod+einbau

oder verwende doch einfach die boardsuche ...

gruß
dslmonster

frohes fest noch

Verfasst: 24.12.2006 19:03
von DunShit
hi ;)

Danke erstmal für die sehr schnellen antworten!

Habe einfach mal die install/update_to_latest.php hochgeladen und ausgeführt.
Information

Database type :: mysql
Previous version :: 2.0.21
Updated version :: 2.0.22
Updating database schema

Progress :: . Done
Result :: No errors
Updating data

Progress :: No updates were required
Updating version and optimizing tables

Progress :: . . Done
Result :: No errors
Update completed

Please make sure you have updated your board files too, this file is only updating your database.

You should now visit the General Configuration settings page in the Administration Panel and check the General Configuration of the board. If you updated from versions prior to RC-3 you must update some entries. If you do not do this emails sent from the board will contain incorrect information. Don't forget to delete this file!
So, scheint auch so zu funktionieren?

Im Forum jedenfalls steht
Versions-Information

Dein Forum ist auf dem neuesten Stand; es sind keine Updates für deine phpBB-Version verfügbar.
Ist es nun auf den neusten stant?

Mfg

Dieter

Verfasst: 24.12.2006 19:06
von Michael Zacher
Nein, Du musst noch die Änderungen an den Dateien machen.
Zu finden sind diese in der beiliegenden Textdatei.

Verfasst: 24.12.2006 19:16
von DunShit
Danke ;)
zitat
#-----[ FIND ]---------------------------------------------
# Line 55
// Attempt to prevent a common mistake with this value,
// http:// is the protocol and not part of the server name
if ($config_name == 'server_name')
{
$new['server_name'] = str_replace('http://', '', $new['server_name']);
}

#
#-----[ AFTER, ADD ]---------------------------------------------
#
// Attempt to prevent a mistake with this value.
if ($config_name == 'avatar_path')
{
$new['avatar_path'] = trim($new['avatar_path']);
if (strstr($new['avatar_path'], "\0") || !is_dir($phpbb_root_path . $new['avatar_path']) || !is_writable($phpbb_root_path . $new['avatar_path']))
{
$new['avatar_path'] = $default_config['avatar_path'];
}
}
Ist das jetzt richtig?
$sql = "SELECT *
FROM " . CONFIG_TABLE;
if(!$result = $db->sql_query($sql))
{
message_die(CRITICAL_ERROR, "Could not query config information in admin_board", "", __LINE__, __FILE__, $sql);
}
else
{
while( $row = $db->sql_fetchrow($result) )
{
$config_name = $row['config_name'];
$config_value = $row['config_value'];
$default_config[$config_name] = isset($HTTP_POST_VARS['submit']) ? str_replace("'", "\'", $config_value) : $config_value;

$new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name];

if ($config_name == 'cookie_name')
{
$new['cookie_name'] = str_replace('.', '_', $new['cookie_name']);
}

// Attempt to prevent a common mistake with this value,
// http:// is the protocol and not part of the server name
if ($config_name == 'server_name')
{
$new['server_name'] = str_replace('http://', '', $new['server_name']);
}
// Attempt to prevent a mistake with this value.
if ($config_name == 'avatar_path')
{
$new['avatar_path'] = trim($new['avatar_path']);
if (strstr($new['avatar_path'], "\0") || !is_dir($phpbb_root_path . $new['avatar_path']) || !is_writable($phpbb_root_path . $new['avatar_path']))
{
$new['avatar_path'] = $default_config['avatar_path'];
}
}



if( isset($HTTP_POST_VARS['submit']) )
{
$sql = "UPDATE " . CONFIG_TABLE . " SET
config_value = '" . str_replace("\'", "''", $new[$config_name]) . "'
WHERE config_name = '$config_name'";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Failed to update general configuration for $config_name", "", __LINE__, __FILE__, $sql);
}
}
}

if( isset($HTTP_POST_VARS['submit']) )
{
$message = $lang['Config_updated'] . "<br /><br />" . sprintf($lang['Click_return_config'], "<a href=\"" . append_sid("admin_board.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");

message_die(GENERAL_MESSAGE, $message);
}
Funktionieren tut die datei aufjedenfall noch *gg*

habe es einfach hinzugefügt, nach der letzten zeile vom FIND
hoffe das ist richtig :D

Dieter

Verfasst: 24.12.2006 19:18
von Michael Zacher
Bitte.
Ja, das ist richtig.
du willst jetzt aber nicht nach jeder bearbeiteten Datei fragen oder?
Probier es einfach.
Du hast Dich ja bestimmt an den Rat der Installationsanleitung gehalten und vorher Sicherheitskopien gemacht. :)

Verfasst: 24.12.2006 19:20
von DunShit
*lach*

Nein, möchte nicht nach jeder datei nachfragen *gg* ..

Wollte nur auf nummer sicher gehen. und nen update habe ich auch gemacht, ja! :D

Edit:

zitat von der update txt datei
#
#-----[ FIND ]---------------------------------------------
# Line 417
AND NOT EXISTS (
SELECT aa.group_id
FROM " . AUTH_ACCESS_TABLE . " aa
WHERE aa.group_id = g.group_id
)

#
#-----[ FIND ]---------------------------------------------
# Line 422
)";
Wenn ich die erste FIND gefunden habe, was muss ichd amit machen? Weil direkt danach wieder eine FIND steht??!


Dieter[/quote]

Frage

Verfasst: 24.12.2006 20:00
von gloriosa
Hallo,
die allgemeingültige Anleitung >>> KB:18 <<<, die auch beim Einarbeiten der Code Changes gilt, kennst Du schon ? :o

Verfasst: 24.12.2006 23:50
von roger
Im Vorspann zu den Code Changes steht Folgendes:
## When you find more than one 'FIND'-Statement it just means that you go down the
## code within the order of the 'FIND'-Statements, if you found the lines for the
## first 'FIND'-Statement, you continue to search the lines for the second
## 'FIND'-Statement. The last 'FIND'-Statement includes the codeblock to work
## with.

roger