Seite 1 von 1

frage zu 4 stellen

Verfasst: 05.11.2005 12:15
von yks
hallo,

habe eine frage zu 4 konkreten stellen :

posting.php

1. stelle
#-----[ FIND ]---------------------------------------------
#
$refresh = $preview ||

#
#-----[ AFTER, ADD ]---------------------------------------------
#
$orig_word = $replacement_word = array();
da der code bei mir so aussieht :

Code: Alles auswählen

$refresh = $preview || $poll_add || $poll_edit || $poll_delete;
die frage :
ob so (weil mit AFTER,ADD normalerweise eine neue zeile gemeint ist) :

Code: Alles auswählen

$refresh = $preview || 
$orig_word = $replacement_word = array();
$poll_add || $poll_edit || $poll_delete;
oder so :

Code: Alles auswählen

$refresh = $preview || $orig_word = $replacement_word = array(); $poll_add || $poll_edit || $poll_delete;
2. stelle
#-----[ FIND ]---------------------------------------------
# NOTE --- This is a partial match, the whole line on a fresh installation looks like this:
# $user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';
#
$user_sig = ( $post_info['user_sig'] != ''

#
#-----[ AFTER, ADD ]---------------------------------------------
#
$userdata['user_sig_bbcode_uid'] = $post_info['user_sig_bbcode_uid'];
mein code ist (wie die originalzeile) :

Code: Alles auswählen

$user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';
also so ? :

Code: Alles auswählen

$user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';
$userdata['user_sig_bbcode_uid'] = $post_info['user_sig_bbcode_uid'];
admin/index.php
#-----[ FIND ]---------------------------------------------
#
if ($fsock = @fsockopen('www.phpbb.com', 80, $errno, $errstr))

#
#-----[ REPLACE WITH ]---------------------------------------------
#
if ($fsock = @fsockopen('www.phpbb.com', 80, $errno, $errstr, 10))

#
#-----[ FIND ]---------------------------------------------
#
$version_info .= '<br />' . sprintf($lang['Latest_version_info'], $latest_version) . sprintf($lang['Current_version_info'], '2' . $board_config['version']) . '</p>';

#
#-----[ REPLACE WITH ]---------------------------------------------
#
$version_info .= '<br />' . sprintf($lang['Latest_version_info'], $latest_version) . ' ' . sprintf($lang['Current_version_info'], '2' . $board_config['version']) . '</p>';
ich kann beide stellen nicht finden, auch nicht wenn ich nur nach teilstücken suche.
hat es evtl etwas damit zu tun, daß ich diesen automatischen abgleich beim aufrufen der seite, ob ich die aktuellste version benutze (plus gegebenenfalls einer benachrichtigung), nicht eingebaut habe ?


templates/subSilver/search_body.tpl
#-----[ FIND ]---------------------------------------------
# NOTE --- This is a partial match, the whole line on a fresh subSilver template looks like this:
# <td class="row2" valign="middle" nowrap="nowrap"><span class="genmed"><select class="post" name="sort_by">{S_SORT_OPTIONS}</select><br /><input type="radio" name="sort_dir" value="ASC" /> {L_SORT_ASCENDING}<br /><input type="radio" name="sort_dir" value="DESC" checked /> {L_SORT_DESCENDING}</span>&nbsp;</td>
#
{S_SORT_OPTIONS}

#
#-----[ IN-LINE FIND ]---------------------------------------------
#
checked />

#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
checked="checked" />
etwas irritierend, warum man nach {S_SORT_OPTIONS} suchen sollte. fehlte etwas (zb ein ADD oder REPLACE) ?
nur zur sicherheit, ist es so richtig ? :

Code: Alles auswählen

<td class="row2" valign="middle" nowrap="nowrap"><span class="genmed"><select class="post" name="sort_by">{S_SORT_OPTIONS}</select><br /><input type="radio" name="sort_dir" value="ASC" /> {L_SORT_ASCENDING}<br /><input type="radio" name="sort_dir" value="DESC" checked="checked" /> {L_SORT_DESCENDING}</span>&nbsp;</td>
templates/subSilver/admin/board_config_body.tpl
#-----[ FIND ]---------------------------------------------
# NOTE --- This is a partial match, the whole lines on a fresh subSilver template look like this:
# <td class="row1">{L_VISUAL_CONFIRM}<br /><span class="gensmall">{L_VISUAL_CONFIRM_EXPLAIN}</span></td>
# <td class="row2"><input type="radio" name="enable_confirm" value="1" {CONFIRM_ENABLE} />{L_YES}&nbsp; &nbsp;<input type="radio" name="enable_confirm" value="0" {CONFIRM_DISABLE} />{L_NO}</td>
# </tr>
#
{L_VISUAL_CONFIRM_EXPLAIN}
{CONFIRM_ENABLE}
</tr>

#
#-----[ AFTER, ADD ]---------------------------------------------
#
<tr>
<td class="row1">{L_ALLOW_AUTOLOGIN}<br /><span class="gensmall">{L_ALLOW_AUTOLOGIN_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="allow_autologin" value="1" {ALLOW_AUTOLOGIN_YES} />{L_YES}&nbsp; &nbsp;<input type="radio" name="allow_autologin" value="0" {ALLOW_AUTOLOGIN_NO} />{L_NO}</td>
</tr>
<tr>
<td class="row1">{L_AUTOLOGIN_TIME} <br /><span class="gensmall">{L_AUTOLOGIN_TIME_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="3" maxlength="4" name="max_autologin_time" value="{AUTOLOGIN_TIME}" /></td>
</tr>
da die 3 stellen im text verteilt sind, ist es nur wichtig, daß der code nach allen dreien, somit also nach dem </tr> steht ?

vielen dank fürs durchsehen + viele grüße, yks

Verfasst: 05.11.2005 12:50
von punkface
Hallo

1. Nein, so:

Code: Alles auswählen

$refresh = $preview || $poll_add || $poll_edit || $poll_delete;
$orig_word = $replacement_word = array();

2. Jep..

Code: Alles auswählen

		$user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';
		$userdata['user_sig_bbcode_uid'] = $post_info['user_sig_bbcode_uid'];
3. Ja

4. Zur search_body.tpl
Ist doch ganz einfach: Du sollst als erstes mal nach

Code: Alles auswählen

{S_SORT_OPTIONS}
suchen ([ FIND ]). In der gleichen Zeile steht dann noch

Code: Alles auswählen

checked />
([ IN-LINE FIND ]), was du mit

Code: Alles auswählen

checked="checked" />
ersetzten sollst ([ IN-LINE REPLACE WITH ]).
bzw: Ja, ist richtig so ;)

5. Zur board_config_body.tpl
Jep, richtig

Verfasst: 05.11.2005 13:01
von yks
vielen dank für deine mühe punkface :))
*strahl und mich freu*
nun mal hoffen und gespannt bin... :)