PHP Nuke Nederland
 
•   Home  •  Downloads  •  Your Account  •  Forums  •
PHP-Nuke Nederland: Forums

PHP-Nuke Nederland :: View topic - [FIX] Handmatig upgraden van 2.0.15 -> 2.0.16
 Forum FAQ  •   Search   •  Memberlist  •  Usergroups   •  Register   •    •  Profile  •  Log in to check your private messages  •  Log in

 
Post new topicThis topic is locked: you cannot edit posts or make replies.
View previous topic Log in to check your private messages View next topic
Author Message
BlueLion
Administrator
Administrator


Joined: Aug 21, 2004
Posts: 2834

PostPosted: Wed 29 Jun 2005 5:29 Reply with quoteBack to top

phpBB 2.0.15 to phpBB 2.0.16 Code Changes



These are the Changes from phpBB 2.0.15 to phpBB 2.0.16 summed up into a little Mod. This might be very helpful if you want to update your Board and have installed a bunch of Mods. Then it's normally easier to apply the Code Changes than to install all Mods again.

When you find a 'AFTER, ADD'-Statement, the Code have to be added after the last line quoted in the 'FIND'-Statement.
When you find a 'BEFORE, ADD'-Statement, the Code have to be added before the first line quoted in the 'FIND'-Statement.
When you find a 'REPLACE WITH'-Statement, the Code quoted in the 'FIND'-Statement have to be replaced completely with the quoted Code in the 'REPLACE WITH'-Statement.

After you have finished this tutorial, you have to upload the install/update_to_latest.php file, execute it and then delete it from your webspace.

  • modules/Forums/admin/admin_ug_auth.php



  1. FIND - Line 809
    Code:


       @reset($auth_user);


    REPLACE WITH
    Code:


    //   @reset($auth_user);



  • modules/Forums/admin/pagestart.php



  1. FIND - Line 43
    Code:


       header($header_location . '../../../' . append_sid("login.$phpEx?redirect=admin/"));


    REPLACE WITH
    Code:


       header($header_location . '../../../' . append_sid("login.$phpEx?redirect=admin/index.$phpEx"));



  2. FIND - Line 64
    Code:


       header($header_location . '../../../' . append_sid("login.$phpEx?redirect=admin/&admin=1", true));


    REPLACE WITH
    Code:


       header($header_location . '../../../' . append_sid("login.$phpEx?redirect=admin/index.$phpEx&admin=1", true));



  • includes/bbcode.php



  1. FIND - Line 211
    Code:


       $patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\]([^?].*?)\[/url\]#i";
       $replacements[] = $bbcode_tpl['url3'];
     
       // [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix).
       $patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\]([^?].*?)\[/url\]#i";


    REPLACE WITH
    Code:


       $patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\]([^?\n\r\t].*?)\[/url\]#is";
       $replacements[] = $bbcode_tpl['url3'];

       // [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix).
       $patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\]([^?\n\r\t].*?)\[/url\]#is";



  • includes/usercp_avatar.php



  1. FIND - Line 202
    Code:


       if ( $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] )


    REPLACE WITH
    Code:



       if ( $width > 0 && $height > 0 && $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] )



  • includes/usercp_register.php



  1. FIND - Line 455
    Code:


          $avatar_sql = user_avatar_delete($userdata['user_avatar_type'], $userdata['user_avatar']);
       }


    AFTER, ADD
    Code:


       else



  • modules/Forums/modcp.php



  1. FIND - Line 466
    Code:


             $new_forum_id = intval($HTTP_POST_VARS['new_forum']);
             $old_forum_id = $forum_id;



    AFTER, ADD
    Code:


             $sql = 'SELECT forum_id FROM ' . FORUMS_TABLE . '
                WHERE forum_id = ' . $new_forum_id;
             if ( !($result = $db->sql_query($sql)) )
             {
                message_die(GENERAL_ERROR, 'Could not select from forums table', '', __LINE__, __FILE__, $sql);
             }
             
             if (!$db->sql_fetchrow($result))
             {
                message_die(GENERAL_MESSAGE, 'New forum does not exist');
             }

             $db->sql_freeresult($result);




  2. FIND - Line 773
    Code:


                $new_forum_id = intval($HTTP_POST_VARS['new_forum_id']);
                $topic_time = time();
                


    AFTER, ADD
    Code:


                $sql = 'SELECT forum_id FROM ' . FORUMS_TABLE . '
                   WHERE forum_id = ' . $new_forum_id;
                if ( !($result = $db->sql_query($sql)) )
                {
                   message_die(GENERAL_ERROR, 'Could not select from forums table', '', __LINE__, __FILE__, $sql);
                }
             
                if (!$db->sql_fetchrow($result))
                {
                   message_die(GENERAL_MESSAGE, 'New forum does not exist');
                }

                $db->sql_freeresult($result);





  • modules/Forums/viewtopic.php



  1. FIND - Line 1110
    Code:


          $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', $highlight_match) . ")\b#i', '<span style=\"color:#" . $theme['fontcolor3'] . "\"><b>\\\\1</b></span>', '\\0')", '>' . $message . '<'), 1, -1));


    REPLACE WITH
    Code:


          $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', addslashes($highlight_match)) . ")\b#i', '<span style=\"color:#" . $theme['fontcolor3'] . "\"><b>\\\\1</b></span>', '\\0')", '>' . $message . '<'), 1, -1));





Je forum tabellen worden met de volgende query geupdate:

Code:
UPDATE nuke_bbconfig SET config_value='.0.16' where config_name='version';


Last edited by BlueLion on Fri 08 Jul 2005 5:29; edited 4 times in total
View user's profileSend private messageSend e-mailVisit poster's website
BlueLion
Administrator
Administrator


Joined: Aug 21, 2004
Posts: 2834

PostPosted: Thu 30 Jun 2005 7:16 Reply with quoteBack to top

FIX
View user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
 Donaties   Adverteren 
Wilt u het forum steunen, dan kunt u nu eenvoudig doneren met PayPal.
Post new topicThis topic is locked: you cannot edit posts or make replies.
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Web site powered by PHP-Nuke

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004-2008 by BlueLion.
SEO enhanced with the Sitemapper script
You can syndicate our news using the file backend.php or ultramode.txt
Powered by PHP Powered by MySQL Apache Webserver Valid robots.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Pagina rendering: 0.20 seconden


[Valid News RSS]

RSS Feeds:
[RSS 2.0 News Feed]
[RSS 2.0 Download Feed]
[RSS 2.0 Forum Feed]
[RSS 2.0 Link Feed]
:: fisubsilver shadow phpbb2 style by Daz :: PHP-Nuke theme by BlueLion ::