Mod: [item]name[/item] for World of Warcraft

Started by hugocz, November 04, 2005, 12:26:08 AM

Previous topic - Next topic

hugocz

hi, i've seen a cool phpbb mod that i would love in SMF:)

You simply type [item]name[/item] and it read's the item data from http://wow.allakhazam.com/ and show on mouse over, here's an example: http://wow.rytir.com/tmp/woodoo.jpg

Thanks :)

JayBachatero

Some one else asked for this too.  Can you show me a link to the mod.  Ill try to do sumthing but i dont garantee it.
Looking for a little help
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert


DarkCloud14

Hi I'm already working on a conversion of itemstats 1.2
At the moment you can see an example here: http://www.deadkings.darkcloud14.de/forum/index.php?topic=7.0
now I'm rewriting/changing some things so it fits better into SMF ...

JayBachatero

Its comming out real nice.  Good job.  Take a look at this tool to help you turn it into a MOD.
Package SDK, anyone?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

hugocz

Quote from: DarkCloud14 on November 10, 2005, 07:44:37 PM
Hi I'm already working on a conversion of itemstats 1.2
At the moment you can see an example here: http://www.deadkings.darkcloud14.de/forum/index.php?topic=7.0
now I'm rewriting/changing some things so it fits better into SMF ...

Cool thanks DarkCould looks perfect :)))  where you post it when it will be done pls ?

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

DarkCloud14

Hi again,

I'm a bit busy at the moment so it will take a bit longer than
I though first... I'll try to get it done until Friday or Saturday this week.


alianos

Ya the someone else that asked this already would be me 2 months ago. I never got an answer though  :(

It looks great mate, hope we can get it soon. Cheers

tattooedpierre

I too would love this. My guild recently asked if this could be implemented on the forums since we use the same feature on our eqdkp mini-site.


know1

#12
OK I've got this to work, even if it is in a rudimentary fashion, IE it changes the tags in a <code></code> block when it shouldn't etc. etc. but for the most part works fine.

Modifications necessary are:

Themes/Your_Theme_Name/index.template.php
Find the Line:
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />

Insert After:
<link rel="stylesheet" href="../itemstats/templates/itemstats.css" type="text/css">
<script type="text/javascript" src="../itemstats/overlib/overlib.js"><!-- overLIB © Erik Bosrup --></script>';
Note: My itemstats is install a directory above my SMF installation you might need to try ./itemstats/overlib/overlib.js


Sources/Display.php
Find the Lines:
if (!defined('SMF'))
   die('Hacking attempt...');

Insert After:
include('../itemstats/phpbb_itemstats.php');
Note: my itemstats is install a directory above SMF if you install it in the SMF directory you might need to try ./itemstats/phpbb_itemstats.php

Find the lines:
// Run BBC interpreter on the message.
$message['body'] = parse_bbc($message['body'], $message['smileysEnabled'], $message['ID_MSG']);

Insert After:
$message['body'] = strtr($message['body'], array('&#039;' => '\''));
$message['body'] = itemstats_parse($message['body']);

Hopefully that will help some people out. I probably wont read this thread in a long time, so I wouldn't hold your breath if you have any questions, but I saw it here when I was looking for some answers and coudln't find any. So when I got it working myself I thought I'd share what I did.

myndcraft

Darkcloud... I checked your example and that works great!

Do you plan on packaging it anytime soon?

tattooedpierre

Thanks for posting that code, however, I'm having problems getting it to work :( .. i'm getting back:

Parse error: parse error, unexpected T_FUNCTION in /home/theinfe/public_html/smf/Sources/Display.php on line 67

.. any ideas?

DarkCloud14

I was lazy in the last time but I'm working on it again.
There are some problems that I've to solve before I'll release
something. Another thing is that wow.allakhazam.com changed
some things in their xml files.

know1

Quote from: tattooedpierre on December 07, 2005, 05:48:38 PM
Thanks for posting that code, however, I'm having problems getting it to work :( .. i'm getting back:

Parse error: parse error, unexpected T_FUNCTION in /home/theinfe/public_html/smf/Sources/Display.php on line 67

.. any ideas?

I missed a ; off the end of the include line, try adding that, see how it goes. Also updated my post.

myndcraft

Quote from: DarkCloud14 on December 08, 2005, 03:30:09 AM
I was lazy in the last time but I'm working on it again.
There are some problems that I've to solve before I'll release
something. Another thing is that wow.allakhazam.com changed
some things in their xml files.

Thanks for the update :D

tattooedpierre

Quote from: know1 on December 09, 2005, 12:02:55 AM
Quote from: tattooedpierre on December 07, 2005, 05:48:38 PM
Thanks for posting that code, however, I'm having problems getting it to work :( .. i'm getting back:

Parse error: parse error, unexpected T_FUNCTION in /home/theinfe/public_html/smf/Sources/Display.php on line 67

.. any ideas?

I missed a ; off the end of the include line, try adding that, see how it goes. Also updated my post.

Thanks so much ;) .. its showing me the allakhazam link now, cheers! However.. (and I'm sorry to be a pain).. it's not showing me the mouseover tooltip? is this a limitation of this implementation?

DarkCloud14

Quote from: tattooedpierre on December 10, 2005, 03:06:35 PM
Quote from: know1 on December 09, 2005, 12:02:55 AM
Quote from: tattooedpierre on December 07, 2005, 05:48:38 PM
Thanks for posting that code, however, I'm having problems getting it to work :( .. i'm getting back:

Parse error: parse error, unexpected T_FUNCTION in /home/theinfe/public_html/smf/Sources/Display.php on line 67

.. any ideas?

I missed a ; off the end of the include line, try adding that, see how it goes. Also updated my post.

Thanks so much ;) .. its showing me the allakhazam link now, cheers! However.. (and I'm sorry to be a pain).. it's not showing me the mouseover tooltip? is this a limitation of this implementation?

its because allakhazam changed their xml files.. you need to change some things in allakhazam.php ...

Advertisement: