Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyCode - Wowhead
#1
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
Code:
\[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:

Code:
[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.
Reply
#2
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
GooglePlus - Circle me! | Twitter - My random tweets.| YouTube - My semi-funnish videos.
Reply
#3
That would require JavaScript Smile

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

The code is basically made it just needs some... adjustments.
GooglePlus - Circle me! | Twitter - My random tweets.| YouTube - My semi-funnish videos.
Reply
#5
A MyCode for MyBB with wowhead. Smile

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

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

Replacement
Code:
<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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)