PHP Nuke
Update: March 19th, 2010
- Download the latest version here.
- Upload the wowhead directory to the base directory of your PHP-Nuke installation.
- Point your browser to http://yoursite.url/wowhead/install/ and complete the installation procedure.
- Open ./mainfile.php
- Find:
// End the transaction if(!defined('END_TRANSACTION')) { define('END_TRANSACTION', 2); }
After Add:include_once('wowhead/parse.php');
- Find:
function check_words($Message) { global $CensorMode, $CensorReplace, $EditedMessage; include("config.php"); $EditedMessage = $Message; if ($CensorMode != 0) { if (is_array($CensorList)) { $Replace = $CensorReplace; if ($CensorMode == 1) { for ($i = 0; $i < count($CensorList); $i++) { $EditedMessage = eregi_replace("$CensorList[$i]([^a-zA-Z0-9])","$Replace\\1",$EditedMessage); } } elseif ($CensorMode == 2) { for ($i = 0; $i < count($CensorList); $i++) { $EditedMessage = eregi_replace("(^|[^[:alnum:]])$CensorList[$i]","\\1$Replace",$EditedMessage); } } elseif ($CensorMode == 3) { for ($i = 0; $i < count($CensorList); $i++) { $EditedMessage = eregi_replace("$CensorList[$i]","$Replace",$EditedMessage); } } } } return ($EditedMessage); }
Before:return ($EditedMessage);
Add:$EditedMessage = whp_parse($EditedMessage);
- Save and close mainfile.php and reupload as necessary.
- Find:
- Open ./header.php.
- Find:
echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n"; echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
After Add:echo '<!-- Wowhead Item Links -->\n'; echo '<link href="./wowhead/css/wowhead.css" rel="stylesheet" type="text/css" />\n'; echo '<script src="http://www.wowhead.com/widgets/power.js"></script>\n'; echo '<link href="./wowhead/css/armory.css" rel="stylesheet" type="text/css" />\n'; echo '<script src="./wowhead/js/armory.js.php" type="text/javascript"></script>\n';
- Save header.php and reupload as necessary.
- Find:
- You're done!