This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
Add Wowhead tooltips to your forums or CMS.
Return to board index
Post by
abouthere
Try putting in a new bbcode with nothing in the two boxes.
Post by
304466
This post was from a user who has deleted their account.
Post by
Lockslap
For those of you having issues with achievements not showing up when linking by name, change the following code in wowhead.php. This is for version 2.5.5. The function is called _getAchievementByName.
while (preg_match('#id:({1,10}),name:\'\@(.+?)\'#s', $the_line, $match))
{
if (strtolower($match) == strtolower($name))
{
return $match;
}
else
{
$the_line = str_replace($match, '', $the_line);
}
}
to
while (preg_match('#id:({1,10}),name:\'(.+?)\',#s', $the_line, $match))
{
if (stripslashes(strtolower($match)) == strtolower($name))
{
return array(
'name' => stripslashes(ucwords(strtolower($name))),
'search_name' => $name,
'id' => $match,
'link' => $this->_generateLink($match, 'achievement', true)
);
}
else
{
$the_line = str_replace($match, '', $the_line);
}
}
in the regex I took out the \@ because it makes no sense to me why its there. I added a trailing comma so that it will match against quotes in the name. I added some stripslashes where needed and returned a new array like the other cases instead of the $match array which made no sense to me either.
Its there because some of the achievements have a "@" before their name, some also have a 2 or 3. If you edit the script, I no longer support it. Any changes you make are completely fine, but you're on your own.
As for the BBCode buttons, if you put the BBCode tags in the HTML replacement it should work. Otherwise the script won't be able to find the tags you're trying to parse.
And no, my sites billing was not due, they just moved my site onto a brand new server and it seems that they're working out the kinks still. But I would still greatly appreciate any donations you can make to make it easier on my financially.
And finally, version 3 is coming, I promise. My hours have changed at work so I'm trying to adjust and keep up with various things. The class is pretty much done, I just haven't had time to write the parse script and then do extensive testing on it to work out as many of the bugs I can find before releasing it publicly.
Post by
Lockslap
A quick update. I have the parse script working, and it seems to be going quite well.
You can see version 3 in action by going to the script's test forum
here
. I wrote the parse script to be platform independent, meaning that implementing it into something other than phpBB3 is just a matter of changing the installation instructions. I am going to test it a bit more before I release it, so if you are aware of any items/quests/whatever that the current released version (2.5.5) doesn't find post them here and I will test them on the new version and try to fix it.
Please note that the Russian version is still broken. This
IS NOT
because of my script, but rather the XML feeds on Wowhead's end. I would love to fix it if I could, and have posted a bug report on the forums concerning it,
but received no response from the devs and it appears that the bug still exists
. I apologize for the inconvenience this may cause, but there is nothing I can do.
Keep the donations coming, I would really love to get this script its own personal home on the web where I could test the major platforms that it may be asked to run on.
If you have any questions/comments feel free to post them here or e-mail me at tooltips@crackpot.us.
--craCkpot
Edit
The devs are aware of the bug mentioned above and are looking into it.
Edit #2
I went over some past posts concerning certain spells and achievements not displaying correctly. This was due to an oversight on my part, with how it was determining where to get the information from. It worked for some objects, but not others. These issues should be resolved now, and I will most likely release version 3 tonight in a BETA form to have some people test it on their live forums (phpBB3 only, for right now) and report any issues. All I have to do is rewrite the SQL queries to create the tables, there are 6 now. By the way, the installation process will be a bit more involved, but it will run out of the box without you having to edit any config options (except for the MySQL settings).
Post by
109960
This post was from a user who has deleted their account.
Post by
308223
This post was from a user who has deleted their account.
Post by
37209
This post was from a user who has deleted their account.
Post by
22027
This post was from a user who has deleted their account.
Post by
242518
This post was from a user who has deleted their account.
Post by
310181
This post was from a user who has deleted their account.
Post by
Lockslap
Hi there.
I have just installed v2.5.5 using the instructions at
http://wowhead.crackpot.us/
I think I have followed the instructions correctly to install the mod but I cant get it to work when I make a forum post.
When I put Lawbringer Belt nothing happens.
I get no tooltip or item link.
I just get the words Lawbringer Belt displayed in my post.
I am installing it to a phpBB3 forum system at
www.wediealot.org
I am pretty sure I have edited the includes/functions_content.php and overall_header.html files.
Do I have to create a BBcode or have I done it wrong.
Any help would be welcome.
Thanks.
If what you mentioned above is what it displays when viewing a post, then that means you haven't edited functions_content.php properly, otherwise it would attempt to parse it. The script is designed to always replace the BBCode tags with something, otherwise it would create an endless loop and PHP doesn't like them.
And no you don't need to create any BBCode. I would recommend going over the
Installation Instructions
again and double check.
On a lighter note, love the guild name! =D
Post by
22027
This post was from a user who has deleted their account.
Post by
Lockslap
Any info / release date about 3.0 ? I assume it will be released at February? Ty in advance, i use Wowdb atm for my itemstats syndication for Joomla, and i ... HATE IT :)
I'm not exactly sure when it will be released, I have been really sick lately. Not really wanting to get out of bed and sleeping all day. Once I start to feel better I will get it released.
Post by
22027
This post was from a user who has deleted their account.
Post by
gwdragon
I wanted to say this is truly amazing work and it works so well. There is one thing that doesn't seem to work but I don't know if its your end or if its wowhead's. I've looked and can't find it referenced (but I'll be honest, I only read back 3 or so pages and scanning at that). When I link a spell with a level, I get a link that is 1 spell level higher. So if I perform a rank=9 I get a link to a rank 10 spell. If I include no link I get the max level which works fine, but if I link the max rank, I get an error that the spell can't be found. Am I the only one having this issue and I need to fix something on my end, or is it a small bug in a piece of code that hardly anyone ever uses. I was setting up BBCodes on my guilds website and that was the only one I couldn't get to work Perfectly. Otherwise, great job.
Post by
Lockslap
Version 3.0.0 BETA Released!
Okay, I was gonna wait until I had completely written the installation script, but you guys have been very patient waiting for this, so I decided to release it as a BETA release. I have no doubt that this may be buggy, but I have tested it as much as I can, I need you guys to completely put it through its paces.
As of right now only phpBB is currently supported, I have not installed Joomla or SMF as of yet, but you are free to install it on your site, however, you will have to find a place in the code where the text of a post/news item/etc. is passed through and then insert the whp_parse() function call into it. If you need help with that e-mail me at tooltips@crackpot.us.
I am going to write an installation script that will write config.php for you, but that is still in the works. Until then, you will have to manually edit config.php to your liking. Its not too bad, just make sure you setup everything properly.
IF YOU ARE CURRENTLY USING 2.X OR BELOW YOU MUST COMPLETELY REMOVE IT AND DELETE THE DATABASE FILES. THESE TWO SCRIPTS WILL NOT WORK NICELY WITH EACH OTHER.
Alright guys, I sincerely hope that the script lives up to your expectations. If it doesn't please don't hesitate to post your questions, concerns, or bug reports and I will do my best to get them fixed.
Thanks for the great support,
craCkpot
P.S. Keep the donations coming, I really want to keep this going!
Post by
293107
This post was from a user who has deleted their account.
Post by
Lockslap
Excellent!
Look forward to the other installs as well.
The smf BBC code is different than phpbb. Not sure how to write it for smf to work with your script.
Here is the bbc I wrote for a wowhead tag. It just bolds it and adds brackets to a linked wowhead tooltip.
array(
'tag' => 'wowhead',
'type' => 'unparsed_content',
'content' => '<a href="$1" target="_blank"><b></a></b>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
array(
'tag' => 'wowhead',
'type' => 'unparsed_equals',
'before' => '<a href="$1" target="_blank"><b></a></b>',
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),
I think you have a misconception of how my script works. It technically doesn't integrate itself into any CMS software you use's BBcode. All it needs to get passed the text of whatever content you want parsed and it will replace the bbcode with the HTML replacement. If you can find a PHP function that gets called whenever a post gets displayed then you can add the call to whp_parse() and the script should works its magic. For example, with phpBB I chose the following function.
/**
* custom version of nl2br which takes custom BBCodes into account
*/
function bbcode_nl2br($text)
{
// custom BBCodes might contain carriage returns so they
// are not converted into so now revert that
$text = str_replace(array("\n", "\r"), array('<br />', "\n"), $text);
return $text;
}
This function is called anytime a post is viewed, thereby making it perfect for integrating the script's function call into it. I am certain that most CMS software would have a similar function, therefore making it easily integrated into most any CMS.
I intentionally wrote version 3 to be completely platform independent, so that all you have to do to port it to a different CMS is to modify the installation instructions accordingly. All I would do is install the software then figure out where to add the code. Granted, it may be a little bit more involved than this, but it still wouldn't be that bad.
My apologies if this seems like a garbled mess, but I still haven't went to sleep.
Post by
22027
This post was from a user who has deleted their account.
Post by
Caldar
Itemsets has issues with the Valorous gear sets. I am wondering if this has to do with them having an itemset number of, for example, -31 for Valorous Bonescythe Battlegear ? Either way, only the Hero gear works.
I am also getting double entries for every single item in the set (2 chests listed, 2 gloves, etc)
Also, perhaps a toggle on the craftables bbcode to enable / disable the listing of mats. In most cases, the name followed by the spell is sufficient, especially when you are using it in a block of text.
Post Reply
This topic is locked. You cannot post a reply.