Post by Lockslap
Hi im using invisionfree forums. I've tried to put <!-- WoWHead MouseOver-Tooltip -->
<script src="
http://www.wowhead.com/widgets/power.js" type="text/javascript"></script>
<!-- /WoWHead MouseOver-Tooltip -->
Into the jacascript box but its not working. any help would be helpful
If you intend on wanting to use BBCode (i.e. ) tags to make it work then you need a script in order to parse out those tags and replace them with the formatted link. I would happily write one, but I do not have access to an Invision powered forum.
Post by marcimi
Since Wowhead is now available in different languages ( thanks for this great feature! ), is there a way to us the widget feature in different languages? I tried using de.wowhead.com as URL in the script code, but this didn't work. Any tips? Thanks!
Greets Leonti!
Let's wait for an official statement about this.
@Officials: Is there any need to translate the guides into german? I would translate mine (and the others, of course) into german. Just drop a line here or write an email.
How to do with this forum?
http://avengedninefold.in-goo.net/index.htmIt's an phpbb forum. Try the
phpbb guide's.
Post by marcimi
Since Wowhead is now available in different languages ( thanks for this great feature! ), is there a way to us the widget feature in different languages?
Just check out the
demo page. It's too easy.
Wowhead-Tooltips in your language!- The only thing you have to do is: Link to the localized version of your item/spell. Sound's easy? Check out the examples:
Maybe you want this to work with your BBCode aswell. Just change prefix in the URL to wowhead. Without a prefix wowhead will return the english version of the item.
de.wowhead.com: German
fr.wowhead.com: Frenches.wowhead.com: Spanish
Post by DSitC
I'm posting a small an painless guide to enable wowhead item/spell/quest links in the
UNB (Unclassified NewsBoard). It's a rather unknown but very powerful bb system. My guild site is running it, if you want to
take a look.
All you need to do is to write a plugin for the board. The plugin consists of a core file and one additional file per language you wish to support.
The main plugin file: abbc_wowhead.php<?php
if (!defined('UNB_RUNNING')) die('Not a UNB environment in ' . basename(__FILE__));
// Define plug-in meta-data
UnbPluginMeta('Adds the abbc codes "name" and "name" that provide hover tooltips for wowhead links.');
UnbPluginMeta('Martin Gelder <darkspotinthecorner@gmail.com>', 'author');
UnbPluginMeta('de en', 'lang');
UnbPluginMeta('unb.stable.1.6 unb.stable.1.6.99', 'version');
UnbPluginMeta('unb.testing.1.6.rc.2', 'version');
UnbPluginMeta('unb.devel.20051012', 'version');
if (!UnbPluginEnabled()) return;
// Hook function to add the tags
//
function UnbHookWowheadAbbc(&$data) {
global $ABBC;
$ABBC = array(
'htmlopen1' => "~'<a class=\"opennew\" target=\"_blank\" href=\"'.UteTranslate(\"wowhead.link.base\").'?item='.intval('$1').'\" title=\"'.t2i(abbcs('$2')).'\">'.",
'htmlcont1' => "abbcs('$2').",
'htmlclose1' => "'</a>'",
'textcont1' => '$2 ',
'htmlblock' => false,
'minparam' => 1,
'maxparam' => 1,
'openclose' => true,
'nocase' => true,
'nested' => false,
'proccont' => true,
'omitempty' => true,
'subset' => ABBC_URL
);
$ABBC = array(
'htmlopen1' => "~'<a class=\"opennew\" target=\"_blank\" href=\"'.UteTranslate(\"wowhead.link.base\").'?spell='.intval('$1').'\" title=\"'.t2i(abbcs('$2')).'\">'.",
'htmlcont1' => "abbcs('$2').",
'htmlclose1' => "'</a>'",
'textcont1' => '$2 ',
'htmlblock' => false,
'minparam' => 1,
'maxparam' => 1,
'openclose' => true,
'nocase' => true,
'nested' => false,
'proccont' => true,
'omitempty' => true,
'subset' => ABBC_URL
);
$ABBC = array(
'htmlopen1' => "~'<a class=\"opennew\" target=\"_blank\" href=\"'.UteTranslate(\"wowhead.link.base\").'?quest='.intval('$1').'\" title=\"'.t2i(abbcs('$2')).'\">'.",
'htmlcont1' => "abbcs('$2').",
'htmlclose1' => "'</a>'",
'textcont1' => '$2 ',
'htmlblock' => false,
'minparam' => 1,
'maxparam' => 1,
'openclose' => true,
'nocase' => true,
'nested' => false,
'proccont' => true,
'omitempty' => true,
'subset' => ABBC_URL
);
return true;
}
function UnbHookWowheadJavascript(&$data) {
global $UNB;
$data .= '<script src="
http://www.wowhead.com/widgets/power.js"></script>'."\n";
return true;
}
// Register hook functions
UnbRegisterHook('abbc.userconfig', 'UnbHookWowheadAbbc');
UnbRegisterHook('page.htmlhead', 'UnbHookWowheadJavascript');
?>
The english language file: abbc_wowhead.en.php<?php
// Language : English (en)
// Encoding : UTF-8 (without BOM) (auto-detect: °°°°°)
// Reference: none (primary translation)
//
// See this web page for information on how to edit this file:
//
http://newsboard.unclassified.de/devel/docs/translating// Base
$UNB_T = '
http://www.wowhead.com/';?>
The german language file: abbc_wowhead.de.php<?php
// Language : German (de)
// Encoding : UTF-8 (without BOM) (auto-detect: °°°°°)
// Reference: none (primary translation)
//
// See this web page for information on how to edit this file:
//
http://newsboard.unclassified.de/devel/docs/translating// Base
$UNB_T = '
http://de.wowhead.com/';?>
That's it. Just place those 3 (or more, if you have additional translations) files inside your
<UNB-Root>/unb_lib/plugins directory and you are good to go. ;-)