You're browsing: KeithJamesLock.com » phpBay Pro » Blog article: phpBay Pro: The Extended Manual – Geo-Targeting

This eBay Auction Affiliate Tool For WP Is Simply Amazing!

Everyone knows that folks buy and sell stuff like crazy on eBay, but did you know that YOU can EASILY profit from that buying and selling frenzy?

CLICK HERE TO SEE HOW TO EASILY INTEGRATE EBAY AUCTION LISTINGS INTO YOUR SITES AND BLOGS AND GET PAID FOR EACH CLICK!


Use coupon code DA9CD69F42 for 20% off!

Bookmark and Share

phpBay Pro: The Extended Manual – Geo-Targeting

Wed, Jul 22, 2009

phpBay Pro

This post is a continuation of the phpBay Pro Extended Manual. You can use Table of Contents below if you want to start from the beginning or jump to a different section.

Table Of Contents

There is a free plugin available that will automatically display auctions for the country of your visitor when they arrive on your site. Note: This is different than the WordPress Geo-Targeting Script that can be used for displaying any type of content to visitors from other countries. This one is specific to phpBay.

The plugin was created by Alan (a phpBay Pro user) and is available free (donation-ware) from his blog after opting-in to his newsletter. Let's get the plugin now...

  1. Visit http://www.psp-tubes.net/wordpress/phpbay-plugin
  2. Scroll to the very bottom because it is mostly an out-dated post.
  3. Enter your name and email and click 'Send me the plugin'. You may be brought to a page that says 'Whoops! That Page Isn't Here'. Don't worry, there is just something funky going on with his subscription pages. Perhaps he should switch to Aweber ;) At any rate, you should quickly get an email with the Subject: 'ACTION REQUIRED: Confirm your subscription.'. Click the link in the email to confirm your subscription. You will again probably be brought to a page that says 'Whoops! That Page Isn't Here'. Again, don't worry. You should be receiving another email shortly with the link for the plugin.
  4. Open the email with the Subject: 'phpBay plugin download details'.
  5. Click the 2nd link in the email to download the plugin.

Now that we have the plugin, let's get it installed...

  1. Unzip the file
  2. Upload 'geo.php', 'combo.php', 'country.php' and 'geoip.inc' to '/wp-content/plugins/phpBay/includes/' on your server. Note: You will be overwriting 2 files, 'geo.php' and 'combo.php', so you may want to backup the ones on the server first. Renaming them on the sever before uploading the new ones will work.
  3. Download the free database file from maxmind.com. Click here. Under the 'Binary Format' section, click the link 'Download the latest GeoLite Country Binary Format' to save the database to your computer. It will be compressed in .gz format. The free tool WinRAR can decompress the file, much like unzipping a file.
  4. You will be left with a file called 'GeoIP.dat'. It needs to be uploaded to '/wp-content/plugins/phpBay/includes/' in Binary mode. If using FileZilla to upload, go to Transfer > Transfer type > Binary. You can check maxmind.com for a new version each month. I, myself, just update it every 6 months. When updating, just overwrite the existing file on the server.

That should do it! To be certain it works, switch the default country in the phpBay settings to one other than your own temporarily. Make sure the sorting options or the eBay logo is displayed (discussed earlier) because having one or both of those turned on will also turn on the country dropdown box. Now visit the test page that you created earlier. You should be now viewing auctions in your own country rather than the default country. If you still see the default country it might be because the page is cached. If using Firefox you can usually press Ctrl+F5 to fix that.

Notice something about the auctions? The darn images aren't clickable. We'll get to that next.

Related posts:

  1. phpBay Pro: The Extended Manual – Replacing WordPress Search
  2. phpBay Pro: The Extended Manual – Installation and Activation
  3. phpBay Pro: The Extended Manual – Inserting phpBay Code Into Theme Files
  4. phpBay Pro: The Extended Manual – Testing
  5. phpBay Pro: The Extended Manual – Configuration

Bookmark and Share

© Earn a living online in your pj's

Share this post:
http://keithjameslock.com/wp-content/plugins/sociofluid/images/digg_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/reddit_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/delicious_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/technorati_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/google_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/myspace_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/facebook_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/sphinn_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/mixx_48.png

If you enjoyed this post, make sure you subscribe to my RSS feed!

, , , , ,

 

Enter your first name and email address below to receive exclusive money making tips.
First Name:
Your Email:
Spam protection; double opt-in:
Using AWeber Autoresponder


8 Responses to “phpBay Pro: The Extended Manual – Geo-Targeting”

  1. Tao Says:

    Ah!

    I thought that the phpBay geotargetting features were something you had to pay extra for!

    I ended up writing my own WP plugin that does the same, but then shows Amazon items at the bottom too or alternatively shows Amazon listings if there are no eBay items available.

    I might splash the cash for phpBay one day, but my plugin works at the moment!

  2. Keith James Lock Says:

    Nope, they are free.

    Sounds like a cool plugin man.. I hear ya, just use what works. If I had php skills I’d be drumming up all kinds of plugins.

  3. Cherie Says:

    I tried turning on both the ebay logo and sorting options but I still don’t get the drop down box. Any suggestions?

    Thanks

  4. Keith James Lock Says:

    Not sure to be honest, It’s always just worked for me. Reply to my email and I can have a look…

    Actually, a cpl things come time mind..you didn’t do any major editing of the files other than the suggested ones did you? Also, do you have the latest version from the phpBay site? Some people are downloading torrents (illegally) and the source code has been altered maliciously and sometimes doesn’t work properly. In the cases where it does work properly, the hacker is getting the commissions.

    Anyway, reply to my email and we’ll try to sort it out..

  5. Steve Lott Says:

    Hey Keith,

    Is there a way we can modify the code of this to only show geo-targeted ebay links for US, CA, UK and AU?

    If anyone comes to my sites from countries other than those 4, I want them to see US links.

    I set everything up the way you have outlined above but when I check my sites from IPs in countries like France a lot of my ebay links disappear and the “No products were found matching your keywords” message appears.

    It’d be great if I could just have it show these people the US links instead of it trying to find products specific to non-english-speaking countries.

    Does what I’m asking make sense to you?

    Thanks in advance for any input, and I just purchased your wordpress geotargeting script for my sidebar ads, and so far it seems to be working great

  6. Keith James Lock Says:

    Hi Steve,

    First you set your default in the phpBay admin to U.S. which I’m sure is already the case. Then download /wp-content/plugins/phpBay/includes/combo.php and near the top you will see the countries that show up. Delete lines for each country that you want to remove. Make a backup first :)

    And…thanks for purchasing the script…

    Let me know if you run into issues…

  7. Steve Lott Says:

    Thanks for the great tip bro

    At first it wasn’t working but then I went into the country.php file as well and deleted the countries in there too and then it worked perfectly.

    Good looks

  8. Keith James Lock Says:

    oops, oh ya.. well, now other ppl have the solution, but in two parts :) thanks Steve


Leave a Reply