####################################
# Easy Niche Store Script - By Vince Edwards 2008 #
####################################

# Re-Build date: 2 April 2008

# The following variables can be parsed directly to this script:
# $nsort - "endingsoonest", "newlylisted", "lowestfirst", "highestfirst"
# $nsearch = Your search keywords
# $nshow - 5, 10, 15, 20, 30, 40, 50 - Number of items to show
# $ncat - The Ebay Category Number. See the Ebay_Configurations.pdf file for these details eg...
# $nebayrsstype, $nebaystoreid, $nebayusername < This allows you to change the feed type dynamically
# $nebayminprice, $nebaymaxprice < You can set the price range dynamically
# NOTE: Some options work with different feeds. eg. Not all options work with AFF, STR, or PER feeds. You have to try and see.
# For more category details see the Ebay_Configurations.pdf file!

# Initial Configuration - You can change these to your preference
$ebayrsstype="AFF"; # Type of EBAY RSS Feed. Options are: (NOTE: ALL UPPERCASE)
# [AFF] - Affiliate Ebay RSS Feed (default)
# [PER] - Your Personal Auctions (Active Listings)
# [STR] - Your Ebay Store Inventory. NOTE: You must actually have an Ebay Store first and you must enable Store RSS Feeds in your Store Management
# You can enable RSS for your store by going to: Marketing Tools > Store Marketing > Listing Feeds > "RSS Feeds for eBay buyers"
$ebayusername="vincenz2001"; # This is needed for the personal auctions [PER] Feed. NOTE: This can now be passed through as nebayusername= in the URL
$ebaystoreid=""; # This is needed for the Ebay Store [STR] Feed. NOTE: This can now be passed through as nebaystoreid= in the URL
# To find your store id number go to "My Ebay", move the mouse over the image of the red door (your store icon) next to your username and feedback.
# Look in the taskbar (of your browser window) at the bottom. It should show you the link. In the link you will see: id=xxxxxxxx
# The xxxxxxxx is your number. eg. I have... http://stores.ebay.com.au/id=37893429?ssPageName=ME:F:ST
# The store id is "37893429" (Ignore the ? and everything else, you just need the number)
$cat="15057"; # Default Category Number - Applies to [AFF] feed * NOTE!!! You cannot use TOP-LEVEL Categories, because if you follow them (in ebay), they just end up
# listing all the sub Category Numbers anyway. You MUST use a sub category number. It is better this way anyway, because it means you have a more targeted niche display.
# See the Ebay_Configurations.pdf file for these details.
# NOTE: You can use 0 for Easynichestore to search ALL Ebay listings and categories (but if you use category 0, you have to use a search keyword)
$ebaycountrycode="0"; # This is the default Country Code (eg. 0 = US , 3 = UK , 15 = AU)
# See the Ebay_Configuraions.pdf file for these details
$ebaylanguage="en_US"; # Default Language - See the Ebay_Configuraions.pdf file for these details
# Sometimes you can display listings in a different country and still keep the language in English, but it is recommended to match the appropriate language
# eg. USA = en_US, Spain = es_ES, France = fr_FR. IMPORTANT NOTE: This also affects the currency that is displayed
$showbuynow="y"; # Show BUYNOW items only - Only works for AFF and PER Modes
$usezend="n"; # Set to "y" if using ZEN Cart or "n" for normal usage
$usejoomla="n"; # Set to "y" if using as a Joomla Module or "n" for normal usage. NOTE: If this is installed by Joomla, this will automatically be updated to "y"
$window_state="_blank"; # On click window state: "_blank" new window, "_parent" current page
$clickbank_name=""; # Enter your Clickbank nickname to earn affiliate commissions when someone clicks on the Easy Niche Store Link at the bottom of the listing
# NOTE: If you wish to remove the Easy Niche Store link at the bottom of the listing, set $clickbank_name to "NONE"
# (You will not be able to earn any affiliate commissions if you do this)
$ebay_showmore="Click here to View more from this Category >"; # This is the message at the bottom of the listing. If you use a different language, you can customize this message if you wish
$strip_addtowatchlist="Add to watch list"; # If you specify the actual "LINK" text here for "Add to watch list", it will be stripped out.
# This is useful because, its not always a desired option AND the link doesnt work properly for some international sites. NOTE: If you
# want to strip it out for another langauge enter the actual link text here eg. French should replace this with "Ajouter à la liste d'Affaires à suivre"
$placementID="711-53200-19255-0"; # This is the Ebay Placement ID (See Ebay Configurations Document)
$campID=""; # <<< IMPORTANT! Campaign ID
$customID=""; # Custom ID
$toolID=""; # Your Tool ID
$ebay_usecharencoding="y"; # Use mb_convert_encoding command (in PHP) "y" or "n". This will convert foreign language characters. You can turn it on or
# off because sometimes its not built in to your PHP server and can cause an error if its turned on. If you turn it off, some special characters might
# not convert and display properly. So, you need to either get a PHP version that has this command, or settle for international characters that might
# not display properly.
$ebay_noitemsfound="No Items were found."; # Customize this error
$ebay_powered_text="Powered by The"; # Customize the bottom link text for "Powered by The" (for different languages)
$ebay_powered_link="Easy Niche Store Script"; # Customize the bottom link text for "EasyNicheStore Script" (for different languages)
$ebay_imagewidth=""; # Customize the image width - NOTE: If you leave blank, images will be displayed with the default RSS image width
$ebay_imageheight=""; # Customize the image height - NOTE: If you leave blank, images will be displayed with the default RSS image height
$searchtitleanddesc="n"; # Search Title and Description
$defaultrss_callmode="FOPEN"; # This is the default method used by the Server for reading the RSS Data from Ebay. The default is FOPEN
# The options are FOPEN or CURL. The script will use both, but whatever you use as a default will be the First system used by the server
# The reason you might want to change this is if you see a long delay before the page comes up. This could be the reason.

# These are the initial Search settings. They apply to ALL listings...
$show="15"; # initial number of items to display - Applies to ALL feeds
$ebayminprice=""; # Set the minimum price. If you leave blank, it will default to any price
$ebaymaxprice=""; # Set the maximum price.
$search="*"; # <<< IMPORTANT! Make sure to put something here if using the affiliate feed! This is the initial search filter.
# NOTE: To search all listings, use "" OR "*" - Applies to ALL feeds (except with a category "0"). You can narrow down the listings within the category by using this filter
$showinitsearch="n"; # Show the initial search filter in the search text box Set to "y" for yes, "n" for no
$showsearchbar="y"; # Show the search bar
$sort="endingsoonest"; # Initial Sort type - Only applies to [AFF] and [PER] feeds...
# Options are: "endingsoonest", "newlylisted", "lowestfirst", "highestfirst"