News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

WoW - World of Warcraft Tooltips

Started by Garou, March 28, 2009, 04:31:05 AM

Previous topic - Next topic

Garou

Quote from: Garou on May 28, 2009, 10:33:33 PM
Ouch was I wrong LOL

Its in ./Sources/Subs.php

Find...
'content' => '<b><a style="background-color:#303030" href="wow/wowhead_wrapper.php?item=$1" class="wowhead">[$1]</a></b>',

To change the background to another color replace #303030 with a different color code.

To remove the background all together replace with...
'content' => '<b><a href="wow/wowhead_wrapper.php?item=$1" class="wowhead">[$1]</a></b>',

Again I don't recommend this and any color you change the background to shouldn't be similar to the other quality colors as you wont be able to see the text.

As for the font and font size there isn't anything in the mod that effects those. Its actually imports the font styles that Wowhead is using on their site.

Your other option be to use something like...
[url=http://www.wowhead.com/?item=30987]Lightbringer Faceguard[/url]
instead of the "wow" tag.

skullmonkey


Smoothbrain

Hello Garou, thanks for making this mod.  I am having a couple issues with it. 
My website is here: http://bighuge38.com
first, I am running the skin wow-dk119v1 and have tried to put the mods in as you suggested.  That led me to the error where when I clicked on the link after using the [wow][/wow] code it led me to a page with code.  So i went back to my index.template.php and looked and put in the modified code with the echo' at the end.  Now when I click on the link I get a 403 Forbidden error and I still don't get the info on mouseover.  Here is an attachment of my current code:
// The main sub template above the content.
function template_main_above()
{
   global $context, $settings, $options, $scripturl, $txt, $forum_version, $language, $modSettings;

   $csect_cookie = 'SMF_user_' . $context['user']['id'] . '_CSect';
   
   if(isset($_COOKIE[$csect_cookie]) && !empty($_COOKIE[$csect_cookie]))
       $settings['collapsed_sects'] = explode("\n", $_COOKIE[$csect_cookie]);
   $settings['csect_cookie'] = $csect_cookie;
   
   if (isset($options['theme_color']))
   $mycolor = $options['theme_color'];
else{
   // Defaults.
   $options['theme_color'] = isset($settings['theme_default_color']) ? $settings['theme_default_color'] : 'default_orc';
   $mycolor=$options['theme_color'];
   }
if(isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'no'){
   // Set user back to default theme if "personal theme option" is disabled
   $options['theme_color'] = isset($settings['theme_default_color']) ? $settings['theme_default_color'] : 'default_orc';
   $mycolor=$options['theme_color'];
}

   // Show right to left and the character set for ease of translating.
   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', ' xml:lang="', $txt['lang_dictionary'], '" lang="', $txt['lang_dictionary'], '"><head>
   <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
   <meta http-equiv="Content-Script-Type" content="text/javascript" />
   <meta http-equiv="Content-Style-Type" content="text/css" />
   <meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
   <meta name="robots" content="noindex" />', '
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
   <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
   <script language="JavaScript" type="text/javascript" src="', $settings['theme_url'], '/collapse.js?fin11"></script>';

if(empty($settings['show_dhtml_menu']))
   echo '
   <script language="JavaScript" type="text/javascript" src="', $settings['theme_url'], '/menu.js?fin11"></script>';

   echo '
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "', $settings['theme_url'], '";
      var smf_images_url = "', $settings['images_url'], '";
      var smf_scripturl = "', $scripturl, '";
      var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
      var smf_charset = "', $context['character_set'], '";
   // ]]></script>
   <title>', $context['page_title'], '</title>';

   // The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
   echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/maincolorcss/'.$mycolor.'.css?fin11" />';


if(empty($settings['show_dhtml_menu']))
   echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/menu.css?fin11" />';

   echo '
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />
   <!--[if IE 5 ]><link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/ie5.css?fin11"><![endif]-->';
   /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
      Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
      Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
      Standards compliance mode happens when you use xhtml... */
   if ($context['browser']['needs_size_fix'])
      echo '
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';

   // Show all the relative links, such as help, search, contents, and the like.
   echo '
   <link rel="help" href="', $scripturl, '?action=help" target="_blank" />
   <link rel="search" href="' . $scripturl . '?action=search" />
   <link rel="contents" href="', $scripturl, '" />
   <link rel="forum" href="', $scripturl, '?action=forum" target=" _blank" />';

   // If RSS feeds are enabled, advertise the presence of one.
   if (!empty($modSettings['xmlnews_enable']))
      echo '
   <link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';

   // If we're viewing a topic, these should be the previous and next topics, respectively.
   if (!empty($context['current_topic']))
      echo '
   <link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
   <link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

   // If we're in a board, or a topic for that matter, the index will be the board's index.
   if (!empty($context['current_board']))
      echo '
   <link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

   // We'll have to use the cookie to remember the header...
   if ($context['user']['is_guest'])
   {
      $options['collapse_header'] = !empty($_COOKIE['upshrink']);
      $options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
   }

   // Output any remaining HTML headers. (from mods, maybe?)
   echo $context['html_headers'], '

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';

      function shrinkHeader(mode)
      {';

   // Guests don't have theme options!!
   if ($context['user']['is_guest'])
      echo '
         document.cookie = "upshrink=" + (mode ? 1 : 0);';
   else
      echo '
         smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>
   // ]]></script>
   <script src="http://www.wowhead.com/widgets/power.js"></script>
   <script src="wow/jquery-1.3.2.min.js">
   </script><script src="wow/wowhead_linker.js"></script> ';   
   
   echo '
   </head>
   </head>
<body>
<a name="top_t" id="top_t"></a>';

   // Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
   echo '
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" >
<tbody>
   <tr><td align="left" width="170"', empty($settings['header_logo_url']) ? ' class="topbg_l"' : ' class="topbg_l2"', ' height="38">&nbsp;</td><td colspan="2" align="left" class="topbg" valign="middle">&nbsp;
      </td><td align="right" width="37" class="topbg_r" valign="top">
      &nbsp;
      </td>
   </tr>  </tbody>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tbody>
    <tr>
      <td width="15" class="area_l"><img src="', $settings['images_url'], '/area_blank.gif" border="0" alt="" /></td><td>
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
         <tr>
            <td class="hd_border_l"><img src="', $settings['images_url'], '/hd_border_l.gif" border="0" alt="" /></td>
            <td id="headerarea" align="center" width="100%" style="position: relative; padding: 0 0 0 0;">';

   // The logo and the three info boxes.
   echo '
      <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
         <tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;" ', '>
            <td valign="top">
               <div>
                  <table width="100%"', empty($settings['header_logo_url']) ? ' class="headerbodies"' : ' class="headerbodies3"', ' cellpadding="0" cellspacing="5" border="0">
                  <tr><td width="10%"><!--blank--></td>
   <td width="60%" valign="top" class="headertext" align="left" height="65" >
   <div style="width: 100%; overflow: hidden;">
';

   // This part is the logo and forum name.  You should be able to change this to whatever you want...
               
   if (empty($settings['header_logo_url']))
      echo '
<div style="font-family: Georgia, sans-serif; font-size: 30px; padding: 5px 0 12px 90px; white-space: nowrap; float: left; background-image: url(images/header_bg_r.png;">', $context['forum_name'], '</div>
<div style="float: right; width: 80%;"><!-- blank --></div>';
   else
      echo '
               <img src="', $settings['header_logo_url'], '" alt="', $context['forum_name'], '" border="0" />';

   echo '   
   </div></td>';

   if (!empty($context['user']['avatar']))
   {
   if(empty($settings['top_avatar_resize']))
   {
   $context['user']['avatar']['image'] = strtr($context['user']['avatar']['image'], array("class=\"avatar\"" => "class=\"avatar_t\""));
   }
      echo '<td valign="middle">', $context['user']['avatar']['image'], '</td>';
   }

   echo '
      <td width="30%" class="headertext_r" valign="top" align="left" nowrap="nowrap">';

   // If the user is logged in, display stuff like their name, new messages, etc.
   if ($context['user']['is_logged'])
   {
      echo '
                     ', $txt['hello_member'], ' <b>', $context['user']['name'], '</b>';

      // Only tell them about their messages if they can read their messages!
      if ($context['allow_pm'])
         echo ', ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'];
      echo '.<br />';

      // Is the forum in maintenance mode?
      if ($context['in_maintenance'] && $context['user']['is_admin'])
         echo '
                     <b>', $txt[616], '</b><br />';

      // Are there any members waiting for approval?
      if (!empty($context['unapproved_members']))
         echo '
                     ', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';

      // Show the total time logged in?
      if (!empty($context['user']['total_time_logged_in']))
      {
         echo '
                     ', $txt['totalTimeLogged1'];

         // If days is just zero, don't bother to show it.
         if ($context['user']['total_time_logged_in']['days'] > 0)
            echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

         // Same with hours - only show it if it's above zero.
         if ($context['user']['total_time_logged_in']['hours'] > 0)
            echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

         // But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }

      echo '
                     <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
                     <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';
                     
   }
   // Otherwise they're a guest - so politely ask them to register or login.
   else
   {
      echo '           
                     ', $txt['welcome_guest'], '<br />
                     <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

                     <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
                        <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                        <select name="cookielength">
                           <option value="60">', $txt['smf53'], '</option>
                           <option value="1440">', $txt['smf47'], '</option>
                           <option value="10080">', $txt['smf48'], '</option>
                           <option value="43200">', $txt['smf49'], '</option>
                           <option value="-1" selected="selected">', $txt['smf50'], '</option>
                        </select>
                        <input type="submit" value="', $txt[34], '" /><br />
                        ', $txt['smf52'], '
                        <input type="hidden" name="hash_passwrd" value="" />
                     </form>';
   }
   echo '
                     </td></tr>
               </table>
               </div>
            </td>
           
         </tr>
      </table>';

   echo '
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
         <tr>
            <td class="maintab_bgba" align="left" nowrap="nowrap">
   <div style="width: 100%; overflow: auto;">';
      // Show the menu here, according to the menu sub template.
      template_menu();
      echo '
            </div></td><td class="maintab_bgb" align="right" width="25"><div><a href="#top_t" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 4px 2px 0;" border="0" /></a></div></td>
         </tr>
      </table>
      <table width="100%" class="headerbodies2a" cellpadding="0" cellspacing="0" border="0">
         <tr>
         <td class="headernews" height="24" width="95%" align="left"><!-- News -->';
         
   if (!empty($settings['enable_news']))     
      echo '
      <span style="text-transform: uppercase; font-weight: bold;">', $txt[102], '</span> :  ', $context['random_news_line'] , ' ';

   echo '
   </td>
   <td class="currenttime" width="5%" valign="top" nowrap="nowrap">', $context['current_time'] , '</td>
         </tr>
      </table>
      <table width="100%" class="headerbodies2" cellpadding="0" cellspacing="0" border="0">
         <tr>
      <td valign="middle" align="left" style="padding: 8px 0px 8px 10px;" width="100%">', theme_linktree(), '</td>
      <td valign="middle"><a href="', $scripturl, '?action=search;advanced" class="searchb" title="', $txt['smf298'], '"><img src="', $settings['images_url'], '/search2_f.gif" border="0" alt="', $txt['smf298'], '" /></a></td>
      <td valign="middle" align="right" style="padding: 8px 10px 8px 0px;">
      <form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
               <input type="text" name="search" value="', $txt[182], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\'', $txt[182], '...\';" style="width: 150px;" />';

   // Search within current topic?
   if (!empty($context['current_topic']))
      echo '
                     <input type="hidden" name="topic" value="', $context['current_topic'], '" />';

      // If we're on a certain board, limit it to this board ;).
   elseif (!empty($context['current_board']))
      echo '
                  <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

   echo '
               </form>
</td>
         </tr>
      </table>
      <table width="100%" class="headerbodies2" cellpadding="0" cellspacing="0" border="0">
         <tr><td class="hd_bottom_l" width="46px"></td><td class="hd_bottom" height="24"></td><td class="hd_bottom_r" width="46px"></td></tr></table>';

   echo '
            </td><td class="hd_border_r"><img src="', $settings['images_url'], '/hd_border_r.gif" border="0" alt="" /></td>
         </tr>
      </table>';

   // The main content should go here.  A table is used because IE 6 just can't handle a div.

   echo '
   <table width="100%" cellpadding="0" cellspacing="0" border="0">
   <tr>
   <td class="hd_border_l" style="width: 8px; background-color: #000;"><!-- blank --></td>
   <td class="main_area_tl" style="width: 16px;"><!-- tl --></td>
   <td class="main_area_tc" height="3"><!-- tc --></td>
   <td class="main_area_tr" style="width: 16px;"><!-- tr --></td>

   <td class="hd_border_r" style="width: 8px; background-color: #000;"><!-- blank --></td></tr>
   <tr>
      <td class="hd_border_l" style="width: 8px;"><img src="', $settings['images_url'], '/hd_border_l.gif" border="0" alt="" /></td>
      <td class="main_area_ml" style="width: 16px;" align="left" valign="top"><div class="main_area_tlf"><img src="', $settings['images_url'], '/main_area_t_blank.gif" border="0" alt="" /></div></td>
      <td id="bodyarea" style="padding: 0px 1px 12px 1px;">';


   if ($context['user']['is_admin'])
{
      if (empty($txt['necessary_to_translate']))
   echo '
      <div style="margin: 2ex; padding: 2ex; border: 2px dashed #cc3344; color: black; background-color: #e7e7f7;">
         <div style="float: left; width: 2ex; font-size: 2em; color: red;">!!</div>
         <b style="text-decoration: underline;">Attention of wow-dk theme:</b><br />
         <div style="padding-left: 6ex;">
            You have to create &quot;<b>Modifications.<span style="color: red;"><acronym title="Name of language that you are using">' , $language , '</acronym></span>.php</b>&quot; in the &quot;<b>languages</b>&quot; directory ( <i>', $settings['theme_url'], '/languages/</i> ) of your wow-dk theme.<br /><br />
            Duplicate the &quot;<i>Modifications.english.php</i>&quot; of the &quot;languages&quot; directory of wow-dk. Next, rename it according to the language for which you use the file.
         </div>
      </div>';
}

}

Smoothbrain

Ok I think I fixed it all now however I seem to have an extra // ]] somehow as it is showing up in the top of my page.  Any suggestions?

Garou

#124
According to your post above your code looks like...

         current_header = mode;
      }
   // ]]></script>
   // ]]></script>
   <script src="http://www.wowhead.com/widgets/power.js"></script>
   <script src="wow/jquery-1.3.2.min.js">
   </script><script src="wow/wowhead_linker.js"></script> ';   
   
   echo '
   </head>
   </head>
<body>


And it should look like...

         current_header = mode;
      }
      // ]]></script>

<script src="http://www.wowhead.com/widgets/power.js"></script>
<script src="wow/jquery-1.3.2.min.js"></script>
<script src="wow/wowhead_linker.js"></script> ';

   echo '
   </head>
<body>


The second instance of // ]]></script> is whats causing the problem also you don't need the second </head>

Smoothbrain

thanks so much.  I will try that out.

tattooedpierre

I cant get any hover effect to work so I tried to remove the current version posted today.. and I get wowhead_2_x_b.xml   Modification parse error. Any ideas? Or can you help with a manual removal? Nothing has been added since I installed this mod.

Garou

None of the tooltips work? A straight link to Wowhead like http://www.wowhead.com/?item=30987 should work even if a  BBC like [wow]Lightbringer Faceguard[/wow] doesn't work.

Whats the exact error you are receiving? It will help in trying to get it uninstalled.

tattooedpierre

I manually removed it, but thanks anyways. The text was being coloured but on hover nothing happened.

Garou

#129
Hmmm That's odd, if the text color was being changed then the mod is grabbing the item from Wowhead. Im not sure why the tooltip wouldnt display. Were you getting any other errors?

As for the mod not uninstalling properly, there seems to be some sort of white space issue causing the package manager to remove the code. Im trying to figure it out and fix it now.

Axodious

I don't remember if I asked this, is there any way you can make it so we can link the ItemID and it convert it to the name of the item? With 3.2 they brought out 2 of each item 1 being of a higher ILvL and having to do a "hard mode" to gain.
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Garou

To enter an item by id you have to do something like
[url=http://www.wowhead.com/?item=30987]Lightbringer Faceguard[/url]
It wont change the color of the text based on item quality but you will get a tooltip.

The Javascript that converts the name to a link was written by someone else and they no longer support the code. I don't know enough about Javascript to make it work differently. Ive since quit playing wow and wasn't aware of they changes made. Ill most likely end up removing the Javascript from the mod all together if that's the case.

Axodious

Here are two examples of what I am talking about, the one that says "Heroic" beside it is a higher ILvl therefor has higher stats on it. Both drop from the same boss however the heroic one only drops from the boss on "hard mode".
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Garou

yes I understand that however the javascript which changes the name to the item number and the color of the text to the item quality color can not handle that and I dont know enough about java to make it do anything else.

That said you can use a direct link to the item and a tooltip will appear but it wont look as pretty when the link is not being hoverd over.

Axodious

Yeah that's what I told everyone to do for now, I have a friend who knows some java do you know which file does all those conversions? I could ask him about it.
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Garou

Sorry Got behind on this. Read your last message on my cell and forgot about it when I got home that night.

The functions of the mod are done in the wowhead_linker.js and wowhead_wrapper.php. The code in

It also uses the power.js which is created by and copied from Wowhead and jquery which is a standard library. Changing either of them is not recommended.

The code integrated integrated into the forums code calls the wowhead_wrapper.php which grabs an XML file of the items data from wowhead then the linker interprets the xml file to change the link in forum to change the text color and the item number. I believe that that code would need to be changed to also add the item# to item name but every attempt Ive made to do this breaks the mod. Theoretically this could be also modified to acknowledge the difference between spells, achievements, etc. but again I have no clue about how to get at it.

The power.js simply calls Wowhead again and creates the tooltip when the link is hovered over.

Axodious

#136
Thanks to some help from a friend I fixed it so an item that was linked with the ItemID is replaced with the name of the item, I'm not sure how "good" this code is but it seems to be working for me.

Add:
el.text('[' + $('name', data).text() + ']');

After:
el.addClass('q'+$('quality',data).attr('id'))

*EDIT*
Already found a small bug with this, if you search for an item name (i.e. smite) it will pull up the first item in a search (for smite, Smite's Mighty Hammer). Gonna keep working on it see if I can hammer it out to ONLY numbers.

*EDIT 2*
The bug I found does not appear to be a bug, it always has automatically "searched" for an impartial item, so this fix should work.
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Garou

Quote from: Axodious on December 20, 2009, 06:18:34 PM
*EDIT 2*
The bug I found does not appear to be a bug, it always has automatically "searched" for an impartial item, so this fix should work.

Yep when searching by name that's the way Wowhead/Thottbot coded things on their end. It worked well for a time but as Blizzard has added so many items with similar and identical names, tooltips based on a name search has become pretty unpredictable. That's quite sad in my opinion because many people cant figure out how to find an items ID number even when its been explained to them, which is also frustrating. LOL

Thanks for the code, after the holidays and I get some real time to start working on coding again, Ill  test and add the code to the mod, giving you and or your friend credit for finding it.

Garou

Mod updated to 1.3.

Now supports item ID's per the code supplied by Axodious and friend. :)

gmarco

Hi tried to install version 1.3 on a 2.0-RC2 but I got:

QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. [...]

1.     Execute Modification     wowhead_2_xb.xml     Modification parse error
2.    Execute Modification    wowhead_2_xb.xml    Modification parse error
3.    Extract File    ./Themes/default/images/bbc/wow.gif    
4.    Extract Tree    ./wow


Others mod installed:

1.     SimplePortal      2.3.1 
2.    Aeva ~ Auto-Embed Video & Audio    7.0    
3.    SMF Gallery Lite    2.0.9
4.    Custom Form Mod    1.6    
5.    Disable Subject Change    1.5

Any idea ? Thanks very much for attention.

Advertisement: