![]() |
Thanks, good point. Except when I did the search and replace, the code that I found matched exactly what was supposed to be there.
Can you recommend how to handle this? I really want this plugin. Shall I ask the original poster if they have this working still on their forums and using 3.8 now? |
Quote:
|
OK, I confess I rechecked and found a wrong insertion point for the subscription template. It works now, with 3.8.4.
|
Hi,
can You explain what exactly is to do? Thanks! Quote:
|
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 |
Anyone got the updated instructions to get this working for VB4? Many of the code syntax is now changed for the variables manipulated for the GIFTNAME...but I have not learned the new syntax yet.
|
i would also be interested in this for VB4
|
I'd love to see this implemented into vB4 too, I don't know why it's not a core feature tbh.
|
My team updated this for 4.0.2
https://vborg.vbsupport.ru/showthread.php?t=237351 Thanks for the original mod jamoss! |
Any ideas how to fix it so that "special" names work?
For example: <[X]> will not work as an accepted username. What do I need to edit in order for this mod to support special characters? Fixed: Replace: $goo=$db->query_read_slave("SELECT userid from ". TABLE_PREFIX ."user where username='".$_POST['giftname']."'"); With: $sqlname = htmlspecialchars($_POST['giftname']); $goo=$db->query_read_slave("SELECT userid from ". TABLE_PREFIX ."user where username='".$sqlname."'"); |
All times are GMT. The time now is 03:07 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|