update 2.0.17 auf 2.0.18
Verfasst: 04.02.2006 15:48
Hallöchen!
Ich habe manuell oben genanntes update gemacht, und es funktioniert auch alles.
Nur einiges konnte ich nicht ändern, da ich wohl den Categories Hierarchy (von Ptirhiik, 2.1.1) drauf hab und bevor ich jetzt das Board-update auf 2.0.19 mache, wollte ich Fragen, ob das so auch okay ist, wenn ich folgendes nicht machen konnte:
Vielleicht könnt ihr ja mal nen Blick drüber werfen....
findet er nicht:
dieser Teil befindet sich im deaktivierten Bereich (also deaktiviert, damit meine ich, dass es nur noch als Kommentar mit // dasteht, naja, ihr wisst schon
:

Ganz lieben Dank für eure Mühe!
Achja, der Link zum Forum: http://anylein.an.funpic.de/phpBB2/
Ich habe manuell oben genanntes update gemacht, und es funktioniert auch alles.
Nur einiges konnte ich nicht ändern, da ich wohl den Categories Hierarchy (von Ptirhiik, 2.1.1) drauf hab und bevor ich jetzt das Board-update auf 2.0.19 mache, wollte ich Fragen, ob das so auch okay ist, wenn ich folgendes nicht machen konnte:
Vielleicht könnt ihr ja mal nen Blick drüber werfen....
findet er nicht:
#
#-----[ OPEN ]---------------------------------------------
#
index.php
#
#-----[ FIND ]---------------------------------------------
# NOTE --- There's no explicit action to take place here. This FIND is just aimed to point you to the right place the next action.
#
//
// Obtain a list of topic ids which contain
// posts made since user last visited
//
#
#-----[ FIND ]---------------------------------------------
#
if ( $userdata['session_logged_in'] )
{
#
#-----[ REPLACE WITH ]---------------------------------------------
#
if ($userdata['session_logged_in'])
{
// 60 days limit
if ($userdata['user_lastvisit'] < (time() - 5184000))
{
$userdata['user_lastvisit'] = time() - 5184000;
}
privmsg.php hat geschrieben:#
#-----[ FIND ]---------------------------------------------
#
$privmsg_subject = $privmsg_message = '';
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$privmsg_subject = $privmsg_message = $to_username = '';
dieser Teil befindet sich im deaktivierten Bereich (also deaktiviert, damit meine ich, dass es nur noch als Kommentar mit // dasteht, naja, ihr wisst schon

viewtopic.php
ist deaktiviert:
#
#-----[ FIND ]---------------------------------------------
#
$redirect = ( isset($post_id) ) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id";
$redirect .= ( isset($start) ) ? "&start=$start" : '';
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$redirect = ($post_id) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id";
$redirect .= ($start) ? "&start=$start" : '';
das hier ebenfalls nicht aktiv hat geschrieben:#-----[ OPEN ]---------------------------------------------
#
admin/admin_ug_auth.php
#
#-----[ FIND ]---------------------------------------------
#
$sql = "SELECT *
FROM " . FORUMS_TABLE . " f
ORDER BY forum_order";
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$sql = 'SELECT f.*
FROM ' . FORUMS_TABLE . ' f, ' . CATEGORIES_TABLE . ' c
WHERE f.cat_id = c.cat_id
ORDER BY c.cat_order, f.forum_order';
#
#-----[ FIND ]---------------------------------------------
#
if( count($name) )
{
$t_usergroup_list = $t_pending_list = '';
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$t_usergroup_list = $t_pending_list = '';
if( count($name) )
{
#
#-----[ FIND ]---------------------------------------------
#
else
{
$t_usergroup_list = $lang['None'];
}
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$t_usergroup_list = ($t_usergroup_list == '') ? $lang['None'] : $t_usergroup_list;
$t_pending_list = ($t_pending_list == '') ? $lang['None'] : $t_pending_list;
auch deaktiviert hat geschrieben: #-----[ OPEN ]---------------------------------------------
#
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>';
deaktiviert in bbcode.php
#
#-----[ FIND ]---------------------------------------------
#
$orig[] = "/(?<=.\W|\W.|^\W)" . phpbb_preg_quote($smilies[$i]['code'], "/") . "(?=.\W|\W.|\W$)/";
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$orig[] = "/(?<=.\W|\W.|^\W)" . preg_quote($smilies[$i]['code'], "/") . "(?=.\W|\W.|\W$)/";
deaktiviert functions.php
#
#-----[ FIND ]---------------------------------------------
#
$orig_word[] = '#\b(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')\b#i';
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$orig_word[] = '#\b(' . str_replace('\*', '\w*?', preg_quote($row['word'], '#')) . ')\b#i';
und das letzte findet er gar nicht:auch deaktiviert
#
#-----[ OPEN ]---------------------------------------------
#
includes/functions_admin.php
#
#-----[ FIND ]---------------------------------------------
#
$sql = "SELECT forum_id, forum_name
FROM " . FORUMS_TABLE . "
ORDER BY cat_id, forum_order";
#
#-----[ REPLACE WITH ]---------------------------------------------
#
$sql = 'SELECT f.forum_id, f.forum_name
FROM ' . CATEGORIES_TABLE . ' c, ' . FORUMS_TABLE . ' f
WHERE f.cat_id = c.cat_id
ORDER BY c.cat_order, f.forum_order';
#
#-----[ FIND ]---------------------------------------------
#
$sql = ( $row['total_posts'] ) ? "UPDATE " . TOPICS_TABLE . " SET topic_replies = " . ( $row['total_posts'] - 1 ) . ", topic_first_post_id = " . $row['first_post'] . ", topic_last_post_id = " . $row['last_post'] . " WHERE topic_id = $id" : "DELETE FROM " . TOPICS_TABLE . " WHERE topic_id = $id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update topic', '', __LINE__, __FILE__, $sql);
}
#
#-----[ REPLACE WITH ]---------------------------------------------
#
if ($row['total_posts'])
{
// Correct the details of this topic
$sql = 'UPDATE ' . TOPICS_TABLE . '
SET topic_replies = ' . ($row['total_posts'] - 1) . ', topic_first_post_id = ' . $row['first_post'] . ', topic_last_post_id = ' . $row['last_post'] . "
WHERE topic_id = $id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not update topic', '', __LINE__, __FILE__, $sql);
}
}
else
{
// There are no replies to this topic
// Check if it is a move stub
$sql = 'SELECT topic_moved_id
FROM ' . TOPICS_TABLE . "
WHERE topic_id = $id";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not get topic ID', '', __LINE__, __FILE__, $sql);
}
if ($row = $db->sql_fetchrow($result))
{
if (!$row['topic_moved_id'])
{
$sql = 'DELETE FROM ' . TOPICS_TABLE . " WHERE topic_id = $id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not remove topic', '', __LINE__, __FILE__, $sql);
}
}
}
$db->sql_freeresult($result);
}
Sorry, dass es so viel ist, aber gerade deswegen hab ich Angst, dass nachher irgendwas wichtiges fehlt#-----[ OPEN ]---------------------------------------------
# NOTE --- Remember to do this for all your installed styles!
#
templates/subSilver/index_body.tpl
#
#
# NOTE --- The following action adds the ability to show the 'Mark forums read' link to logged in users only.
#
#-----[ FIND ]---------------------------------------------
#
<td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
#
#-----[ REPLACE WITH ]---------------------------------------------
#
<td align="left">
<!-- BEGIN switch_user_logged_in -->
<span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span>
<!-- END switch_user_logged_in -->
</td>

Ganz lieben Dank für eure Mühe!

Achja, der Link zum Forum: http://anylein.an.funpic.de/phpBB2/