Current time: 04-18-2014, 03:17 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyCode - Wowhead
06-25-2010, 08:23 PM (This post was last modified: 06-25-2010 08:24 PM by TGM.)
Post: #1
MyCode - Wowhead
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.
Find all posts by this user
Quote this message in a reply
06-25-2010, 08:31 PM
Post: #2
RE: MyCode - Wowhead
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.
Find all posts by this user
Quote this message in a reply
06-25-2010, 09:48 PM
Post: #3
RE: MyCode - Wowhead
That would require JavaScript Smile

Do wowhead have any form of api?

Quote:Golf and alcohol don't mix, that's why I don't drink and drive!
Video Tutorials: Installing MyBB | Upgrading MyBB
Visit this user's website Find all posts by this user
Quote this message in a reply
06-25-2010, 09:51 PM
Post: #4
RE: MyCode - Wowhead
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.
Find all posts by this user
Quote this message in a reply
06-25-2010, 09:56 PM (This post was last modified: 06-29-2010 08:57 PM by TGM.)
Post: #5
RE: MyCode - Wowhead
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication