Version 2.0beta (ItemStats Core v1.5.5)
Forum Post on WoWRoster.net -> http://www.wowroster...pic/t=1744.html
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
- All Packs File Edits
- Activation
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 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 - http://www.wowroster...item_stats.html
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
! Changed
Quote
June 06, 2007 - v2.0beta
~ Updated the itemstats core to latest release 1.5.5.1000
~ Socket images fix -> http://forums.eqdkp....?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
~ Updated the itemstats core to latest release 1.5.5.1000
~ Socket images fix -> http://forums.eqdkp....?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
>Download files<
(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 overwritten
Quote
(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}
Quote
(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}
Quote
- 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
- includes/fpbbcode.php
- language/{YOUR_LANG}/fpbbcode.php (optional bbcode buttons)
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
------------------
<link rel="stylesheet" type="text/css" href="{THEME_PATH}/style/style.css" />------------------
ADD-AFTER
------------------
<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
------------------
$text = preg_replace($patterns, $replacements, $text);
------------------
ADD-BEFORE
------------------
# [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
------------------
flash_help="'. $bbcode_common['flash'][0].' '.$bbcode_common['flash'][1].'";</script>
------------------
REPLACE
------------------
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
------------------
<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
------------------
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
------------------
'marqr' => array('Marque text to right:','[marq=right]text[/marq]'),------------------
ADD-AFTER
------------------
'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
------------------
$text = preg_replace($patterns, $replacements, $text);
------------------
ADD-BEFORE
------------------
# [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
------------------
flash_help="'. $bbcode_common['flash'][0].' '.$bbcode_common['flash'][1].'";</script>';
------------------
REPLACE
------------------
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
------------------
<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
------------------
// [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
------------------
'strike' => array('Strike:','[strike]text[/strike]'),------------------
ADD-AFTER
------------------
'item' => array('Item:','[item]item[/item]'),
'itemico' => array('Item Icon:','[itemico]item[/itemico]'),------------------
SAVE AND CLOSE
------------------
{df_root}/language/{YOURLANG}/fpbbcode.php
6) Activation
- 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
I hope this guide was easy to follow


Sign In
Register
Help
Back to top
MultiQuote