frage zu 4 stellen
Verfasst: 05.11.2005 12:15
hallo,
habe eine frage zu 4 konkreten stellen :
posting.php
1. stelle
die frage :
also so ? :
admin/index.php
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
nur zur sicherheit, ist es so richtig ? :
templates/subSilver/admin/board_config_body.tpl
vielen dank fürs durchsehen + viele grüße, yks
habe eine frage zu 4 konkreten stellen :
posting.php
1. stelle
da der code bei mir so aussieht :#-----[ FIND ]---------------------------------------------
#
$refresh = $preview ||
#
#-----[ AFTER, ADD ]---------------------------------------------
#
$orig_word = $replacement_word = array();
Code: Alles auswählen
$refresh = $preview || $poll_add || $poll_edit || $poll_delete;
2. stelleob so (weil mit AFTER,ADD normalerweise eine neue zeile gemeint ist) :
oder so :Code: Alles auswählen
$refresh = $preview || $orig_word = $replacement_word = array(); $poll_add || $poll_edit || $poll_delete;
Code: Alles auswählen
$refresh = $preview || $orig_word = $replacement_word = array(); $poll_add || $poll_edit || $poll_delete;
mein code ist (wie die originalzeile) :#-----[ 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'];
Code: Alles auswählen
$user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';
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'];
ich kann beide stellen nicht finden, auch nicht wenn ich nur nach teilstücken suche.#-----[ 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>';
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
etwas irritierend, warum man nach {S_SORT_OPTIONS} suchen sollte. fehlte etwas (zb ein ADD oder REPLACE) ?#-----[ 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> </td>
#
{S_SORT_OPTIONS}
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
checked />
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
checked="checked" />
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> </td>
da die 3 stellen im text verteilt sind, ist es nur wichtig, daß der code nach allen dreien, somit also nach dem </tr> steht ?#-----[ 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} <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} <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>
vielen dank fürs durchsehen + viele grüße, yks