Hello,
i installed this AddOn in version 3.8.4.
There was 1 thing wrong in the payments.php
do NOT add after:
($hook = vBulletinHook::fetch_hook('paidsub_order_start')) ? eval($hook) : false;
i added it after:
if ($_POST['do'] == 'order')
{
//=== HACK: GIFT SUBSCRIPTIONS ===//
if ($_POST['giftname'] != $vbulletin->userinfo['username'])
{
$goo=$db->query_read_slave("SELECT userid from ". TABLE_PREFIX ."user where username='".$_POST['giftname']."'");
if ($giftee = $db->fetch_array($goo))
{
$subid = $giftee['userid'];
$subusername = $_POST['giftname'];
}
else
{
eval(standard_error(fetch_error('pminvalidrecipien t')));
}
}
else
{
$subid = $vbulletin->userinfo['userid'];
$subusername = $vbulletin->userinfo['username'];
}
//=== HACK: GIFT SUBSCRIPTIONS ===//
Then i modified the template: subscription_payment
locate: <td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">
AFTER that, add:
<div class="fieldset">
Subscription for: <strong>$subusername</strong>
</div>
Ok, so it works
Martin
|