Some Links

Barista Gear

Netflix

  • Recent Comments

  • RSS Signup Form

    Get the latest news and stay up to date with the latest tips with Learn How 2 Earn by RSS!

    PhpBay and Drupal

    I’ve often wondered what Drupal was all about as a CMS so I started playing with it the other day.  It’s actually a very flexible tool that could help people create wonderful affiliate sites but me, I’m used to Wordpress.

    However, if you have a Drupal site and want to add some money making auctions from eBay to your site, this is a quick guide on how to do so.

    How to use PhpBay and Drupal

    Set up Drupal and make sure there are no error warnings.  I strongly
    recommend
    that you use Hostgator for Drupal hosting as they offer many configurable options that ensure Drupal will work without a hitch.

    When setting up Drupal, you want to turn on the “PHP filter” module so that you can execute PHP code.

    phpfilter

    Purchase PhpBay if you haven’t done so already and download the API.

    Edit the config.php file to contain your ebay partner network (EPN) ID:
    # CAMPAIGN ID (ALSO KNOWN AS PID OR AFFILIATE ID)
    $config['ebay_pid'] = “123456789″;

    Upload the following to your drupal root directory:
    Folders:
    images
    phpbay
    and the file auctions.php

    Now, go to create a new Drupal page or post and enter your auction code like this example:

    <?php
    require_once(“phpbay/ebay.php”);
    phpBayAPI(“macbook pro”, 15, “111422″, “”);
    ?>

    and make sure to check “php code” in the input box.

    phpcode

    Troubleshoting:
    If after creating the page/post you only see the original code:
    Make sure that you:
    1- turned on the PHP filter
    2- In the composition window, make sure you clicked on “php code”

    If after creating a post the images don’t show up:
    1- make sure that you copied the contents of the .htaccess file provided by phpbay to the TOP of the .htaccess file made by drupal

    Leave a Reply