Michael.A
07-12-2010, 03:16 AM
sup guy well am back i was in the army anyways..
i was work on my first plugin and am stack.
first is the hook name am using "hook = paidsub_start" for the payments.php under Available Subscriptions and if that php code am trying to use is it right!
am trying to have it where you can pick where you want to add it under Available Subscriptions or above it
switch ($vbulletin->options['paypal_subscription_location'])
{
case 1: $vbulletin->templatecache['subscription'] = str_replace('<if condition="$show['subscriptions']">', '<if condition="$show['subscriptions']">'.$vbulletin->templatecache['paypal_subscription'], $vbulletin->templatecache['subscription']); break;
case 2: $vbulletin->templatecache['subscription'] = str_replace('$vbphrase[validity_periods_marked_indicate]', '$vbphrase[validity_periods_marked_indicate]'.$vbulletin->templatecache['paypal_subscription'], $vbulletin->templatecache['subscription']); break;
}
thanks
i was work on my first plugin and am stack.
first is the hook name am using "hook = paidsub_start" for the payments.php under Available Subscriptions and if that php code am trying to use is it right!
am trying to have it where you can pick where you want to add it under Available Subscriptions or above it
switch ($vbulletin->options['paypal_subscription_location'])
{
case 1: $vbulletin->templatecache['subscription'] = str_replace('<if condition="$show['subscriptions']">', '<if condition="$show['subscriptions']">'.$vbulletin->templatecache['paypal_subscription'], $vbulletin->templatecache['subscription']); break;
case 2: $vbulletin->templatecache['subscription'] = str_replace('$vbphrase[validity_periods_marked_indicate]', '$vbphrase[validity_periods_marked_indicate]'.$vbulletin->templatecache['paypal_subscription'], $vbulletin->templatecache['subscription']); break;
}
thanks