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
227803
This post was from a user who has deleted their account.
Post by
Caldar
In addition to the issue i posted above this mod (at least on my site) gives the "Internet Explorer cannot open the Internet site - Operation aborted" error to my IE6 users.
I can work around it by moving <script src="
http://www.wowhead.com/widgets/power.js"></script>
below the <body> tag. As long as that line is in the <head> section it kills any IE6 user.
This happens 100% of the time.
Post by
Lockslap
In addition to the issue i posted above this mod (at least on my site) gives the "Internet Explorer cannot open the Internet site - Operation aborted" error to my IE6 users.
I can work around it by moving <script src="
http://www.wowhead.com/widgets/power.js"></script>
below the <body> tag. As long as that line is in the <head> section it kills any IE6 user.
This happens 100% of the time.
That is easily fixed...use
Firefox
.
Post by
Lockslap
Just an FYI, 2.5 generated a bunch of errors when wowhead went offline for maintenance and messed up forum layout.
PHP Notice: in file /wowhead/includes/wowhead.php on line 514: simplexml_load_string() : Entity: line 1: parser error : StartTag: invalid element name
PHP Notice: in file /wowhead/includes/wowhead.php on line 514: simplexml_load_string() : </html>
PHP Notice: in file /wowhead/includes/wowhead.php on line 514: simplexml_load_string() : ^
PHP Notice: in file /wowhead/includes/wowhead.php on line 514: simplexml_load_string() : Entity: line 1: parser error : Extra content at the end of the document
PHP Notice: in file /wowhead/includes/wowhead.php on line 514: simplexml_load_string() : </html>
PHP Notice: in file /wowhead/includes/wowhead.php on line 514: simplexml_load_string() : ^
PHP Notice: in file /includes/functions.php on line 3643: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3015)
PHP Notice: in file /includes/functions.php on line 3645: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3015)
PHP Notice: in file /includes/functions.php on line 3646: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3015)
PHP Notice: in file /includes/functions.php on line 3647: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3015)
Random items also appear to have tooltips not be found even though if you click them you go right to the correct wowhead page. For example, Glyph of Revenge, Glyph of Charge... both link the correct item, both fail to generate a tooltip.
If Wowhead goes down for whatever reason and the script fails to work then its on their end and there's nothing I can do about it. If tooltips aren't working for certain items, but the links are correct and other items do work then again that's on Wowhead's side and there's nothing I can do about it.
Post by
Lockslap
If use russian language tag spell do no work. {item name} too =((((
The script doesn't currently support the Russian language. I am having a problem with the characters of the Russian language being sent to Wowhead in order to get the information the script needs to function. I am still working on it, but I'm afraid I have hit a dead end on everything I've tried.
Post by
Caldar
In addition to the issue i posted above this mod (at least on my site) gives the "Internet Explorer cannot open the Internet site - Operation aborted" error to my IE6 users.
I can work around it by moving <script src="
http://www.wowhead.com/widgets/power.js"></script>
below the <body> tag. As long as that line is in the <head> section it kills any IE6 user.
This happens 100% of the time.
That is easily fixed...use
Firefox
.
Thats not always possible.
Post by
Lockslap
In addition to the issue i posted above this mod (at least on my site) gives the "Internet Explorer cannot open the Internet site - Operation aborted" error to my IE6 users.
I can work around it by moving <script src="
http://www.wowhead.com/widgets/power.js"></script>
below the <body> tag. As long as that line is in the <head> section it kills any IE6 user.
This happens 100% of the time.
That is easily fixed...use
Firefox
.
Thats not always possible.
True, but Firefox is far better than IE (I have used both quite extensively for testing my scripts/layouts).
Post by
Lockslap
By the way could anyone confirm whether the script functions properly on PHP 4.x. I tested the back port of SimpleXML on the testing site (by forcing it to use it) and it seemed to work fine, but I am running PHP 5. If anyone could confirm that it works that would be great.
On a side note, I hope to release a working version of the craftable extension sometime this week. I know how I want it to work, just gotta write the code and test/tweak it.
Post by
Knoxville
How do we change the language using the:
number
Post by
geno8702
I'm experiencing a similar issue to Caldar
PHP Notice: in file /wowhead/parse.php on line 85: cannot yet handle MBCS in html_entity_decode()!
PHP Notice: in file /wowhead/parse.php on line 85: cannot yet handle MBCS in html_entity_decode()!
PHP Notice: in file /wowhead/parse.php on line 85: cannot yet handle MBCS in html_entity_decode()!
PHP Notice: in file /wowhead/parse.php on line 85: cannot yet handle MBCS in html_entity_decode()!
PHP Notice: in file /wowhead/parse.php on line 85: cannot yet handle MBCS in html_entity_decode()!
PHP Notice: in file /wowhead/parse.php on line 85: cannot yet handle MBCS in html_entity_decode()!
PHP Notice: in file /wowhead/parse.php on line 85: cannot yet handle MBCS in html_entity_decode()!
PHP Notice: in file /includes/functions.php on line 3545: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
PHP Notice: in file /includes/functions.php on line 3547: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
PHP Notice: in file /includes/functions.php on line 3548: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
PHP Notice: in file /includes/functions.php on line 3549: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
Happens whenever I try to view a post using tags. The item link actually works, but it reports this error and messes up forum layout.
sidenote: on your installation guide, I've found a typo:
Point your browser to create_table.php located in the wowhead folder you uploaded earlier. This will create the necessary MySQL(i) table for the item cache to work. It will automatically use the same database that phpBB uses. You may now delete create_table.php and
table_scheme.php
.
It should be table_scheme.sql I believe.
Thanks in advance.
Post by
7258
This post was from a user who has deleted their account.
Post by
23051
This post was from a user who has deleted their account.
Post by
230649
This post was from a user who has deleted their account.
Post by
Lockslap
It appears that the warnings (they're not errors, otherwise PHP would halt execution) were a problem in releases of PHP back in 2003-2004, but were fixed with later releases. I don't know if you guys are having the same problems as the people who posted the bug reports, but you can, as ScytheBlade1 said, add an ampersand (@, SHIFT+2) before the html_entity_decode function call and it will suppress any errors/warnings that may arise from that particular function call.
I would recommend speaking to your host about these issues and request that they upgrade to the latest version of PHP (5.2.6 for 5.x, or 4.4.9 for PHP 4.x).
I am still in the
EARLY
stages of development of the craftable extension to the class (this will be an extension, would require too many changes in the original class to add it directly). It will also use a different MySQL table to avoid any conflicts with the existing cache. I will write a different SQL query to create that table. Its gonna be badass, I think you'll all enjoy it!
Thanks for the positive feedback!
craCkpot
Post by
Caldar
It appears that the warnings (they're not errors, otherwise PHP would halt execution) were a problem in releases of PHP back in 2003-2004, but were fixed with later releases. I don't know if you guys are having the same problems as the people who posted the bug reports, but you can, as ScytheBlade1 said, add an ampersand (@, SHIFT+2) before the html_entity_decode function call and it will suppress any errors/warnings that may arise from that particular function call.
I would recommend speaking to your host about these issues and request that they upgrade to the latest version of PHP (5.2.6 for 5.x, or 4.4.9 for PHP 4.x).
Fwiw, my server is running 5.2.6.
Looking forward to seeing what you are doing with the crafting.
Post by
230649
This post was from a user who has deleted their account.
Post by
Lockslap
Achievements are now available for almost every language, so I was able to test it and it seems that this was partially implemented in wowhead.php (quite strange that I'm the first who reports this :/). Here is my version, which is fully working with PHP 4.x (yes, I know bouuuuuuuh :) )
function _getAchievementByName($name)
{
if (trim($name) == '')
return false;
$data = $this->_read_url($this->_getDomain() . '?search=' . htmlentities(urlencode(utf8_encode($name)), ENT_QUOTES, 'UTF-8'), false);
if (preg_match('#Location: /\?achievement=(.+?)\n#s', $data, $match))
{
// result returns a redirection header (aka only one result)
// so we can get the information we need from there
return array(
'name' => utf8_encode(stripslashes(ucfirst(strtolower($name)))),
'search_name' => $name,
'id' => $match,
'link' => $this->_generateLink($match, 'achievement')
);
}
else
{
// result returns a search page, now we have to get the possible results
$the_line = $this->_achievementLine($data);
if (!$the_line)
return false;
while (preg_match('#id:({1,10}),name:\'(.+?)\',#s', $the_line, $match))
{
$match = stripslashes($match);
if (strtolower($match) == strtolower($name))
{
$result = array(
'name' => utf8_encode($match),
'search_name' => $name,
'id' => $match,
'link' => $this->_generateLink($match, 'achievement')
);
return $result;
}
else
{
$the_line = str_replace($match, '', $the_line);
}
}
}
}
On a side note, I also changed some regular expressions you used in _findBySearch:
$aLine = $this->_abilityLine($data);
$the_line = $aLine;
if ($aLine == 'ability')
$pattern = '#id:({1,10}),name:\'\@(.+?)\'#s';
elseif ($aLine == 'recipe')
$pattern = '#id:({1,10}),name:\'{1}(.+?)\'#s';
else
return false;
and added the following lines in _abilityLine:
elseif (strpos($line, "new Listview({template: 'spell', id: 'uncategorized-spells'") !== false)
return array(
'type' => 'ability',
'line' => $line
);
I thought you might be interested...
Regarding my first bug report, the problems are not all due to the PHP version, especially the last one in case it would have been missed.
Eléa.
I really like the changes you posted and have added them to version 2.5.1. All seem to be working properly. I am in the process of adding a couple of tools to make sure that you have the latest version of the script. The first is a simple version check by adding to a post somewhere on your forums it will check the class to see what version you're using. The second is gonna be a small script (I may add it to requirements to give it some usefulness after you've installed the script) that will grab a file from the script's site (
http://wowhead.crackpot.us
) which will contain the version of the script and then it will compare it to the version you have, and then report back to you and give you the download link to update.
Unfortunately, this has pushed back the craftables release date, but I want the script to be as stable as possible before I start throwing extensions at it.
I will post 2.5.1 when its ready!
Post by
Lockslap
Version 2.5.1 Released!
The biggest addition in this version is multiple language support for the achievements. You can access this the same way you would with quests or spells. Other addidtions are , which is a BBCode that will print the current version of the class and parser that you're using. Also, I have changed requirements.php to check if any updates are available to you when you run it. For it to work properly you must have requirements.php located in the same folder as parse.php, which is why it is now included in the zip file. In order for it to work you must have PHP be allowed to access files on remote servers (the version file is located on the script's site), I believe that it is possible to disable this feature when configuring PHP (could I get clarification on this?).
Other than that, I have went ahead and suppressed the errors that people were getting from the html_entity_decode() function by adding the ampersand (@) mentioned in posts above. And finally, the regular expression changes mentioned by Elea above have been applied.
Enjoy, let me know how it works.
Post by
239015
This post was from a user who has deleted their account.
Post by
Lockslap
First off - I have been using this for quite a while now, and it works great! I do have one question though. As shown in
this thread
only some items from WotLK show up. I downloaded and installed 2.5.1 in hopes that it would fix them, but it did not. Is there a way to make those items work with this plugin?
Thanks!
Wowhead only moved over items/quests/spells/achievements that are present on the Live servers as of patch 3.0.2. I have removed all WOTLK tags in anticipation of WOTLK going live. It may have been a bit early, yes, but when WOTLK comes out I don't anticipate being able to work on the script for the first few days after release.
If you really need/want the tags then you can downgrade your installation to the most recent version that still had the WOTLK tags (2.4.3, I believe). I'm not going to rewrite the code, then add it to the class only to have it all made useless in ~11 days.
Post Reply
This topic is locked. You cannot post a reply.