This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Add Wowhead tooltips to your forums or CMS.
Return to board index
Post by
90697
This post was from a user who has deleted their account.
Post by
Lockslap
Hi,
my raid forum uses an older version of your plugin (before spells were included) and I edited so I could use the second parameter to display a custom name (the German one in fact) instead of changing the link's color.
Works fine for me, however, since wowhead is now avaible in German and other languages, there is no need for my work-around anymore... as long as I know how to make the plugin parsing those instead of the English ones. Could you post a quick manual on this?
Or even better: Make it dependant on the user's chosen board language if possible. That would be just awesome (but would only work for ids I suspect).
Regards
Ps: I don't really understand php, I just edited existing scripts using a bit of logic. So no hard stuff please. >_>
This is an interesting suggestion, I think I may implement it in the newest version. I have the quests and spell portions ready for release, but I will hold off until I add this suggestion. The only problem is your suggestion to have the script use the language that the user's phpBB uses. This is generally not possible because phpBB has
MANY
more translations than Wowhead has. Wowhead currently supports English, German, French, and Spanish. I am going to add a config option where they can set their language to whichever they choose. It will allow the script to search Wowhead's site for that given language.
For example, you could do Spellstrike Pants and it would link the english version. Or you could do Kapuze des Zauberschlags and it would link the German version. There may be a discrepency in terms of spelling, but that is not something I can change.
Thanks for the great suggestion, I am working on it as I am typing this.
UPDATE
I have run into a roadblock with the tooltips. It seems external tooltips are not yet setup to work with any other languages other than English. I have posted a thread regarding this issue and am just awaiting a response so I can get a fix. Just bare with me.
UPDATE 2
It appears the developers are aware of this issue and are looking into/fixing this. Once the update is rolled out I will update my script.
Post by
149336
This post was from a user who has deleted their account.
Post by
155769
This post was from a user who has deleted their account.
Post by
90697
This post was from a user who has deleted their account.
Post by
Lockslap
I did the same by replacing all wowhead.com links inside the parse.php (think this was the only file I edited) with the german version. Tooltip stays English, but the search and item name are done/shown in German.
Oh and craCkpot, big thanks to you for looking into this! One question however: Will the config option you mentioned be avaible for every user of the forum or just for the admin to control the whole thing?
I will have to force my members to use item ids and not the item names then, but at least the users of the English client in my raid group are as satisfied as the ones using the German one.
The problem with it being a per-user is that if a given post doesn't use the same language as they do then the links would not show up, even if they are already in the cache. The problem lies in the lack of the ability to search for an item cross-language. By this I mean that it is not possible to, for example, search for 'Spellstrike Pants' using the German search, unless you translated it to German. This is due to Wowhead's design, and there's no way for me to change it. The only workaround would be to translate it before I query Wowhead, but this is not practical given the vast number of things that can be searched for.
As it stands now, the script allows the admin to set a language (fr = french, en = english, es = spanish, de = german), and it will search Wowhead using the appropriate language. I have tested it on my forums and it functions as intended.
However, I do like the option of the language to be per-user. The way to accomplish this is by using the language that the user has selected to use when creating their forum account. I can put an option in this script's config file for a default language to use if the user's language is not supported by Wowhead. I believe this is what I'll do.
@Blessman, I'm not exactly sure what the problem is. If the button you're referring to is the ones that show up when creating a new post/editing a post, then you will not see one for , , or . I have designed this script to be as non-intrusive to phpBB as possible, to keep the installation simple, so everyone can do it regardless of their programming experience. If there are other problems, you must try to explain them more clearly, so I can understand you.
Otherwise, I will be releasing the newest version tonight.
In the meantime, you can check out the quests and spells linking for yourself now by downloading the newest version from
http://downloads.exhume-guild.com/?dl=wowhead.zip
.
If you choose to use this updated script you must run 'create_table.php' regardless of whether or not you already have the phpBB table setup. I have added another column to the table to account for the type of the link (item, quest, spell).
If you find any bugs please let me know.
Post by
90697
This post was from a user who has deleted their account.
Post by
Lockslap
I just got a response from the developers, they have fixed the tooltip issue. I will update the script and release it after my raid.
Post by
DeathSoul2
Hey there craCkpot, i just tried to install this nifty "plugin" for my phpBB 3.0 forum.
This is the error i get after following the install instructions ;
Warning: include_once(./..//wowhead/parse.php) : failed to open stream: No such file or directory in D:\wamp\wamp\www\forum\includes\functions_content.php on line 18
Warning: include_once() : Failed opening './..//wowhead/parse.php' for inclusion (include_path='.;C:\php5\pear') in D:\wamp\wamp\www\forum\includes\functions_content.php on line 18
Fatal error: Call to undefined function whp_parse() in D:\wamp\wamp\www\forum\includes\functions_content.php on line 695
----------------
Incase i got the editing part wrong here's how it looks for me;
---
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
include_once($phpbb_root_path . '/wowhead/parse.php');
---
// custom BBCodes might contain carriage returns so they
// are not converted into <br /> so now revert that
$text = str_replace(array("\n", "\r"), array('<br />', "\n"), $text);
$text = whp_parse($text);
return $text;
---
Hope you can help me find out what's wrong and thanks in advance.
Kim ~ DeathSoul
Post by
Lockslap
Hey there craCkpot, i just tried to install this nifty "plugin" for my phpBB 3.0 forum.
This is the error i get after following the install instructions ;
Warning: include_once(./..//wowhead/parse.php) : failed to open stream: No such file or directory in D:\wamp\wamp\www\forum\includes\functions_content.php on line 18
Warning: include_once() : Failed opening './..//wowhead/parse.php' for inclusion (include_path='.;C:\php5\pear') in D:\wamp\wamp\www\forum\includes\functions_content.php on line 18
Fatal error: Call to undefined function whp_parse() in D:\wamp\wamp\www\forum\includes\functions_content.php on line 695
----------------
Incase i got the editing part wrong here's how it looks for me;
---
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
include_once($phpbb_root_path . '/wowhead/parse.php');
---
// custom BBCodes might contain carriage returns so they
// are not converted into <br /> so now revert that
$text = str_replace(array("\n", "\r"), array('<br />', "\n"), $text);
$text = whp_parse($text);
return $text;
---
Hope you can help me find out what's wrong and thanks in advance.
Kim ~ DeathSoul
This is most likely due to the fact that you're installing on a Windows-based operating system. Change all of the '/' to '\', and see if that works.
Post by
DeathSoul2
okay, so all the // to \\ (meaning this?; )
include_once($phpbb_root_path . '/wowhead/parse.php');
to
include_once($phpbb_root_path . '\wowhead\parse.php');
and
<!-- Wowhead Item Links -->
<link href="{T_THEME_PATH}/wowhead.css" rel="stylesheet" type="text/css" />
<script src="
http://www.wowhead.com/widgets/power.js"></script>
to
<!-- Wowhead Item Links -->
<link href="{T_THEME_PATH}\wowhead.css" rel="stylesheet" type="text/css" />
<script src="
http://www.wowhead.com/widgets/power.js"></script>
Also
"{T_THEME_PATH} <- should i put the full path there?
Thanks again for helping out a noob :)
Post by
Lockslap
yes change the '/' inside any things i have instructed you to add. you can leave {T_THEME_PATH} as it is, it is a constant for phpBB, and shouldn't need to be changed.
Post by
DeathSoul2
After alot of \\ and everything, still comes with the same error :(
Any other ideas, or if possible if you have the time of course, try install it for me? (that's asking alot) but i have no clue what to do :s
Here's my msn anyhow if you would be so kind to try;
DeathSoul@mmo-trading.com
Post by
Lockslap
Those errors mean what it can't find 'parse.php'. I don't use a Windows environment (thank god!), so just make sure everything is placed where it is supposed to.
Post by
Lockslap
Okay the newest version with multiple language support (based on user's phpBB defined language), and spell and quest support has been released. The installation instructions are a bit different, so make sure you check out the first page for detailed installation instructions.
As always, if you find anything wrong or wish to suggest improvements, please post here.
Thanks guys,
craCkpot
EDIT
I have finally gotten around to updating my phpBB3 installation to 3.0.1, and the script still works as intended.
UPDATE
To the script, added an option in 'config.php' where you can force the script to use a specific language. It is not required and is left blank as default.
Post by
Lockslap
Hey there craCkpot, i just tried to install this nifty "plugin" for my phpBB 3.0 forum.
This is the error i get after following the install instructions ;
Warning: include_once(./..//wowhead/parse.php) : failed to open stream: No such file or directory in D:\wamp\wamp\www\forum\includes\functions_content.php on line 18
Warning: include_once() : Failed opening './..//wowhead/parse.php' for inclusion (include_path='.;C:\php5\pear') in D:\wamp\wamp\www\forum\includes\functions_content.php on line 18
Fatal error: Call to undefined function whp_parse() in D:\wamp\wamp\www\forum\includes\functions_content.php on line 695
----------------
Incase i got the editing part wrong here's how it looks for me;
---
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
include_once($phpbb_root_path . '/wowhead/parse.php');
---
// custom BBCodes might contain carriage returns so they
// are not converted into <br /> so now revert that
$text = str_replace(array("\n", "\r"), array('<br />', "\n"), $text);
$text = whp_parse($text);
return $text;
---
Hope you can help me find out what's wrong and thanks in advance.
Kim ~ DeathSoul
Nevermind, I see what your problem is.
Change:
include_once($phpbb_root_path . '/wowhead/parse.php');
To:
include_once('D:\wamp\wamp\www\forum\wowhead\parse.php');
It seems $phpbb_root_path is not being set properly for some reason. This is set by the forums' script, so I'm not sure of the problem. All the above is doing is instead of giving a relative path, its giving a direct path to the file.
Post by
DeathSoul2
After alot of back and forth, i finally managed to get away from that error, now when i visit a thread with the Rising Tide code in it (on a test thread). this comes up;
SQL ERROR
Table 'rpgforum.phpbb_wowhead_cache' doesn't exist
SQL
SELECT itemid, name, link, quality FROM phpbb_wowhead_cache WHERE ( search_name LIKE 'Rising Tide' OR itemid LIKE 'Rising Tide' OR name LIKE 'Rising Tide' ) AND type='item' LIMIT 1
BACKTRACE
FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()
FILE: wowhead/wowhead/parse.php
LINE: 56
CALL: dbal_mysqli->sql_query()
FILE: includes/functions_content.php
LINE: 695
CALL: whp_parse()
FILE: viewtopic.php
LINE: 1269
CALL: bbcode_nl2br()
Any ideas?
I must be blind, but does this mean i need to use the "create_table.php" ?
Well after trying this;
http://www.rpgtrade.org/forum/wowhead/wowhead/create_table.php
this came up, so i would need to edit the creat table file to redirect it to the correct path again?
Warning: require(../config.php) : failed to open stream: No such file or directory in D:\wamp\wamp\www\forum\wowhead\wowhead\create_table.php on line 9
Fatal error: require() : Failed opening required '../config.php' (include_path='.;C:\php5\pear') in D:\wamp\wamp\www\forum\wowhead\wowhead\create_table.php on line 9
So what i think for my own now is, if indeed need to write the whole path correct in the create_table.php... which path would it be, i mean, which config.php file is it trying to reach to?
is it the config,php file located in the root of the forum like this;
D:\wamp\wamp\www\forum\config.php
Post by
DeathSoul2
Okay, i did what wrote and got the table created.
Now when i click on the thread where i have put the Rising Tide.
This comes up;
Fatal error: Call to undefined function curl_init() in D:\wamp\wamp\www\forum\wowhead\wowhead\includes\functions.php on line 23
Now im beaten cause i dont know what to edit or write on line 23 in the functions.php file..
This is line 23 in functions.php
$curl = curl_init();
Post by
Lockslap
I'm afraid you can't use this script. cURL is required for this script to work, and your PHP does not have it installated/configured. If you get cURL enabled then the script should function.
Post by
DeathSoul2
aw crap, ah well ill see if i can get it installed/configured
Post Reply
This topic is locked. You cannot post a reply.