Seite 1 von 1

Code-Frage zum Update 2.0.22

Verfasst: 24.12.2006 16:05
von seppi123
Hallo!

Ich wollte heute mein Forum per Code Change updaten. Bei der Textdatei
phpbb-2.0.21_to_2.0.22 steht bei groupcp.php folgendes:

Code: Alles auswählen

#-----[ OPEN ]--------------------------------------------- 
# 
groupcp.php

#
#-----[ FIND ]---------------------------------------------
# Line 150
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;

#
#-----[ AFTER, ADD ]---------------------------------------------
#
$start = ($start < 0) ? 0 : $start;

#
#-----[ 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
					)";

#
#-----[ REPLACE WITH ]---------------------------------------------
#
					)
				ORDER BY aa.auth_mod DESC";

Da steht 2 mal nacheinander Find und dann Replace with.
Welches muss ich dann ersetzen? Das erste "Find" oder das zweite?

Mfg,

Seppi123

Verfasst: 24.12.2006 16:09
von Boecki91
Wie meinst du das??

Du muzst BEIDES finden und ersetzen. Das Doppel Find gild nurdavür das man diese

)";

Genau finden kann.

denn von )";
gibt es mehrere. vorallem wenn Mods eingebeut sind ist das sehr hilfreich.

Verfasst: 24.12.2006 16:10
von Floydian
Das Zweite. Das steht übrigens in der Textdatei auch geschrieben.
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.
hth, Thomas

Verfasst: 24.12.2006 16:12
von seppi123
Danke,
sorry,
mein englisch ist eben misserabel ;)