Raylandar |
|
---|---|
Hi, I am moving my site from Sedito to Cotonti, and for the life of me I can not get Wowhead tool tips working.
I added the javascript to the header tag when I call my custom tag [wowitem] it points to something like <a href="http://www.wowhead.com/item=25697" class="q3" rel="gems=23121&ench=2647&pcs=25695:25696:25697">[Felstalker Bracers]</a> [/wowitem} When it gets parsed I get ['\[\[/item\]' => '\3',\[/item\]' => '\3',\[/item\]' => '\3',\[/item\]' => '\3',=([0-9]*)\]\[q=([0-9]{1})\]([^\[]*)'\[\[/item\]' => '\3',\[/item\]' => '\3',\[/item\]' => '\3',\[/item\]' => '\3',=([0-9]*)\]\[q=([0-9]{1})\]([^\[]*)'\[\[/item\]' => '\3',\[/item\]' => '\3',\[/item\]' => '\3',\[/item\]' => '\3',=([0-9]*)\]\[q=([0-9]{1})\]([^\[]*)'\[\[/item\]' => '\3',\[/item\]' => '\3',\[/item\]' => '\3',\[/item\]' => '\3',=([0-9]*)\]\[q=([0-9]{1})\]([^\[]*)'\[\[/item\]' => '\3',\[/item\]' => '\3',\[/item\]' => '\3',\[/item\]' => '\3',=([0-9]*)\]\[q=([0-9]{1})\]([^\[]*)'\[\[/item\]' => '\3',\[/item\]' => '\3',\[/item\]' => '\3',\[/item\]' => '\3',=([0-9]*)\]\[q=([0-9]] the pre code actually lead me to this site wowitem \\[item=([0-9]*)\\]\\[q=([0-9]{1})\\]([^\\[]*)end wowitem \\[/item\\]' => '<a class="q\\3" Any help would be greatly appreciated. |
tensh |
|
---|---|
Did it work in Seditio?
Link us the plugin for download, if it is a plugin. |
fraze |
|
---|---|
we have wowhead working on our site:
link to their script: <script type="text/javascript" src="http://www.wowhead.com/widgets/power.js"></script> for wowhead: bbcode = item Pattern: \[item=([0-9]*)\]([^\[]*)\[/item\]Replacement: <a href="http://www.wowhead.com/?item=$1">$2</a>bbcode = item Pattern: \[item=([0-9]*)\]\[q=([0-9]{1})\]([^\[]*)\[/item\]Replacement: <a class="q$2" href="http://www.wowhead.com/?item=$1">$3</a> it uses this code on the forums: [item=2770]Copper Ore[/item] Or for with Colors [item=33431][q=0]icesmashing Mace[/item] [item=2770][q=1]Copper Ore[/item] [item=43929][q=2]Vile's Uglystick[/item] [item=44244][q=3]Argent Skeleton Crusher[/item] [item=22691][q=4]Corrupted Ashbringer[/item] [item=17182][q=5]Sulfuras, Hand of Ragnaros[/item] [item=42943][q=6]Bloodied Arcanite Reaper[/item] or you can just directly link a url to the item and the tooltip will show. we also have code for mmo champion, which i'll post if you want it. |
|
Отредактировано: fraze (10.07.2010 16:52, 14 лет назад) |