<?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>Earn A Living Online &#187; auction listings</title>
	<atom:link href="http://keithjameslock.com/tag/auction-listings/feed/" rel="self" type="application/rss+xml" />
	<link>http://keithjameslock.com</link>
	<description>Learn to make money online</description>
	<lastBuildDate>Thu, 15 Sep 2011 18:46:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>phpBay Pro: The Extended Manual &#8211; Inserting phpBay Code Into Theme Files</title>
		<link>http://keithjameslock.com/phpbay-pro-extended-manual-inserting-phpbay-code-theme-files/</link>
		<comments>http://keithjameslock.com/phpbay-pro-extended-manual-inserting-phpbay-code-theme-files/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 05:05:16 +0000</pubDate>
		<dc:creator>Keith Lock</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[auction listings]]></category>
		<category><![CDATA[auctions]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[parameters]]></category>
		<category><![CDATA[php code]]></category>
		<category><![CDATA[phpbay]]></category>
		<category><![CDATA[table of contents]]></category>
		<category><![CDATA[theme files]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://keithjameslock.com/?p=1042</guid>
		<description><![CDATA[<p>It&#8217;s been about a week since my last addition to the phpBay extended manual. My intention was to post a new piece of the manual each day until completion, but you know how things go. I&#8217;ve been quite busy. And, well, I&#8217;m going a bit out of order as well. I was going to write [...]</p><p>More info: <a href="http://keithjameslock.com/phpbay-pro-extended-manual-inserting-phpbay-code-theme-files/">phpBay Pro: The Extended Manual &#8211; Inserting phpBay Code Into Theme Files</a></p>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been about a week since my last addition to the <a href="http://keithjameslock.com/phpbay-pro-extended-manual-introduction/"><u>phpBay extended manual</u></a>. My intention was to post a new piece of the manual each day until completion, but you know how things go. I&#8217;ve been quite busy. And, well, I&#8217;m going a bit out of order as well. I was going to write about phpBay keyword tracking, and I still will, just not today. I&#8217;ll get to it soon enough.</p>
<p>This post covers inserting phpBay code into theme files. I came up with a cool idea for using it and thought I&#8217;d share it. I have a couple blogs that are 99% hands off, and have automated content, and I wanted a way to insert some auctions to the end of the posts without having to do it manually. Doing it this way you will end up with exactly the same auctions at the end of each post, which won&#8217;t be as targeted, but it&#8217;s still proven to work.</p>
<p>You could add some extra php code to show different auctions based on the current category, but I won&#8217;t get into that here. If I get enough requests in the comments I&#8217;ll edit this post.</p>
<p>This will be handy if you have an auto-blog on one main topic. I&#8217;m sure you can think of some other applications for it, this is just one purpose.</p>
<p>Look through the table of contents below if you want to jump to a different section first. Below the TOC are the quick steps to add phpBay code to your theme files.</p>
<p><strong>Table Of Contents</strong>

<ul>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-introduction/"><u>Introduction</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-installation-activation/"><u>Installation/Activation</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-configuration/"><u>Configuration</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-testing/"><u>Testing</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-parameter-settings/"><u>Per-Post/Per-Page Settings</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-geotargeting/"><u>Geo-Targeting</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-making-images-clickable/"><u>Making The Images Clickable</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-replacing-wordpress-search/"><u>Replacing WordPress Search With eBay Search</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-inserting-phpbay-code-theme-files/"><u>Inserting phpBay Code Into Theme Files</u></a></li>
<li><a href="http://keithjameslock.com/go/phpbay.php" target="_blank" rel="nofollow"><u>Buy phpBay Pro (20% off coupon: DA9CD69F42)</u></a></li>
<li><a href="http://keithjameslock.com/go/9stepz5" target="_blank" rel="nofollow"><u>From Picking A Market To Building/Managing Your phpBay (Or BANS) Site</u></a></li>
</ul></p>
<p>Remember, phpBay has a sidebar widget you can use, but if you want more control, and want to add auction listings to the bottom of all posts, follow these steps&#8230;</p>
<ol>
<li>In your WordPress admin panel, go to Appearance -> Editor.</li>
<li>On the right side you should see a file called Single Post (single.php), click it to open up the file in the editor on the left.</li>
<li>In this file there should be a command to show the post content. Look for <em>the_content()</em>. Just below that you can insert the phpBay code.</li>
<li>You can use any and all parameters here just like you would in a post or page, the example below shows just the keyword and the number of posts.
<p><img src="http://keithjameslock.com/images/pcode13.jpg" alt="" width="345" height="109" border="0" />
</li>
</ol>
<p><strong>EDIT (June 9th, 2010)</strong>: Use the code below if you want to show different auctions based on Category ID or Post/Page ID&#8230;</p>
<p>First.. you want to get the ID, to do that for the catgeory, under the &#8216;Posts&#8217; menu click &#8216;Categories&#8217;, hover over the category name and in the status bar (bottom of browser) you will see a URL. The URL links to a page that allows you to edit the category. Don&#8217;t click it, instead just look at the end of the URL&#8230; the catgeory ID is after the &#8216;cat_ID=&#8217; part.</p>
<p>It&#8217;s a similar process for posts/pages. Go to &#8216;Edit&#8217; under &#8216;Posts&#8217; or &#8216;Pages&#8217;. Hover over the post or page name and in the status bar at the end of the URL you&#8217;ll find the ID just after the &#8216;post=&#8217; portion.</p>
<p>Now.. for most themes you can use the Category ID and/or Post ID values in single.php. For pages, use page.php.</p>
<p>The code for showing phpBay ads for a specific category&#8230; (replace {ID} with the actual Category ID that you found using the steps above)</p>
<p>NOTE: I just remembered&#8230; you can also use the category name rather than the ID if you prefer.</p>
<p><a href="http://keithjameslock.com/txt/codephpbay1.txt" target="_blank"><u>Text File With Code</u></a></p>
<p>For displaying ads for a specific post you usually just add proper phpBay code to the post add/edit screen. However if you want to show ads for a specific post but have more control of where it goes (instead of just the body of the post) then you can do that by editing the theme. Just use the code above but instead of the &#8216;in_category&#8217; command use &#8216;is_single&#8217;.</p>
<p>More info: <a href="http://keithjameslock.com/phpbay-pro-extended-manual-inserting-phpbay-code-theme-files/">phpBay Pro: The Extended Manual &#8211; Inserting phpBay Code Into Theme Files</a></p>]]></content:encoded>
			<wfw:commentRss>http://keithjameslock.com/phpbay-pro-extended-manual-inserting-phpbay-code-theme-files/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>phpBay Pro: The Extended Manual &#8211; Making The Images Clickable</title>
		<link>http://keithjameslock.com/phpbay-pro-extended-manual-making-images-clickable/</link>
		<comments>http://keithjameslock.com/phpbay-pro-extended-manual-making-images-clickable/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 03:50:29 +0000</pubDate>
		<dc:creator>Keith Lock</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[auction listings]]></category>
		<category><![CDATA[ebay]]></category>
		<category><![CDATA[ebay listings]]></category>
		<category><![CDATA[html template files]]></category>
		<category><![CDATA[ppc]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[textpad]]></category>

		<guid isPermaLink="false">http://keithjameslock.com/?p=958</guid>
		<description><![CDATA[<p>Continuing on with the phpBay Extended Manual&#8230; In this post I will explain how to make the images clickable (linking to the auction) in your phpBay eBay listings. If you are a bit more advanced and just want the answer: locate the html template files and edit the html adding in the proper tokens. If [...]</p><p>More info: <a href="http://keithjameslock.com/phpbay-pro-extended-manual-making-images-clickable/">phpBay Pro: The Extended Manual &#8211; Making The Images Clickable</a></p>]]></description>
			<content:encoded><![CDATA[<p>Continuing on with the <a href="http://keithjameslock.com/phpbay-pro-extended-manual-introduction/"><u>phpBay Extended Manual</u></a>&#8230; In this post I will explain how to make the images clickable (linking to the auction) in your phpBay eBay listings. If you are a bit more advanced and just want the answer: locate the html template files and edit the html adding in the proper tokens. If you need more help, please read on.</p>
<p>BTW, did you notice that I added a couple extra sections to the manual? I will also be covering SEO and PPC keyword tracking. Also, I will explain how to add phpBay code into your themes and give an example of when that might be useful. Those sections will be up in a few days. So far, I have had the luxury of having these posts pre-written because they exist already in a PDF manual I wrote. The new ones however have to be done from scratch, plus added to the PDF. I shouldn&#8217;t be delayed too long, if at all, I still want to try and get a post a day out to you. Anyway read on for the steps&#8230;</p>
<p><strong>Table Of Contents</strong>

<ul>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-introduction/"><u>Introduction</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-installation-activation/"><u>Installation/Activation</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-configuration/"><u>Configuration</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-testing/"><u>Testing</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-parameter-settings/"><u>Per-Post/Per-Page Settings</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-geotargeting/"><u>Geo-Targeting</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-making-images-clickable/"><u>Making The Images Clickable</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-replacing-wordpress-search/"><u>Replacing WordPress Search With eBay Search</u></a></li>
<li><a href="http://keithjameslock.com/phpbay-pro-extended-manual-inserting-phpbay-code-theme-files/"><u>Inserting phpBay Code Into Theme Files</u></a></li>
<li><a href="http://keithjameslock.com/go/phpbay.php" target="_blank" rel="nofollow"><u>Buy phpBay Pro (20% off coupon: DA9CD69F42)</u></a></li>
<li><a href="http://keithjameslock.com/go/9stepz5" target="_blank" rel="nofollow"><u>From Picking A Market To Building/Managing Your phpBay (Or BANS) Site</u></a></li>
</ul></p>
<p><strong>Making The Images Clickable</strong></p>
<p>To make the images in your auction listings clickable you just have to make a quick change to one or two of the template files that phpBay provides.</p>
<p>There is one file to change if you use columns and another file to change if you don&#8217;t. It doesn&#8217;t hurt to change them both in case you switch between a single column and multiple columns on occasion. Here&#8217;s how&#8230;</p>
<ol>
<li>Download the files &#8216;template.ebay.results.html&#8217; and &#8216;template.column.results.html&#8217; located in the &#8216;/wp-content/plugins/phpBay/templates/&#8217; folder, to your computer.</li>
<li>Open &#8216;template.ebay.results.html&#8217; with a text editor. If using <a href="http://www.textpad.com/download/" target="_blank" rel="nofollow"><u>TextPad</u></a>, right-click it and click TextPad and it will open with TextPad. If you double clicked it, it will likely just open in a browser and you won&#8217;t be able to edit it, so you will want to open it like mentioned.</li>
<li>Locate the line with the code: (it&#8217;s all on one line, it&#8217;s just wrapped in the image below)
<p><img src="http://keithjameslock.com/images/pcode6.jpg" alt="" width="454" height="46" border="0" /></p>
<p>and change it to: (again, it&#8217;s wrapped)</p>
<p><img src="http://keithjameslock.com/images/pcode7.jpg" alt="" width="471" height="62" border="0" /></p>
</li>
<li>Save the file and re-upload, overwriting the existing file.</li>
<li>Now open &#8216;template.column.results.html&#8217; with a text editor.</li>
<li>Locate the line with the code:
<p><img src="http://keithjameslock.com/images/pcode8.jpg" alt="" width="441" height="25" border="0" /></p>
<p>and change it to: (wrapped code below)</p>
<p><img src="http://keithjameslock.com/images/pcode9.jpg" alt="" width="496" height="34" border="0" /></p>
</li>
<li>Go back to your test page and Refresh (F5) it to see your changes.</li>
</ol>
<p>Next we&#8217;ll <a href="http://keithjameslock.com/phpbay-pro-extended-manual-replacing-wordpress-search/"><u>replace the WordPress search</a></u> with a search that displays phpBay results instead.</p>
<p>More info: <a href="http://keithjameslock.com/phpbay-pro-extended-manual-making-images-clickable/">phpBay Pro: The Extended Manual &#8211; Making The Images Clickable</a></p>]]></content:encoded>
			<wfw:commentRss>http://keithjameslock.com/phpbay-pro-extended-manual-making-images-clickable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

