<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Petoholics Anonymous &#187; tooltips</title>
	<atom:link href="http://wow.wolfdragon.net/tag/tooltips/feed/" rel="self" type="application/rss+xml" />
	<link>http://wow.wolfdragon.net</link>
	<description>Because you can never have too many pets</description>
	<lastBuildDate>Fri, 16 Jul 2010 17:06:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Item Tooltips in WordPress Revisited</title>
		<link>http://wow.wolfdragon.net/2007/12/item-tooltips-in-wordpress-revisited/</link>
		<comments>http://wow.wolfdragon.net/2007/12/item-tooltips-in-wordpress-revisited/#comments</comments>
		<pubDate>Mon, 31 Dec 2007 20:24:52 +0000</pubDate>
		<dc:creator>Faeldray</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Random Stuff]]></category>
		<category><![CDATA[stats]]></category>
		<category><![CDATA[tooltips]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://wow.wolfdragon.net/2007/12/31/item-tooltips-in-wordpress-revisited/</guid>
		<description><![CDATA[Note: Unless you are a WordPress user or a web programmer geek, this post will probably be very boring to you. If you&#8217;ve been using an installed version of WordPress for your blog, you&#8217;ve probably noticed the little bar just under your admin menu to update to the latest verison 2.3.2. Apparently there&#8217;s some security [...]]]></description>
			<content:encoded><![CDATA[<p>Note: Unless you are a WordPress user or a web programmer geek, this post will probably be very boring to you.</p>
<p>If you&#8217;ve been using an installed version of WordPress for your blog, you&#8217;ve probably noticed the little bar just under your admin menu to update to the latest verison 2.3.2. Apparently there&#8217;s some security fixes in there including the fix for a hack that allowed anyone to see your draft posts. Frankly, I wasn&#8217;t too worried about people seeing my draft posts (not like I have any national secrets or anything) but that little bar was bugging me because I&#8217;m almost OCD about keeping my software and stuff up-to-date.</p>
<p>Only doing this wasn&#8217;t simple for me because apparently the WordPress scripts were using a little too much memory and I kept getting <a href="http://www.mydigitallife.info/2006/04/23/php-allowed-memory-size-exchausted-fatal-error/">Allowed Memory Size Exhausted Error</a>. In frustration, I downgraded and upgraded two more times, only to get the same result. I was about to write a email to my webhost when I happened to check their support database and lo and behold, there was my answer! I created a custom php.ini file, placed it in the subdirectory that is this blog and bing! Everything knows works perfectly. Did I mention that I love <a href="http://fanst.net/">my webhost</a>? Buy your hosting from her, she&#8217;s a super nice lady and has the cheapest prices you will ever see, I swear.</p>
<p>So, enough about that and onto a related topic that I&#8217;ve been meaning to cover for a while. Before, I wasn&#8217;t able to get <a href="http://itemstats.free.fr/">ItemStats</a> working on this blog so I had come up with a <a href="http://wow.wolfdragon.net/2007/10/27/item-tooltips-in-wordpress/">custom solution</a> that was a little bit&#8230;<a href="http://www.maniasarcania.com/2007/11/17/really-simple-fancy-item-link-tooltips-via-thotbott/trackback/">complicated</a>. I actually ended up getting ItemStats to work but I was having problems with it dealing with the permalinks and I don&#8217;t even think the entire script is supported anymore&#8230;</p>
<p>Then Thottbot, quickly followed by WoWHead, came up with their own handy solutions in the form of a JavaScript that you just link to. Seriously, that was it. So, this is my little tutorial of how to implement it in a WordPress blog:</p>
<p><span id="more-76"></span><strong>Step 1:</strong> Get the code from either <a href="http://thottbot.com/x/power">Thottbot</a> or <a href="http://www.wowhead.com/?powered">WoWHead</a>. It&#8217;s your own personal preference as to which one you want but I personally prefer WoWHead. Their tooltips just seem prettier and quicker. It&#8217;s what I use anyways.</p>
<p><strong>Step 2:</strong> Open the theme file to edit it. They say anywhere will do but knowing my code, I think the best place is just under the <code>&lt;/head&gt;</code> tag. To get to that, log into your admin panel for your blog, then the Presentation link in your menu, then Theme Editor in the submenu that will load with the page. There should be a menu on the right side of the screen and you&#8217;ll want to select the Header file to edit.</p>
<p>Just note that the changes you will make will only affect the current theme. If you change your theme, you&#8217;ll have to go through these steps once again.</p>
<p><strong>Step 3:</strong> Place the code into the Header file. Scroll down through the code and look for the <code>&lt;/head&gt;</code> text. You can use the Find command (under the Edit menu) of your browser if you wish. Once you find the <code>&lt;/head&gt;</code> text, place the code that you got from Thottbot or WoWHead under it on another line.</p>
<p><strong>Step 4:</strong> Click the Update File button on the lower right and&#8230;you&#8217;re done. To get the tooltips to show up in your posts, you must first find the items by searching Thottbot/WoWHead for them. Once you&#8217;re on the item&#8217;s page, copy the URL that&#8217;s in the address bar of your browser, and link whatever text you want to it in your WordPress post writer thingy.</p>
<p>I hope that was fairly simple to understand. I could also post an optional addition to this tutorial of how to use the <a href="http://www.hollemansproductions.com/wordpress-macro-expander-plugin.html">macro expander plugin</a> that I talked about in my <a href="http://wow.wolfdragon.net/2007/10/27/item-tooltips-in-wordpress/">first tooltip tutorial</a>. But I&#8217;ll leave that up to you, the readers, to see if you want it. If you do, just post a comment below asking for it and you shall receive.</p>
]]></content:encoded>
			<wfw:commentRss>http://wow.wolfdragon.net/2007/12/item-tooltips-in-wordpress-revisited/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Item Tooltips in WordPress</title>
		<link>http://wow.wolfdragon.net/2007/10/item-tooltips-in-wordpress/</link>
		<comments>http://wow.wolfdragon.net/2007/10/item-tooltips-in-wordpress/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 02:55:20 +0000</pubDate>
		<dc:creator>Faeldray</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Random Stuff]]></category>
		<category><![CDATA[stats]]></category>
		<category><![CDATA[tooltips]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://wow.wolfdragon.net/2007/10/27/item-tooltips-in-wordpress/</guid>
		<description><![CDATA[If you&#8217;re like me and you can get neither ItemStats or this script to work on your WordPress blog, I&#8217;ve managed to come up with a solution, albeit not as easy as those. If I can get a script to parse some XML the way I want it, I can make it a lot easier. [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re like me and you can get neither <a href="http://itemstats.free.fr/">ItemStats</a> or <a href="http://jesta.us/item/">this script</a> to work on your WordPress blog, I&#8217;ve managed to come up with a solution, albeit not as easy as those. If I can get a script to parse some XML the way I want it, I can make it a <strong>lot</strong> easier. If anyone with PHP and XML experience wants to lend a hand, I&#8217;d sure appreciate it <img src='http://wow.wolfdragon.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here&#8217;s what you need to do:</p>
<p><span id="more-63"></span>First you will need to get the <a href="http://www.hollemansproductions.com/wordpress-macro-expander-plugin.html">macro expander plugin</a>. This is not totally necessary but I highly recommend it because it makes things easier later on.</p>
<p>Next, you need to make some changes to your theme. Do that by going to your admin panel -&gt; Presentation -&gt; Theme Editor. Select the &#8220;Header&#8221; file from the list on the right.</p>
<p>The following code I&#8217;m going to give you was not written by me, but by <a href="http://okoloth.blogspot.com/2007/07/linking-to-world-of-warcraft-items-from.html">Okoloth of Armor Musings</a>. However, the code he wrote is for Blogger blogs and I&#8217;ve just adapted it to work with WordPress.</p>
<p>Anyways, you need to find the <code>&lt;/head&gt;</code> tag in the &#8220;Header&#8221; file. Then add the following code <strong>above</strong> the <code>&lt;/head&gt;</code> tag:</p>
<p><code>&lt;!-- WoW Item Popup v1.3 --&gt; &lt;style type="text/css"&gt;<br />
#wowitemfloat { position:absolute; left:200px; top:200px; z-index:100; }<br />
.poor { color:#9d9d9d !important; text-decoration:none; }<br />
.common { color:#ffffff !important; text-decoration:none; }<br />
.uncommon { color:#1eff00 !important; text-decoration:none; }<br />
.rare { color:#0070dd !important; text-decoration:none; }<br />
.epic { color:#a335ee !important; text-decoration:none; }<br />
.legendary { color: #ff8000 !important; text-decoration:none; }<br />
.artifact { color: #e5cc80 !important; text-decoration:none; }<br />
&lt;/style&gt;</code></p>
<p>If your website has a white background or some other color that will drown out one of the class colors (purple on purple, blue on blue, etc.), you can add a background color to the text. Here&#8217;s an example of how you would do it (look for <code>background-color</code> in particular):</p>
<p><code> .common { color:#ffffff !important; text-decoration:none; }</code></p>
<p>Now, add the followig code <strong>below</strong> the <code>&lt;/head&gt;</code> tag:</p>
<p><code>&lt;!-- WoW Item Popup v1.3 --&gt; &lt;style type="text/css"&gt;<br />
#wowitemfloat { position:absolute; left:200px; top:200px; z-index:100; }<br />
.poor { color:#9d9d9d !important; text-decoration:none; }<br />
.common { color:#ffffff !important; text-decoration:none; background-color:#999999;}<br />
.uncommon { color:#1eff00 !important; text-decoration:none; }<br />
.rare { color:#0070dd !important; text-decoration:none; }<br />
.epic { color:#a335ee !important; text-decoration:none; }<br />
.legendary { color: #ff8000 !important; text-decoration:none; }<br />
.artifact { color: #e5cc80 !important; text-decoration:none; }<br />
&lt;/style&gt;</code></p>
<p>If you haven&#8217;t already, download the <a href="http://www.hollemansproductions.com/wordpress-macro-expander-plugin.html">macro expander plugin</a> and unzip it. Open <code>macro_expander.php</code> in a text editor (like Notepad) and look for the line that says <code>ADD YOUR OWN MACRO FUNCTIONS BELOW THIS LINE</code>. So after this line (obviously), add this code:</p>
<p><code>function macro_item($name='Wolpertinger', $number='32233', $class='rare')<br />
{<br />
return "&lt;a href='http://wow.allakhazam.com/item.html?witem=$number' class='$class' onmouseover='showWowitem(event,$number);' onmouseout='hideWowitem();'&gt;[$name]&lt;/a&gt;";<br />
}</code></p>
<p>Save the file, upload it, and install the plugin per the instructions on the plugin website.</p>
<p>To use it in your posts, type something like this: <a href="http://www.divshare.com/download/2675324-813"><img src="http://www.divshare.com/img/2675324-813.jpg" border="0" /></a></p>
<p>It follows this basic syntax: <a href="http://www.divshare.com/download/2675325-89e"><img src="http://www.divshare.com/img/2675325-89e.jpg" border="0" /></a></p>
<p>All this information can be found on <a href="http://wow.allakhazam.com/">Allakhazam</a> or <a href="http://wowhead.com">Wowhead</a>. The item name is obvious, the item number can be found in the URL of the item page, and the class can be deciphered by the color:</p>
<p>Grey = poor<br />
White = common<br />
Green = uncommon<br />
Blue = rare<br />
Purple = epic<br />
Orange = legendary<br />
Red = artifact</p>
<p>That&#8217;s it! Hopefully these instructions aren&#8217;t too confusing to follow, and I don&#8217;t believe I missed any steps. If anyone has any comments or questions, please post them.</p>
]]></content:encoded>
			<wfw:commentRss>http://wow.wolfdragon.net/2007/10/item-tooltips-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
