Version 2.0beta (ItemStats Core v1.5.5)
Forum Post on eqDKP -> http://forums.eqdkp.com/index.php?showtopic=7808
Table of Contents
- Introduction
- Change Log
- FAQ
- Known Bugs
- Installation
- All Packs File Edits
- Module-Only Additional Instructions
- Module-Only Additional Instructions for ForumsPro 2.0.1.0
- Activation[/list:o]
1) Introduction
First of all, credits to this post > Itemstats + Dragonfly CMS
Which inspired me to write this guide
And of course, props to the makers of ItemStats- DragonFly versions covered in this guide:
- 9.1.2.1
- Compatible with 9.1.1.0, but DO NOT use the pre-edited header.html files
This mod will allow any part of DragonFly that uses bbcode to be able to use ItemStats
Item:
Item Icon: [itemico]Head of Onyxia[/itemico]
This package is installed like a module in DragonFly, so all the ItemStats bbcode can be deactivated when the ItemStats module is deactivated
You can also go to index.php?name=item_stats (item_stats.html for LEO) and view the item cache and clean it as well
(You can set this module as "Administrators Only" access, the item links will still work if you do so)
You can view the item_stats module pages here on WoWRoster.net - [url=item_stats.html]http://www.wowroster.net/item_stats.html[/url]
ForumsPro, starting with version 2.0.1.0, has starting using their own bbcode file includes/fpbbcode.php.
There are additional files and instructions for this version when it is released.
PLEASE!!!!!!!!!!PLEASE!!!!!!!!!!PLEASE!!!!!!!!!!PLEASE
BACK UP YOUR DATABASE AND ALL OF YOUR FILES.
I AM NOT RESPONSIBLE FOR ANY LOSS OF DATA OR ANY DAMAGED FILES.
2) Change Log
~ Fixed
+ Added
! ChangedJune 06, 2007 - v2.0beta
~ Updated the itemstats core to latest release 1.5.5.1000
~ Socket images fix -> http://forums.eqdkp.com/index.php?showtopic=8754
~ When 'integration_mode' is set to "script" mode, itemstats does not honor the setting of 'automatic_search'
~ Custom cache now works correctly
+ Admin control for most of the itemstats options
+ Support for DF 9.1.2.1
+ Support for ForumsPro 2.0.1.0
! Removed support for DF 9.0.6.1
It might still work, but instructions will not be given
Nov 13, 2006 - v1.2
~ This time, I'm sure the path to updateitem now points to the right location
I didn't add the module name to the getlink() function
Nov 12, 2006 - v1.1
~ config.php include error with DragonFly v9.0.6.1
~ Path to updateitem now points to the right location
Nov 05, 2006 - v1
Initial Release
3) FAQ
None at this time
4) Known Bugs
Languages other than English are problematic, I cannot trace down what cases other languages to fail
5) Installation
>[url=Downloads/details/id=72.html]Download files[/url]<
(For the pre-edited packs, you will still need to edit header.html for themes other than cpgnuke/default and dragonfly)
itemstatsDF_20b_full.zip - Pre-edited Pack for DragonFly v9.1.2.1
itemstatsDF_20b_module_only.zip - Pre-edited Pack for DragonFly v9.1.2.1 and ForumsPro v2.0.1.0
itemstatsDF_20b_module_only.zip - Module-Only Pack (Do your own edits)
itemstats_bbcode.zip - bbCode images and psd (Adobe Photoshop)
Warning and notice: If you use any mod that edits the bbcode in DragonFly, you MUST use the module only pack and make the file edit manually!
Download and extract the contents of the html folder from the zip package to to the DragonFly root directory
Make sure you overwrite files when you upload to your web server
The following files will be overwrittenFiles in Pre-edited Pack wrote:(For themes other than default and dragonfly, you still need to edit additional files)- includes/nbbcode.php
- language/english/bbcode.php
- language/english/admin/item_stats.php
- modules/item_stats/*.*
- themes/default/templates/header.html
- themes/default/images/{bbcode_images}
- themes/dragonfly/templates/header.html
- themes/dragonfly/images/{bbcode_images}
Files in Pre-Edited + ForumsPro 2.0.1.0 Pack wrote:(For themes other than default and dragonfly, you still need to edit additional files)- includes/nbbcode.php
- includes/fpbbcode.php
- language/english/bbcode.php
- language/english/fpbbcode.php
- language/english/admin/item_stats.php
- modules/item_stats/*.*
- themes/default/templates/header.html
- themes/default/images/{bbcode_images}
- themes/dragonfly/templates/header.html
- themes/dragonfly/images/{bbcode_images}
Files in Module-Only Pack wrote:- language/english/admin/item_stats.php
- modules/item_stats/*.*
The Module-Only pack requires edits to the following files:- includes/nbbcode.php
- language/{YOUR_LANG}/bbcode.php (optional bbcode buttons)
- Note: To get the bbcode button images for the Module-Only pack, download the 'itemstats_bbcode.zip' file
- Place these images in every theme's image directory
The Module-Only pack also needs the following edits if you have ForumsPro 2.0.1.0:- includes/fpbbcode.php
- language/{YOUR_LANG}/fpbbcode.php (optional bbcode buttons)
All packs require you to edit every theme's header.html file for every theme you will be using.
5a) All Packs File Edits
Requires edits to 1 file- {df_root}/themes/{THEME_NAME}/templates/header.html
- Note: You MUST edit every theme's header.html file that you want to use
------------------
OPEN
For every theme you want ItemStatsDF to work with
------------------
{df_root}/themes/{THEME_NAME}/templates/header.html
------------------
FIND
Note: This is not exact for every theme, but it's similar
------------------- Code: Select all
<link rel="stylesheet" type="text/css" href="{THEME_PATH}/style/style.css" />
------------------
ADD-AFTER
------------------- Code: Select all
<link rel="stylesheet" href="modules/item_stats/templates/itemstats.css" type="text/css" />
<script type="text/javascript" src="modules/item_stats/overlib/overlib.js"><!-- overLIB © Erik Bosrup --></script>
------------------
SAVE AND CLOSE
------------------
{df_root}/themes/{THEME_NAME}/templates/header.html
------------------
COPY
For themes other than default and dragonfly
Note: To get the bbcode button images for the Module-Only pack, download the 'itemstats_bbcode.zip' file
* Place these images in every theme's image/ directory
------------------
{df_root}/themes/default/images/item.gif
{df_root}/themes/default/images/item1.gif
{df_root}/themes/default/images/itemico.gif
{df_root}/themes/default/images/itemico1.gif
------------------
PASTE
------------------
{df_root}/themes/{THEME_NAME}/images/item.gif
{df_root}/themes/{THEME_NAME}/images/item1.gif
{df_root}/themes/{THEME_NAME}/images/itemico.gif
{df_root}/themes/{THEME_NAME}/images/itemico1.gif
If you are doing the Module-Only installation, continue below
5b) Module-Only Additional Instructions
Requires edits to 1 file (2 if adding the optional bbcode buttons)- {df_root}/includes/nbbcode.php
- {df_root}/language/{YOURLANG}/bbcode.php
------------------
OPEN
------------------
{df_root}/includes/nbbcode.php
------------------
FIND
------------------- Code: Select all
$text = preg_replace($patterns, $replacements, $text);
------------------
ADD-BEFORE
------------------- Code: Select all
# [item] and [itemico] - Parse text for ItemStats mod
if( is_active('item_stats') )
{
require_once(BASEDIR . 'modules/item_stats/df_itemstats.php');
$text = itemstats_parse($text);
}
------------------
! OPTIONAL BBCODE BUTTONS
------------------
The following is to place additional bbcode buttons for ItemStats
------------------
FIND
------------------- Code: Select all
flash_help="'. $bbcode_common['flash'][0].' '.$bbcode_common['flash'][1].'";</script>
------------------
REPLACE
------------------- Code: Select all
flash_help="'. $bbcode_common['flash'][0].' '.$bbcode_common['flash'][1].'";
item_help = "'. $bbcode_common['item'][0].' '.$bbcode_common['item'][1].'";
itemico_help = "'. $bbcode_common['itemico'][0].' '.$bbcode_common['itemico'][1].'";</script>
------------------
FIND
------------------- Code: Select all
<img alt="'.$bbcode_common['mail'][0].'" class="bbcbutton" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'mail\')" onclick="BBCwmi(\''.$form.'\',\''.$field.'\',\'email\')" name="email" src="'.$bbbttns_path.'email.gif" border="0" />;
------------------
ADD-AFTER
------------------- Code: Select all
if( is_active('item_stats') )
{
$content .= '
<img alt="'.$bbcode_common['item'][0].'" class="bbcbutton" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'item\')" onclick="BBCcode(\''.$form.'\',\''.$field.'\',this)" name="item" src="'.$bbbttns_path.'item.gif" border="0" />
<img alt="'.$bbcode_common['itemico'][0].'" class="bbcbutton" style="border:0;" onmouseover="helpline(\''.$form.'\',\''.$field.'\',\'itemico\')" onclick="BBCcode(\''.$form.'\',\''.$field.'\',this)" name="itemico" src="'.$bbbttns_path.'itemico.gif" border="0" />';
}
------------------
SAVE AND CLOSE
------------------
{df_root}/includes/nbbcode.php
------------------
OPEN
------------------
{df_root}/language/{YOURLANG}/bbcode.php
------------------
FIND
------------------- Code: Select all
'marqr' => array('Marque text to right:','[marq=right]text[/marq]'),
------------------
ADD-AFTER
------------------- Code: Select all
'item' => array('Item:','[item]item[/item]'),
'itemico' => array('Item Icon:','[itemico]item[/itemico]'),
------------------
SAVE AND CLOSE
------------------
{df_root}/language/{YOURLANG}/bbcode.php
5c) Module-Only Additional Instructions for ForumsPro 2.0.1.0
Requires edits to 1 file (2 if adding the optional bbcode buttons)- {df_root}/includes/fpbbcode.php
- {df_root}/language/{YOURLANG}/fpbbcode.php
------------------
OPEN
------------------
{df_root}/includes/fpbbcode.php
------------------
FIND
------------------
- Code: Select all
$text = preg_replace($patterns, $replacements, $text);
------------------
ADD-BEFORE
------------------
- Code: Select all
# [item] and [itemico] - Parse text for ItemStats mod
if( is_active('item_stats') )
{
require_once(BASEDIR . 'modules/item_stats/df_itemstats.php');
$text = itemstats_parse($text);
}
------------------
! OPTIONAL BBCODE BUTTONS
------------------
The following is to place additional bbcode buttons for ItemStats
------------------
FIND
------------------
- Code: Select all
flash_help="'. $bbcode_common['flash'][0].' '.$bbcode_common['flash'][1].'";</script>';
------------------
REPLACE
------------------
- Code: Select all
flash_help="'. $bbcode_common['flash'][0].' '.$bbcode_common['flash'][1].'";
item_help = "'. $bbcode_common['item'][0].' '.$bbcode_common['item'][1].'";
itemico_help = "'. $bbcode_common['itemico'][0].' '.$bbcode_common['itemico'][1].'";</script>';
------------------
FIND
------------------
- Code: Select all
<img alt="'.$bbcode_common['mail'][0].'" class="bbcbutton" onmouseover="forumsprohelpline(\''.$form.'\',\''.$field.'\',\'mail\')" onclick="forumsproBBCwmi(\''.$form.'\',\''.$field.'\',\'email\')" name="email" src="'.$bbbttns_path.'email.gif" border="0" />;
------------------
ADD-AFTER
------------------
- Code: Select all
// [item] and [itemico] - Icons for ItemStats mod
if( is_active('item_stats') )
{ $content .= '
<img alt="Item:" class="bbcbutton" onmouseover="forumsprohelpline(\''.$form.'\',\''.$field.'\',\'item\')" onclick="forumsproBBCode(\''.$form.'\',\''.$field.'\',this)" name="item" src="'.$bbbttns_path.'item.gif" border="0" />
<img alt="'.$bbcode_common['itemico'][0].'" class="bbcbutton" style="border:0;" onmouseover="forumsprohelpline(\''.$form.'\',\''.$field.'\',\'itemico\')" onclick="forumsproBBCode(\''.$form.'\',\''.$field.'\',this)" name="itemico" src="'.$bbbttns_path.'itemico.gif" border="0" />';
}
------------------
SAVE AND CLOSE
------------------
{df_root}/includes/fpbbcode.php
------------------
OPEN
------------------
{df_root}/language/{YOURLANG}/fpbbcode.php
------------------
FIND
------------------
- Code: Select all
'strike' => array('Strike:','[strike]text[/strike]'),
------------------
ADD-AFTER
------------------
- Code: Select all
'item' => array('Item:','[item]item[/item]'),
'itemico' => array('Item Icon:','[itemico]item[/itemico]'),
------------------
SAVE AND CLOSE
------------------
{df_root}/language/{YOURLANG}/fpbbcode.php
6) Activation
[list=1][*]Log-into an admin account with access to the modules area
[*]Go to the modules administration area (admin.php?op=modules)
[*]Install the "item_stats" module
[*]Activate the "item_stats" module
[*]Optional -> Set access to the module as "Administrators Only" if you don't want people to view or clean your item cache[/list:o]
And now you are done
I hope this guide was easy to follow