phpBB3

Update: January 8th, 2010
  1. Download the latest version here.
  2. Unzip the contents and edit config.php to your liking. Ensure that the MySQL settings are correct so that create_table.php will finish successfully.
  3. Upload the wowhead folder to the base directory of your phpBB3 installation.
  4. Upload wowhead.css and armory.css to the ./styles/<your style>/theme/ folder of your phpBB installation, where <your style> is the style you’re using.
  5. Open includes/functions_content.php, located relative to your phpBB installation.
    • Find:
      if (!defined('IN_PHPBB'))
      {
      	exit;
      }
      Immediately after add:
      require_once($phpbb_root_path . '/wowhead/parse.php');
      Then find (somewhere around line 689):
      /**
      * custom version of nl2br which takes custom BBCodes into account
      */
      function bbcode_nl2br($text)
      {
      	// custom BBCodes might contain carriage returns so they
      	// are not converted into <br /> so now revert that
      	$text = str_replace(array("\n", "\r"), array('<br />', "\n"), $text);
      	return $text;
      }
      Immediately after
      $text = str_replace(array("\n", "\r"), array('<br />', "\n"), $text);
      
      Add:
      $text = whp_parse($text);
      
      Save and close includes/functions_content.php and reupload as necessary.
  6. Open ./styles/<your style>/template/overall_header.html and add the following lines inside the <head> </head> tags.
    <!-- Wowhead Item Links -->
    <link href="{T_THEME_PATH}/wowhead.css" rel="stylesheet" type="text/css" />
    <script src="http://www.wowhead.com/widgets/power.js" type="text/javascript"></script>
    <link href="{T_THEME_PATH}/armory.css" rel="stylesheet" type="text/css" />
    <script src="./wowhead/js/armory.js.php" type="text/javascript"></script>
    Then reupload overall_header.html to your website, as necessary.
  7. Goto phpBB’s administrator control panel (aka ACP) and clear (purge) your cache.
  8. Then sit back and enjoy the hard work you’ve done.
TOP