The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Using a variable in a plug in
Hello, hope someone can help with this problem.
I've created a plug in that calls on an ebay api script (phpBay Pro) to add Ebay listings underneath a product review. The review mod. is TedS' wonderful Product Review Forums ? Research, Reviews & Comparisons and I'm trying to reuse one of its variables: vb:raw product.mfrg. Everything works fine if a keyword is substituted for the vb:raw product.mfrg variable in the plugin; but I'm lost when it comes to what should be the right syntax to enter so that the correct keyword appears (which is the title as defined by the review mod.). The plugin code is: Code:
ob_start(); require_once("./phpbay/ebay.php"); phpBayAPI("{(vb:raw product.mfrg)}", "5", "", "", "", false); $php_include = ob_get_contents(); ob_end_clean(); vB_Template::preRegister('prodforums_product_details',array('php_include' => $php_include)); Dave |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|