<?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>Themes &#039;n&#039; Templates Base &#187; Worpress Help</title>
	<atom:link href="http://tntbase.com/Categories/worpress-help/feed/" rel="self" type="application/rss+xml" />
	<link>http://tntbase.com</link>
	<description>Wordpress Themes. Wordpress Help. Internet Marketing... and More</description>
	<lastBuildDate>Sat, 26 Jun 2010 14:51:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Attack on Wordpress &#8211; &#8220;http://www.indesignstudioinfo.com/ls.php&#8221;</title>
		<link>http://tntbase.com/worpress-help/attack-on-wordpress-httpwww-indesignstudioinfo-comls-php/</link>
		<comments>http://tntbase.com/worpress-help/attack-on-wordpress-httpwww-indesignstudioinfo-comls-php/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 18:28:42 +0000</pubDate>
		<dc:creator>Steven Gun</dc:creator>
				<category><![CDATA[Worpress Help]]></category>

		<guid isPermaLink="false">http://tntbase.com/?p=404</guid>
		<description><![CDATA[Some of my blogs have suffered the &#8220;http://www . indesignstudioinfo . com / ls.php&#8221; attack.
What this attack did to my blogs was to add base64 encripted code to one or more .php files on my host.
After searching for a few hours, I found out that this encripted code adds a redirect to some trojan infected [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="width:50px; float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftntbase.com%2Fworpress-help%2Fattack-on-wordpress-httpwww-indesignstudioinfo-comls-php%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftntbase.com%2Fworpress-help%2Fattack-on-wordpress-httpwww-indesignstudioinfo-comls-php%2F" height="61" width="51" /></a></div><p>Some of my blogs have suffered the &#8220;http://www . indesignstudioinfo . com / ls.php&#8221; attack.<br />
What this attack did to my blogs was to add base64 encripted code to one or more .php files on my host.</p>
<p>After searching for a few hours, I found out that this encripted code adds a redirect to some trojan infected websites.</p>
<p>More findings:</p>
<ul>
<li>It seems that GoDaddy hosted sites have experienced this attack more often than others.</li>
<li>Not only Wordpress installations have this problem but also other .php based websites &#8211; Joomla sites were also reported as infected.</li>
<p>The solution to &#8220;http : // www . indesignstudioinfo . com / ls . php&#8221; Wordpress attack was very easy&#8230; after finding it.</p>
<p>I think that Sucuri, the developer of the clean-up script deserves at least a link, so here it is:<br />
<a href="http://blog.sucuri.net/2010/05/simple-cleanup-solution-for-the-latest-wordpress-hack.html">http://blog.sucuri.net/2010/05/simple-cleanup-solution-for-the-latest-wordpress-hack.html</a></p>
<p>Please visit his site for full instructions on the clean-up process. It only takes a few minutes to get rid of those nasty redirects.</p>
<p>Thanks Sucuri!</p>
]]></content:encoded>
			<wfw:commentRss>http://tntbase.com/worpress-help/attack-on-wordpress-httpwww-indesignstudioinfo-comls-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to integrate your Twitter tweets in your Wordpress theme</title>
		<link>http://tntbase.com/worpress-help/how-to-integrate-your-twitter-tweets-in-your-wordpress-theme/</link>
		<comments>http://tntbase.com/worpress-help/how-to-integrate-your-twitter-tweets-in-your-wordpress-theme/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 11:31:09 +0000</pubDate>
		<dc:creator>Steven Gun</dc:creator>
				<category><![CDATA[Worpress Help]]></category>

		<guid isPermaLink="false">http://tntbase.com/?p=345</guid>
		<description><![CDATA[I have been doing a lot of searching for a way to integrate Twitter tweets in my themes without the help of any plugin. If you are reading this, I suppose you are looking for the same thing. Here it is how:
Step 1. Where ever you want your tweets listed (sidebar.php, single.php, footer.php) insert these [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="width:50px; float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftntbase.com%2Fworpress-help%2Fhow-to-integrate-your-twitter-tweets-in-your-wordpress-theme%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftntbase.com%2Fworpress-help%2Fhow-to-integrate-your-twitter-tweets-in-your-wordpress-theme%2F" height="61" width="51" /></a></div><p>I have been doing a lot of searching for a way to integrate Twitter tweets in my themes without the help of any plugin. If you are reading this, I suppose you are looking for the same thing. Here it is how:</p>
<p><strong>Step 1.</strong> Where ever you want your tweets listed (sidebar.php, single.php, footer.php) insert these 2 lines of code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span>ABSPATH<span style="color: #339933;">.</span>WPINC<span style="color: #339933;">.</span><span style="color: #0000ff;">'/rss.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
wp_rss<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'http://twitter.com/statuses/user_timeline/48605233.rss'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>The first line calls the Wordpress built-in RSS functions.<br />
The second line prints your feed. The first parameter is the feed URL and the second one is the number of feed items to list.</p>
<p><strong>Step 2.</strong> Go to you Twitter profile http://twitter.com/yourprofile and in the sidebar search for <strong>&#8220;RSS feed of YourUserName&#8217;s tweets&#8221;</strong>. Right click and copy the link. The link should be something like: http://twitter.com/statuses/user_timeline/87299070.rss. The number is your Twitter Feed ID number.</p>
<p><strong>Step 3.</strong> In the code above replace the URL with the URL you have copied from Twitter.</p>
<p>Save your work and enjoy!</p>
<p>Reference:<a href="http://www.smashingmagazine.com/2008/12/02/10-useful-rss-hacks-for-wordpress/">http://www.smashingmagazine.com/2008/12/02/10-useful-rss-hacks-for-wordpress/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tntbase.com/worpress-help/how-to-integrate-your-twitter-tweets-in-your-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Thumbnails to the WP-Postviews Plugin</title>
		<link>http://tntbase.com/worpress-help/add-thumbnails-to-the-wp-postviews-plugin/</link>
		<comments>http://tntbase.com/worpress-help/add-thumbnails-to-the-wp-postviews-plugin/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 01:13:13 +0000</pubDate>
		<dc:creator>Steven Gun</dc:creator>
				<category><![CDATA[Worpress Help]]></category>

		<guid isPermaLink="false">http://tntbase.com/?p=263</guid>
		<description><![CDATA[What choices do you have for listing most viewed posts?
The first one that comes to my mind is WP-Postviews plugin by Lester Chan. I am using it on many of my Wordpress powered websites, including TNT Base.
You can find it here: http://lesterchan.net/wordpress/readme/wp-postviews.html
Everything works great with Lester&#8217;s plugin, it does what is supposed to, but I [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="width:50px; float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftntbase.com%2Fworpress-help%2Fadd-thumbnails-to-the-wp-postviews-plugin%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftntbase.com%2Fworpress-help%2Fadd-thumbnails-to-the-wp-postviews-plugin%2F" height="61" width="51" /></a></div><p>What choices do you have for listing most viewed posts?</p>
<p>The first one that comes to my mind is WP-Postviews plugin by Lester Chan. I am using it on many of my Wordpress powered websites, including TNT Base.</p>
<p>You can find it here: <a href="http://lesterchan.net/wordpress/readme/wp-postviews.html">http://lesterchan.net/wordpress/readme/wp-postviews.html</a></p>
<p>Everything works great with Lester&#8217;s plugin, it does what is supposed to, but I needed a little bit more. I wanted to show thumbnails of the most viewed posts. All those of you runing photoblogs should know what I am talking about.</p>
<p>So, after hours of searching and even a short talk to Lester, I have come up with my way of doing it.</p>
<p>Here is my solution: <span id="more-263"></span></p>
<p>Basically what we need to do is</p>
<ol>
<li>To create a function that lists the thumbnail of a post</li>
<li>To integrate this function into Lesters great plugin</li>
</ol>
<p>I have found this function here: <a href="http://www.wprecipes.com/how-to-get-the-first-image-from-the-post-and-display-it">http://www.wprecipes.com/how-to-get-the-first-image-from-the-post-and-display-it</a></p>
<p>The function to list thumbnails of the first image in a post goes like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> catch_that_image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">,</span> <span style="color: #000088;">$posts</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$first_img</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
  <span style="color: #990000;">ob_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #990000;">ob_end_clean</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_match_all</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/&lt;img.+src=[\'&quot;]([^\'&quot;]+)[\'&quot;].*&gt;/i'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_content</span><span style="color: #339933;">,</span> <span style="color: #000088;">$matches</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$first_img</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$matches</span> <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$first_img</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">//Defines a default image</span>
    <span style="color: #000088;">$first_img</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/images/default.jpg&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$first_img</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>This must be in the functions.php file inside your theme.<br />
Now, you can list on the home page or anywhere else in your theme the thumbnail of the image in a post by inserting</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> catch_that_image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; style=&quot;width:100px; height:auto;&quot; alt=&quot;&quot; /&gt;</pre></td></tr></table></div>

<p>In order to have this integrated with WP-Postviews plugin you must edit wp-postviews.php which is in the /wp-content/plugins/wp-postviews/ folder of your blog.<br />
In my example we will list the thumbnails for the most viewed posts by category, but you can do it for any of the functions in the same way.<br />
So, in the wp-postviews.php find this line<br />
### Function: Display Most Viewed Page/Post By Category ID<br />
Under this line there must be many $temp rows. Add the following row:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$temp</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;%THUMBNAIL%&quot;</span><span style="color: #339933;">,</span> catch_that_image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$temp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>At this point you have finished coding.<br />
Now, go back to your Dashboard settings for WP-Postviews and in the Template for Most Viewed Posts by Category use the newly created &#8220;%THUMBNAIL%&#8221;.<br />
REMEMBER: thumbnail is a link so use it like</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;%THUMBNAIL&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">/&gt;</span></pre></td></tr></table></div>

<p>Hope it helps and I am right here to answer future questions on this topic. Until then, please leave a comment if you can improve my method or if you know a better one and don&#8217;t forget to subscribe to my RSS if you find this topic interesting.</p>
]]></content:encoded>
			<wfw:commentRss>http://tntbase.com/worpress-help/add-thumbnails-to-the-wp-postviews-plugin/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
