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
Caldar
Same issue happens with Spells that have an Apostrophe, such as Abomination's Might.
Post by
Lockslap
I'll take a look at it, thank you for bringing it to my attention.
Edit
I have fixed the installation instructions on the script's website to work with IE. JavaScript really isn't my thing (yet!) so I had to do some debugging to find out what's going on.
I have fixed the issue with apostrophes in achievements, although it worked when using them in spells. Turns out there was an issue with my regex, but its all good now.
I am also fixing the issue with duplicate reagents being put into the cache. The script will now check to make sure that the entry doesn't already exist in the DB before it adds it.
Joomla is now installed on my testing site (
see
) so I am figuring out a way to make it work regardless of where the tags are located.
I will release 3.0.3 when I have finished installing it on Joomla and written the instructions.
EDIT #2
It will most likely be easier for me to write a plugin for Joomla that will auto-install itself and then it will be able to parse everything for you. You will still have to create the MySQL tables and edit the config file, but it will still be much easier.
Post by
Lockslap
Version 3.0.3 Released
As promised, here you go guys.
All problems posted about since 3.0.2 was released have been fixed to the best of my knowledge. For a full listing of all of the changes made check out the
Changelog
. I certainly hope that it works well for everyone.
Joomla support has to be delayed as I have to teach myself how to write a plugin, which will make installation a crapload easier.
As always if you have any questions, comments, or you find a bug you can post about it here or e-mail me at tooltips@crackpot.us.
Post by
abouthere
Great to see that this has come to fruition. It's a fantastic tool.
Do you have an removal guide for users of prior versions please? I'm running one that only hooked into the viewtopic file since you found there was a lot of load on the service when it was permanantly hooked in?
Cheers,
Post by
Lockslap
Great to see that this has come to fruition. It's a fantastic tool.
Do you have an removal guide for users of prior versions please? I'm running one that only hooked into the viewtopic file since you found there was a lot of load on the service when it was permanantly hooked in?
Cheers,
All you have to do is delete the wowhead folder along with wowhead.css, where it it located. Then edit viewtopic.php and remove the "include..." line from the top, along with the "$text = whp_parse($text);" line. Save and reupload and you're done.
If you really wanted to you can delete the MySQL tables.
Post by
22027
This post was from a user who has deleted their account.
Post by
Lockslap
Yes i think that a plugin will be the solution on this, hope its easy to write one, i dont have a clue either.
Please note a common bug that happens with another implementation that exist on the net (but the guy made it, dont support it at all!). Although his plugin works for items you write in the content area, if you try and have an item in a module area, stop working. Please be sure that it will work both areas, as modules are very common in Joomla, and very handy :)
Ty again for your patience on this :)
I will try my best to get it working anywhere in the content. I am working on it as I am typing this as a matter of fact.
EDIT
I have found a BBCode plugin that would function similar to my script, so I am going to see how he has gone about getting it to parse BBCode anywhere on the page. Should be a huge step in the right direction.
Post by
293107
This post was from a user who has deleted their account.
Post by
Lockslap
Fantastic job crackpot, you rock.
I noticed a similar issue with my portal system. I use a mod called TinyPortal for a front page portal and article system.
The front page won't parse the code, articles won't either.
I managed to get around it partially by adding the bbc directly to the subs.php file.
Like this: (I have an array like this for item, achievements, spells, and quests.
array(
'tag' => 'achievement',
'type' => 'unparsed_content',
'content' => '$1',
'validate' => create_function('&$tag, &$data, $disabled', '
if (function_exists(\'whp_parse\'))
$data = whp_parse("" . $data . "");'),
),
Don't forget to call the parse file at the top first.
That works great so tags are parsed everywhere. Also makes it so the call wouldn't be needed in display.php (if they were all included).
However... It does not work with the or tags. The code isn't right for them, since its an array of data i believe.
Another note is an entry would need to be made for every one as well, so would also need the array entry for as well as the tags. Which I didn't do. I just added in some of the basic ones so I could tooltip some items on the front page.
Just thought I would point this out for others that may use a portal system for SMF.
Excellent info!
On a side note, I have recently learned that Wowhead's JS file supports enchants/gems, so I am trying to figure out an efficient way to add it.
I'm thinking something like: {item name/id}
Only problem is that would require the poster to get the id of the gems. I have considered something like being able to do "+24 stam" or "+20 resil", but that will most likely cause a bunch of other issues. And the final concern is keeping the pattern I've set and just use the name of the gem, but that would cause some hellacious load times. If I could maybe have the script generate a database of all of the gems/enchants in the game it would help, but I'm not sure yet.
If anyone has any ideas please feel free to post.
EDIT
I have managed to get the script to work on my
Joomla!
installation by using an extension that I wrote. If only other CMS/forum software would be this easy. Download link will be posted shortly.
EDIT
Script downloads are offline while I rewrite the system to accommodate the Joomla plugin.
Post by
Lockslap
Version 3.0.3 for Joomla! Released!
Alright all of you patient Joomla! users out there, I have finished the plugin that will install the script and get itself setup for you. Believe it or not, you don't even have to edit any Joomla's source code, the only file you have to edit is the script's config.php file.
I have written the installation instructions and you can read them
here
.
On a side note, if you enjoy and use this script please consider donating. This script and its website takes a considerable amount of time to maintain and create. Help offset the costs of hosting and time spent by donating whatever you can. I would love to get this script a website of its own, I think it deserves one, but my finances do not allow it. I accept donations via PayPal and any amount you can send would be
GREATLY
appreciated. If you wish to make a donation you can do so by going
here
.
I have applied to Google Adsense to add text-based ads to the site to help offset the costs, but I am still waiting for approval. Do not worry, there will not be any popups/popunders nor any ads for any services that would violate Blizzard's ToS.
Alright everyone, that's all for now. Let me know how the Joomla extension works for you.
Post by
22027
This post was from a user who has deleted their account.
Post by
Verderf
Getting this error after I posed a list of all the new syntaxes, the first time I got some error about the link I made to pattern: Earthgiving legguards.
After looking here I remembered that I forgot to remove the 2 lines from viewtopic.php.
but now im getting this:
Fatal error: Call to undefined method wowhead_cache::sql_free_result() in /wowhead_cache.php on line 269
other forum threads work fine, only the one with the crafted syntax is giving this error.
edit:
I can view the page again if I remove the pattern from the wowhead_craftables table, if I refresh the page I get this at the top of my page:
PHP Notice: in file /wowhead/includes/wowhead_craftable.php on line 93: Invalid argument supplied for foreach()
Failed to add Pattern: Earthgiving Legguards to the cache. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' '')' at line 1
INSERT INTO wowhead_craftable_spell VALUES (44552, , '') PHP Notice: in file /includes/functions.php on line 3760: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
PHP Notice: in file /includes/functions.php on line 3762: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
PHP Notice: in file /includes/functions.php on line 3763: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
PHP Notice: in file /includes/functions.php on line 3764: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
Refreshing the page will result in the first error
Post by
Verderf
oops, sleepy me :) removed ^^
Post by
308223
This post was from a user who has deleted their account.
Post by
Lockslap
Getting this error after I posed a list of all the new syntaxes, the first time I got some error about the link I made to pattern: Earthgiving legguards.
After looking here I remembered that I forgot to remove the 2 lines from viewtopic.php.
but now im getting this:
Fatal error: Call to undefined method wowhead_cache::sql_free_result() in /wowhead_cache.php on line 269
other forum threads work fine, only the one with the crafted syntax is giving this error.
edit:
I can view the page again if I remove the pattern from the wowhead_craftables table, if I refresh the page I get this at the top of my page:
PHP Notice: in file /wowhead/includes/wowhead_craftable.php on line 93: Invalid argument supplied for foreach()
Failed to add Pattern: Earthgiving Legguards to the cache. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' '')' at line 1
INSERT INTO wowhead_craftable_spell VALUES (44552, , '') PHP Notice: in file /includes/functions.php on line 3760: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
PHP Notice: in file /includes/functions.php on line 3762: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
PHP Notice: in file /includes/functions.php on line 3763: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
PHP Notice: in file /includes/functions.php on line 3764: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
Refreshing the page will result in the first error
To fix the first part open wowhead_cache.php and search for (its around line 269):
$this->sql_free_result($this->sql->query_id);
change it to:
$this->sql->free_result($this->sql->query_id);
Basically change the first underscore ('_') to '->'.
The craftable extension does not handle patterns. To use the craftable on earthgiving leggings you would just do:earthgiving leggings
It will get all of the info on its own.
Thank you for bringing this minor bug to my attention.
Post by
Verderf
Thanks for the quick fix Crackpot, expect a donation soon :)
Post by
MattOne
hi,
i have installed on my forum phpbb3 3.0.4 with phpbb3 portal i have followed all the guide to install this wowhead tooltips (modified all the necessary file, added the db on mysql) but when i try to create a new post with {item name} or {XXX} i get this error in a new blank page :
WARNING isterxmlexpatnonvalid->parse(): expat: syntax error
Fatal error: Call to a member function on a non-object in /xxx/phpbb3/wowhead/includes/wowhead_items.php on line 173
i have installed the craCkpot wowhead tooltip v.3.0.3 ONLY for the phpbb3 forum not for the portal...but i think it's not this the problem...
Anyone can help me please? MANY THANKS
P.S.
if i use the command url=
http://www.wowhead.com/?item=12345
]Bijou's Belongings[/url
ALL WORK GREAT...but with the command on craCkpot site i get the error before...
Post by
hemd
Hi craCkpot first thanks a lot for the Tooltip it’s a lot of work and a fantastic tool.
I tried a lot of itemstats mods for PHPBB3 but I think I’m kind of lost right now.
I found you tooltip and I think it’s the right for my site but I follow all the steps from
http://wowhead.crackpot.us/#install
in PHPBB 3.X option.
- The edit config.php its working and I created a new DB just for the tooltip.
- The wowhead.css file is in the correct spot.
- In the file includes/functions_content.php I put the 2 lines that you say in the tutorial.
- And overall_header.html is modified too.
- And then I use the create_table.php and all work fine, then I delete the 2 files and clean the cache from the forum.
When I put in a post the items tags doesn’t do anything.
This is the post that I created to test:
http://www.shrugswow.com.mx/foro/viewtopic.php?f=8&t=38&p=80#p80
If you can point me in the right direction I would appreciate it a lot.
Post by
Lockslap
Hi craCkpot first thanks a lot for the Tooltip it’s a lot of work and a fantastic tool.
I tried a lot of itemstats mods for PHPBB3 but I think I’m kind of lost right now.
I found you tooltip and I think it’s the right for my site but I follow all the steps from
http://wowhead.crackpot.us/#install
in PHPBB 3.X option.
- The edit config.php its working and I created a new DB just for the tooltip.
- The wowhead.css file is in the correct spot.
- In the file includes/functions_content.php I put the 2 lines that you say in the tutorial.
- And overall_header.html is modified too.
- And then I use the create_table.php and all work fine, then I delete the 2 files and clean the cache from the forum.
When I put in a post the items tags doesn’t do anything.
This is the post that I created to test:
http://www.shrugswow.com.mx/foro/viewtopic.php?f=8&t=38&p=80#p80
If you can point me in the right direction I would appreciate it a lot.
It appears that the script is not being passed the content of the posts. It gets that information from functions_content.php, so it must not be edited properly. Wowhead's JS and the script's CSS file are being called properly.
The best advice I can give is to double check that functions_content.php is edited properly.
Post by
Feir
Hi!
Thanks for the best tool for wowhead
My question is : it's possible to adapted for vbulletin forum ?
Thanks for your response..
Post Reply
This topic is locked. You cannot post a reply.