Goatpod |
03-22-2012 12:15 PM |
Ted, wonder if you could help with this.
I've written a plugin to incorporate some Ebay ads with the product reviews. What I'm trying to do is grab the Manufacturer name used in the product review as a keyword on which to search ebay and return ads under the product review.
The plug in works fine with the keyword hard coded into the plugin but what I'd like to do is grab the Manufacturer variable created by your mod. for the plugin to use it as a keyword in the Ebay api search.
Code:
ob_start();
require_once("./phpbay/ebay.php");
phpBayAPI("keyword", "5", "", "", "", false);
$php_include = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('prodforums_product_details',array('php_include' => $php_include));
The keyword bit in the code is were the manufacturer variable would appear.
Any pointers as to the proper syntax for the variable would be greatly appreciated but I fully understand if this is beyond the remit of your support for the mod. I did start a thread in the VB4 prog. section but that seems to have drawn a blank so I thought I'd ask your good self.
Cheers
Dave
|