WoW Armory tooltips

Started by Kesk, November 24, 2007, 03:34:53 PM

Previous topic - Next topic

Kesk

I'm not sure where to post this, I dont want to call this an official mod. I run a PHPBB3 WoW forum. I plan on switching over as soon as a converter is released. In the mean time I have been working on finding replacements for mods I use on phpbb3 and or porting the phpbb3 ones. By no means am I a coder, but I have a good enough idea to break a few things enough to learn how to fix it.

On phpbb there is a wow armory tooltip mod that uses direct xml feeds from www.wowarmory.com [nofollow] for item and character tooltips. I love the mod so I started to getting it to work with SMF. Here is a demo SS from the original PHPBB3 version to give you an idea:

here are the files needed: http://deathknight.info/tooltip.rar [nofollow]

ITEM TOOLTIPS


CHARACTER TOOLTIPS


All credit should go to ReiserFS at http://www.killermonkeys.net [nofollow]

and the original phpbb3 mod can be found here:

http://www.phpbb.com/community/viewtopic.php?f=70&t=576155 [nofollow]

I am including a .rar file with a readme and the files needed to make it work.

here is the readme:

All credit should go to ReiserFS at http://www.killermonkeys.net

This mod was originally created for PHPBB3, I just hacked it into SMF form.


quick and easy install.

First, unless you want to figure out another way you must install the Custom BBcode mod by Sarke found here:
http://custom.simplemachines.org/mods/index.php?mod=621

Once you have that installed and working then you can follow the following instructions:

upload:

ajax_tooltip to /root
wow to /root

****Open: index.template.php (should work on any theme)
find:

</head>


add after:

<script type="text/javascript" src="ajax_tooltip/js/ajax-dynamic-content.js"></script>
        <script type="text/javascript" src="ajax_tooltip/js/ajax.js"></script>
        <script type="text/javascript" src="ajax_tooltip/js/ajax-tooltip.js"></script>
        <link rel="stylesheet" href="ajax_tooltip/css/wow-item.css" type="text/css" />
       
       
       
Then your all you have left is to add the custom bbcode for the character and item tooltips:

go to ADMIND > FEATURES AND OPTIONS > CUSTOM BBC > and add the following bbcode:

For item tooltips:


Tag name: wow
Description: WoW Armory item tooltips

tag type: [tag]{content}[/tag]

The HTML used for the tag:

<a href="http://www.wowarmory.com/search.xml?searchQuery={content}&searchType=items" target="new" onmouseover='ajax_showTooltip("wow/phparmory/item.php?v={content}",this);return false' onmouseout='ajax_hideTooltip()'><strong><img src='wow/phparmory/wow.png' border='0'>[{content}]</strong></a>



For character tooltips:

Tag name   : char
Description : WoW Armory character tooltips

tag type: [tag=option]content[/tag]

The HTML used for the tag:

<img src='wow/phparmory/char.gif' border='0' align='middle'><a href="http://www.wowarmory.com/character-sheet.xml?r={option}&n={content}" target="new" onmouseover='ajax_showTooltip("wow/phparmory/char.php?v={content}&z={option}",this);return false' onmouseout='ajax_hideTooltip()'><strong><{option}: {content}></strong></a>


all done

your tags will work like this:

[wow]item name[/wow]

[char=servername]charactername[/char]



as noted in the readme you MUST  have the Custom BBcode mod by Sarke found here:
http://custom.simplemachines.org/mods/index.php?mod=621


if anyone would like to package this up properly please do. I hope I am not breaking any rules by posting this. enjoy

babjusi

I think that some people might find it very useful as I have seen quite a few folks interested in wow things

Kesk

#2
file download added to original post

also you can see my phpbb3 version working at:

http://deathknight.info/viewtopic.php?f=13&t=322 [nofollow]

it works just the same on my SMF test board

Kesk

The above link isnt working anymore, I now having this working correctly on my newly converter SMF forum.


Armory character tooltips:

http://deathknight.info/index.php?topic=322.0 [nofollow]

Armory item tooltips:

http://deathknight.info/index.php?topic=196.0 [nofollow]


SleePy

Kesk,

You should read the modification approval guidelines and make sure you mod follows these guidelines. Once it does you could submit it to the mod site and allow other users to use this mod.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Kesk

Quote from: SleePy on December 12, 2007, 11:14:24 PM
Kesk,

You should read the modification approval guidelines and make sure you mod follows these guidelines. Once it does you could submit it to the mod site and allow other users to use this mod.

I would love to Sleepy, but I simply do not know enough to support it. I am far from a modder. All I did was take a mod that I used when I ran a phpbb3 and made it work on SMF. It would be awesome if some experianced person here could take this and make a nice mod package with it. Either way, I have it working on my forum and I am sure someone here would like to use it.

SleePy

Mods seeking new developers

We have this topic for such things. Just put it up and see if anyone else is interested in taking it over.
Remember you must have permission from the original author since you are not the original creator to redistribute his code.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: