Back to vBulletin 3.8 Add-ons

Temporary discount subscription
Mod Version: 0.1, by jmpa

vB Version: 3.8.x Rating: (0 vote - 0 average) Installs: 4
Released: 06 Nov 2009 Last Update: Never Downloads: 0
Not Supported Code Changes  

Say you want to do a temporary/introductory/launching promotion like for instance:

First users who subscribe will have a lifetime discount!

Its not possible with current vb subscription settings, since you would have to put the subscription as "not active" and thus the recurring payments will not be processed.

Here's how to it on a very easy way:

Open payments.php

Find:
PHP Code:
if ($subscription['active']) { 
Replace:
PHP Code:
if ($subscription['active']) {
if (
$subscription['subscriptionid'] > 2) { 


Find:
PHP Code:
eval('$subscriptionbits .= "' fetch_template('subscription_availablebit') . '";');
         } 
Replace:
PHP Code:
eval('$subscriptionbits .= "' fetch_template('subscription_availablebit') . '";');
         }
       } 

Now make sure the promotional subscriptions id are < 2.

That's it, from now on those will not show up.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2025