Page 1 of 1

EPN bbcode?

PostPosted: Thu Sep 02, 2010 8:31 pm
Author: Blue-Blood
EPN = eBay Partner Network

I would like to make a EPN bbcode, the problem is you can't add php in the HTML replacement.

I have found this very simple EPN php script
http://www.thewebsiteprofessionals.com/twp-auctions/

Maybe it can be hard coded in bbcode.php.....
I don't really know php all that well.
I have read the learn php in 21 days...lol... didn't really help much!!
This is a little too complex for me...

If someone could take a look please.
if its difficult don't worry about it, but if its an easy edit please please help thanks....

BBCode usage
Code: Select all
[ebay]{INTTEXT}[/ebay]


HTML replacement
Code: Select all
<php>


The script instructions.
Code: Select all
 ##################################################TWP Auctions 3.0 [url=RC2http]RC2http://www.thewebsiteprofessionals.c ... onals.com#[/url]#################################################  Requires PHP5 and CURL.  If you're going to use the optional settings, be careful what you search for - you can easily end up with no results.Don't search for things like "pink shoes" from "ebay_car_seller" in the "books" category.    ##################################################INSTRUCTIONS##################################################  For Wordpress users, you will need to use the Exec-PHP plugin available from:http://www.bluesome.net/post/2005/08/18/50/  STEP 1.Upload twpauctions.php to the root directory of your website or Wordpress blog.  STEP 2.Copy and paste this into your php page or WordPress post.  <php>  You may need to alter the location of twpauctions.php in the last line if you're calling the script from another directory.e.g include "../../twpauctions.php";  ##################################################OPTIONAL SETTINGS##################################################  CUSTOM ID - $customidIf you don't know/care about EPN custom IDs, you can leave this blank.    DISPLAY - $displaySets the number of auction items to be displayed.    NEW WINDOW - $newwindowOpen the eBay links in a new window - use "1" to enable, otherwise leave blank.    CATEGORY - $categoryLimits the search to a specific category. If you leave the $category variable blank, it will search all categories.To get a specific category number, go to listings.ebay.com, tick the "Show category numbers" option, then click the Show button.    SELLER - $sellerLimits the search to a specific eBay seller.    COUNTRY - $countryLimits the search to a specific country.If you leave the $country variable blank, it will default to eBay US.  Australia : auAustria : atBelgium (Dutch) : benlBelgium (French) : befrCanada : caCanada (French) : cafrChina : cnFrance : frGermany : deHong Kong : hkIndia : inIreland : ieItaly : itMalaysia : myNetherlands : nlPhilippines: phPoland : plSingapore : sgSpain : esSweden : seSwitzerland : chTaiwan : twUK : ukUS : us

Re: EPN bbcode?

PostPosted: Thu Sep 02, 2010 9:18 pm
Author: Helter
go to acp/General - Security Settings. Set "Allow php in templates:" to yes. Now you should be able to add the bbcode. be aware that allowing php in templates can be a security risk

Re: EPN bbcode?

PostPosted: Thu Sep 02, 2010 9:28 pm
Author: Blue-Blood
Thanks for the suggestion, but it didn't work..

tried in advertisement mod and didn't work also.

any other ideals?