Moderator: Integra Moderator
"Whisky";p="22769" wrote:[size=99px]
[size=99px]http://rebirthoflight.net/ara/ItemStatsIM.rar[/url]
Unzip the contain on your HDD
OPEN itemstats/config.php
adapt the values to match your IM Database settings and your WoW icon store location
SAVE and CLOSE
Before moving further, backup the following files from your host site in order to be able to recover them in case of problem]
Upload the whole contain of the ItemStatsIM folder into your IM directory and replace all existing files.
Then, upgrade your existing IM templates files:
[color=green]OPEN templates/yourtheme/overall_header.tpl
FIND]<script></script>
[color=green]AFTER, ADD]<link><script><overLIB></script>
[b]FIND]<link>
[color=green]AFTER, ADD]{ITEMSTATS_REFS}
[color=green]
SAVE and CLOSE
Last step, create the item cache table in your IM DB...go to phopmyadmin and execute this query]CREATE TABLE IF NOT EXISTS `item_cache` (`item_name` varchar(100) NOT NULL DEFAULT '', `item_id` varchar(100) DEFAULT '0', `item_lang` varchar(2) DEFAULT '', `item_link` varchar(100) DEFAULT NULL, `item_color` varchar(20) NOT NULL DEFAULT '', `item_icon` varchar(50) NOT NULL DEFAULT '', `item_html` text NOT NULL, UNIQUE KEY `item_name` (`item_name`), FULLTEXT KEY `item_html` (`item_html`))[/code]
You can now link any WoW item in your forum like this][item]Nefarian's balls[/item][/code]
[hr:2i3rdgwn]
[size=99px]http://rebirthoflight.net/portail/mods/bbcode_box/images/item.gif[/flash:2i3rdgwn] item1.gif=>[flash=,:2i3rdgwn]http://rebirthoflight.net/portail/mods/bbcode_box/images/item1.gif[/flash:2i3rdgwn]
Then upload them to your /mods/bbcode_box/images/ directory
OPEN templates/yourtheme/posting_body.tpl
FIND<td><a>Advanced BBCode Box v5.0.0</a> </td>
BEFORE, ADD<td><img></td>
OPEN mods/bbcode_box/bbcode_box.js
FINDtable_help = "Creates a Table using BBCode";
AFTER, ADDwowitem_help = "Display a WoW item]Nefarian's balls[/item]";
GO AT THE END OF THE FILE, ADD]// Function added by Aranel for the itemstat buttonfunction BBCitem() { var txtarea = document.post.message; if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (theSelection != '') { document.selection.createRange().text = "[item]" + theSelection + "[/item]"; document.post.message.focus(); return; } } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, "[item]", "[/item]"); return; } if (wowitem == 0) { ToAdd = "[item]"; document.post.wowitem.src = "mods/bbcode_box/images/item1.gif"; wowitem = 1; } else { ToAdd = "[/item]"; document.post.wowitem.src = "mods/bbcode_box/images/item.gif"; wowitem = 0; } PostWrite(ToAdd);}
[color=green]SAVE AND CLOSE ALL FILES
I can't do more...
if it is working pleaz edit your post tittle, remove my name and add a "[SOLVED]" instead <img>
"r1Pped";p="25879" wrote:check the bbcode_box.js has been modified properly and uploaded correctly. Its this file that makes the [item][/item] appear.
Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Helter, Majestic-12 [Bot], Vendethiel