Resource icon

[Aayush] PayPal Donate 1.04

No permission to download
Aayush,

Can you fix this error please? See below.



This addon is generating an error also...

Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Data too long for column 'note' at row 1 - library/Zend/Db/Statement/Mysqli.php:214
Generated By: IMADBCI, 29 minutes ago
Stack Trace
#0 /home/hobbymac/public_html/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /home/hobbymac/public_html/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /home/hobbymac/public_html/library/Zend/Db/Adapter/Abstract.php(574): Zend_Db_Adapter_Abstract->query('INSERT INTO `aa...', Array)
#3 /home/hobbymac/public_html/library/XenForo/DataWriter.php(1638): Zend_Db_Adapter_Abstract->insert('aayush_ppdonate', Array)
#4 /home/hobbymac/public_html/library/XenForo/DataWriter.php(1627): XenForo_DataWriter->_insert()
#5 /home/hobbymac/public_html/library/XenForo/DataWriter.php(1419): XenForo_DataWriter->_save()
#6 /home/hobbymac/public_html/library/Aayush/PaypalDonate/ControllerPublic/Donation.php(84): XenForo_DataWriter->save()
#7 /home/hobbymac/public_html/library/XenForo/FrontController.php(351): Aayush_PaypalDonate_ControllerPublic_Donation->actionDonate()
#8 /home/hobbymac/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /home/hobbymac/public_html/index.php(13): XenForo_FrontController->run()
#10 {main}
Request State
array(3) {
["url"] => string(47) "http://www.hobby-machinist.com/donations/donate"
["_GET"] => array(0) {
}
["_POST"] => array(7) {
["amount"] => string(2) "10"
["custom_amount"] => string(0) ""
["note"] => string(323) "Hi I am trying to confirm my registration but have still have not received the confirmation email, I tried getting my lost password when I was Chiroone at email dserpen1@tampabay.rr.com and I also tried registering under a new user name DABCI with email IPMDRS@tampabay.rr.com

Can you help out? Looks like a great site"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(8) "/donate/"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
Today at 3:42 AM
 

@Aayush Agrawal
Code:
<?xml version="1.0" encoding="utf-8"?>
<addon addon_id="paypalDonate" title="[Aayush] Paypal Donate" version_string="1.03" version_id="4" url="" install_callback_class="Aayush_PaypalDonate_Install_Controller" install_callback_method="install" uninstall_callback_class="Aayush_PaypalDonate_Install_Controller" uninstall_callback_method="uninstall">

Still showing 1.03 after update. Just wanted to let you know.
 
Is it possible to hide the navbar donate button

Could edit the Aayush_PD_donation_goal_sidebar template for the style you are using.
Code:
<xen:if is="{$visitor.canDonate} && !{$xenOptions.PD_DisableDonations}">
    <xen:require css="Aayush_PD.css" />
 
    <xen:set var="$donationReceived"><xen:callback class="Aayush_PaypalDonate_Helper" method="getDonationReceived"></xen:callback></xen:set>
    <xen:set var="$receivedPercent">{xen:number {xen:calc '({$donationReceived} / {$xenOptions.PD_GoalAmount}) * 100'}, 0}</xen:set>
 
    <xen:if is="{$receivedPercent} > 100">
        <xen:set var="$receivedPercent">100</xen:set>
    </xen:if>
 
    <div class="DonationGoal section">
        <div class="secondaryContent">
            <h3><a href="{xen:link donate}">{xen:phrase donate}</a></h3>
            <div class="minorHeading donationNote">
                {xen:phrase goal_amount_for_this_month}: {$xenOptions.PD_GoalAmount} {$xenOptions.PD_Currency}, {xen:phrase received}: {$donationReceived} {$xenOptions.PD_Currency} ({$receivedPercent}%)
            </div>
         
            <div class="ProgressMeter">
                <span class="ProgressGraphic" style="width:{$receivedPercent}%;">&nbsp;</span><span class="ProgressCounter">{$receivedPercent}%</span>
            </div>
            <xen:comment>
            <a href="{xen:link donate}#donateForm" class="donateButton"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" alt="{xen:phrase donate}" /></a>
        </div>
     
        <div class="sectionFooter">
            <a href="{xen:link donations/list}">{xen:phrase view_donations}</a>
        </div>
        </xen:comment>
    </div>
</xen:if>
All I did was move the <xen:comment> up to include the button line. May add a <br /> if needed space between sidebar blocks.
 
Last edited:
RE: Installation:
  • Upload the contents of "Upload" folder to forum root.
  • Import XML file.
  • Config Admin Panel -> Options -> Paypal Donate

OK, so i upload to the complete folder to the root (domain/forum)

where do you add your PayPal info?
and is there anything else that needs to be done?
also I have a donate tab already, Can I change the name of the tab to fundraiser etc.
Thanks
 
Last edited:
RE: Installation:
  • Upload the contents of "Upload" folder to forum root.
  • Import XML file.
  • Config Admin Panel -> Options -> Paypal Donate

OK, so i upload to the complete folder to the root (domain/forum)

where do you add your PayPal info?
and is there anything else that needs to be done?
also I have a donate tab already, Can I change the name of the tab to fundraiser etc.
Thanks

  • Config Admin Panel -> Options -> [Aayush] Paypal Donate: is where you would enter any details.
  • library to library folder
  • donate_callback.php to forum directory
If these are done should be good to go.

donate_phrase.webp
Look in phrase to for the above phrase.

edit_phrase.webp
Replace with a phrase of your choice and save.
Edit example: Language:English (US) or the language used for phrases instead of Master search for phrase and change.
 
Last edited:
@Sam F Just understand the editing of the phrase will need attention upon an update to the addon otherwise upon update will overwrite the phrase. In my opinion that is the easiest way.
 
@Sam F Just understand the editing of the phrase will need attention upon an update to the addon otherwise upon update will overwrite the phrase.
If you are editing the master language, which IMHO you should never do. If you are using a subsidiary language, then you change it in this and you don;t have this issue.
 
If you are editing the master language, which IMHO you should never do. If you are using a subsidiary language, then you change it in this and you don't have this issue.
Maybe, maybe not. That is why we share our ideas. To gather opinions of others. There are several ways to alter a phrase. Or someone could edit template for the style that contains the phrase in question. Replacing with your own title.
I am not sure at the moment if that is just one template.

I had wanted to record how to change back ground color of progress bar. For my own reference and others.

In Aayush_PD.css find
Code:
    .DonationGoal .ProgressMeter .ProgressGraphic
    {
        display: inline-block;
        width: 0%;
        height: 26px;
        background: @primaryLight url('@imagePath/xenforo/gradients/category-23px-light.png') repeat-x top;
        text-align: right;
    }
Change @primaryLight section to suit your needs. Example
Code:
background: @uix_primaryColor url('@imagePath/xenforo/gradients/category-23px-light.png') repeat-x top;
 
Also I find [bd] Widget Framework 2.6.3 was making the donate button on donation form nonfunctional. I will look deeper into the reason later.

Edit: ::solved:: Apparently it was how I had Clear Contents on Aayush_PD_index
 
Last edited:
Top Bottom