MyBB Community Forums

Full Version: MyCode - Wowhead
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I'm trying to create a MyCode for wowhead http://www.wowhead.com/tooltips using MyBB 1.4.13.

I tryed this regular expresion
\[wowhead\](.*?)\[/wowhead\]

but can't figure out the correct way to complete the Replacement.

The wowhead code tags should replace the link inside them

Example:

 
[wowhead] http://www.wowhead.com/item=17782 [ / wowhead ] 
[wowhead] http://www.wowhead.com/spell=49410 [ / wowhead ]

and replace them with:
[Talisman of Binding Shard]
[Forceful Deflection] <-- white text here

and offcourse the item/spell/achievement description pop-up on mouse over.

Any help would be appreciated.

Thank you for your time.
Okay so thats how you want it... I see. The code I made you just entered the code not the full URL.

Sorry but I am new to WoW so I dunno 'bout this xP
That would require JavaScript Smile

Do wowhead have any form of api?
On the website it comes with a <script></script>

The code is basically made it just needs some... adjustments.
A MyCode for MyBB with wowhead. Smile

Short Description
This will show a description for wowhead related links.

Regular Expression
\[wowhead](.*?)\[/wowhead\]

Replacement
<script type="text/javascript" src="http://static.wowhead.com/widgets/power.js"></script>
<a href="$1" class="q3" rel="" target="_blank">$1</a>

Credits go to: wethegreenpeople