forums.eqdkp.com: ItemStats 1.5 + DragonFly CMS - forums.eqdkp.com

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ItemStats 1.5 + DragonFly CMS Rate Topic: -----

#1 User is offline   zanix

  • Member
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 04-November 06

Posted 05 November 2006 - 12:21 AM

Itemstats Module for DragonFly CMS
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

  • Activation
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
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



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
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
------------------
<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
And now you are done

I hope this guide was easy to follow

#2 User is offline   zanix

  • Member
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 04-November 06

Posted 05 November 2006 - 04:08 AM

EDIT: This works, dang typos
_______________________________________________________________

Nice, first error with DragonFly 9.0.6.1 posted over at wowroster.net by mashed
http://www.wowroster...pic/t=1744.html

config.php is in the root DF folder, not in /includes/ like in the CVS versions

So this will cause errors in 9.0.6.1


Here's a fix for this
Open {df_root}/modules/item_stats/df_itemstats.php
Find
include(CORE_PATH.'config.php');

Replace with
if( file_exists(CORE_PATH.'config.php') )
		include(CORE_PATH.'config.php');
	elseif( file_exists(BASEDIR.'config.php') )
		include(BASEDIR.'config.php');


#3 User is offline   zanix

  • Member
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 04-November 06

Posted 12 November 2006 - 06:03 PM

EDIT: Fix updated

Link to updateitem.php is incorrect

Fix

Open modules/item_stats/itemstats.php
Find
$item_link = '{PATH_ITEMSTATS}/updateitem.php?item=' . urlencode(urlencode($item_name));

Replace with
$item_link = getlink('item_stats&file=updateitem&item=' . urlencode(urlencode($item_name)));


The config.php error with DragonFly 9.0.6.1 is also fixed, I made a typo :blink:

I will make an updated package shortly

#4 User is offline   zanix

  • Member
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 04-November 06

Posted 12 November 2006 - 06:50 PM

Package updated

Nov 12, 2006 - v1.1
Fixed - config.php include error with DragonFly v9.0.6.1
Fixed - Path to updateitem now points to the right location

#5 User is offline   zanix

  • Member
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 04-November 06

Posted 13 November 2006 - 02:47 PM

The above fix should be
$item_link = getlink('item_stats&file=updateitem&item=' . urlencode(urlencode($item_name)));


*sigh* I'll update the package again

#6 User is offline   zanix

  • Member
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 04-November 06

Posted 13 November 2006 - 03:20 PM

Package updated

Nov 13, 2006 - v1.2
Fixed - 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

#7 User is offline   zanix

  • Member
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 04-November 06

Posted 06 June 2007 - 10:56 AM

Package updated

~ Fixed
+ Added
! Changed

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

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users