Back to vBulletin Tips & Tricks

Add Product Version When Exporting Products
by bananalive 14 May 2009

Adds the product version at end of product file name when exporting products.

For example product-yourproduct.xml would be turned into product-yourproduct-v1.2.xml where 1.2 is the product version.
  1. Open admincp/plugin.php
  2. Find
    PHP Code:
    file_download($doc"product-" $vbulletin->GPC['productid'] .  '.xml''text/xml'); 
  3. Replace with
    PHP Code:
    file_download($doc"product-" $vbulletin->GPC['productid'] . '-v' $product_details['version'] . '.xml''text/xml'); 

vblts.ru supports vBulletin®, 2022-2024