Quote:
Originally Posted by H1MendlessDark
This is a great hack. Great Job! I was just wondering if there is a way to make multiple donations menus. Maybe like [/misc.php?do=donate][/misc.php?do=donate2] and have more than just one donations page. If that is possible, I would put a different price for each page, as it is what I want to do with my site. Thanks. It would be great if I could add multiple menus.
|
You'll need to edit the plugin called "Cyb - PayPal Donate - Ext"
Look for the first line which looks like this:
Code:
if (($_REQUEST['do'] == 'donate') AND $vbulletin->options['cybpaypal_enable'] AND !is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['cybpaypal_cantuse'])))
Follow it all the way to the end, which is just ABOVE this line:
Code:
if (($_REQUEST['do'] == 'donlist') AND $vbulletin->options['cybpaypal_enable'] AND !is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['cybpaypal_cantuse'])) AND is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['cybpaypal_canseelist'])))
Now copy and paste that entire block, but change the request value from donate to donate2. Then, within your copied block, find the line:
Code:
$navbits = construct_navbits(array('' => $vbphrase['cybpaypal']));
Change the name of the phrase to cybpaypal2, and insert a new phrase via the phrase manager identical to the first, but with the contents changed.
If you follow all those steps correctly, you should get what you want. If you are using fixed suggested amounts for both pages, you won't get what you wanted, I'd suggest using only an amount that the user enters themselves.