[look for] 'reminder' => array("Reminder.php", ''), [replace] 'reminder' => array("$sourcedir/Reminder.php", ''),
[look for] 'news' => array("News.php", ''), [replace] 'news' => array("$sourcedir/News.php", ''),
[look for] 'printpage' => array("Printpage.php", ''), [replace] 'printpage' => array("$sourcedir/Printpage.php", ''),
[/save and close file]
Open the following file in your favorite text editor:
File: /Sources/News.php
[search for] global $scripturl, $db_prefix, $txt, $db_name, $db_server, $db_user, $db_passwd, $db_connect, $cgi, $gimagesdir, $imagesdir, $board, $limit, $template, $ext, $locale, $timeformatstring, $yytitle;
[change] global $dbcon, $boarddir, $scripturl, $db_prefix, $txt, $db_name, $db_server, $db_user, $db_passwd, $db_connect, $cgi, $gimagesdir, $imagesdir, $board, $limit, $template, $ext, $locale, $timeformatstring, $yytitle;
[search for] // Connect to the database - either pconnect or std - Gxx if (isset($db_connect) && $db_connect == 1) { ???$dbcon = mysql_pconnect($db_server, $db_user, $db_passwd) or die(mysql_error()); ???mysql_select_db($db_name) or die(mysql_error()); } else { ???$dbcon = mysql_connect($db_server, $db_user, $db_passwd) or die(mysql_error()); ???mysql_select_db($db_name) or die(mysql_error()); ???$db_connect = 0; } [/search]
[remove all]
* OR FOR VERSIONS PRIOR TO 3.0*
[search for] $dbcon = mysql_connect($db_server, $db_user, $db_passwd); mysql_select_db ($db_name);
[remove all]
Continue, all versions:
[search for]
??????include('news_template.php'); ???else ???{ ??????if ($ext == null) ?????????include($template . '.php'); ??????else ?????????include($template . '.' . $ext); ???} [/search]
[change] ??????include("$boarddir/news_template.php"); [/change]
[remove] ???else ???{ ??????if ($ext == null) ?????????include($template . '.php'); ??????else ?????????include($template . '.' . $ext); ???} [/remove]
Save file and exit editor.
|
|