stacyesposito17
Forum Replies Created
-
Forum: Plugins
In reply to: [Seamless Donations is Sunset] Donation only connects on ChromeI was using 4.0.13. My client wanted to switch to Give, so she did. Thanks
Thanks David! It is good practice for me too. I want to understand functions, loops, arrays… so this is helping me to gain better understanding as well.
The donation form looked like this basically:
Donation Information
I would like to make a donation in the amount of:
O $35 O$75 O$100 O OtherI would like this donation to automatically repeat each month
Sponsor a Rainhorse – Enter Amount: O Other
$200 – One Month $1 200 – Six Months $2400 – One Year
*****************************************end******************************************************
Each of these amounts was a different color
$200 – One Month (#098ba3)
$1 200 – Six Months (#959a5a)
$2400 – One Year (#bb3f02)So far I have been able to get this far: http://new.rainhorse.org/donate/
Donation Information
I would like to make a donation in the amount of:
O $35 O$75 O$100 O OtherI would like this donation to automatically repeat each month
Sponsor a Rainhorse – Enter Amount:
$200 – One Month $1 200 – Six Months $2400 – One YearEach time I try to change the colors on the custom sponsor amounts text using span, I break the page. I am not certain how to get that second “O Other” in after “Sponsor a Rainhorse – Enter Amount:” on the form as well.
Again, I hope this is understandable,
Stacyi should have mentioned also that there used to be two of the “Other” buttons one in the default donation amounts and one in the Sponsor a Rainhorse…
Thanks!
http://new.rainhorse.org/donate/
I think yes, something is getting lost in the translation. I actually need the straight default donation amounts for donors, but also in addition I used to have (with the older version) another way to donate under the default amounts.
that looked like this:O Other Sponsor a Rainhorse – Enter Amount:
$200 – One Month $1 200 – Six Month $2400 – One Yearwhich was under the sentence in the “Donation Information” area:
“I would like this donation to automatically repeat each month.”I wish I could attach a screenshot of what it looked like all I can do is send you the code that generated (in the older version of seamless) it which was.
// Repeating donations
if ( ‘true’ == get_option( ‘dgx_donate_show_repeating_option’ ) ) {
$output .= “<p>”;
$output .= “<input type=’checkbox’ id=’dgx-donate-repeating’ name=’_dgx_donate_repeating’/>”;
$output .= esc_html__( “I would like this donation to automatically repeat each month”, “dgx-donate” );
$output .= “</p>”;
}$output .= “</p>”;
$output .= “<p><input type=’radio’ name=’_dgx_donate_amount’ value=’OTHER’ id=’dgx-donate-other-radio’ />”;
$output .= esc_html__( ‘Sponsor a Rainhorse – Enter Amount: ‘, ‘dgx-donate’ );
$output .= “<p>” . ‘<span style=”color: #098ba3;”>$200 One Month</span> <span style=”color: #959a5a;”>$1,200 Six Months</span> <span style=”color: #bb3f02;”>$2,400 One Year</span>’ . “</p>”;
$output .= “<input type=\”text\” class=\”aftertext\” id=\”dgx-donate-other-input\” name=\”_dgx_donate_user_amount\” />”;
$output .= “</p>\n”;$output .= “</div>”; /* dgx-donate-form-section */
$formContent .= $output;
return $formContent;
}What I could use help with is generating the hook that will get this back in the donation information area like it used to be.
I hope this makes sense, and really I appreciate all the help you have tried to give thus far.
Regards,
StacyHi David,
Thanks so much for all you have done to help. This one did the same as mine from above which gives me the line of text I need.$array[‘dgx_donate_repeating’][‘after’] = “<B>Sponsor a Rainhorse – Enter Amount: </B>”;
return $array;http://new.rainhorse.org/donate/
What I cant figure out is how to put the custom giving levels under that line of text that has the necessary radio (circles) and the 3 new custom levels of (color #098ba3) $200 One Month (color#959a5a) $1,200 Six Months color #bb3f02) $2,400 One Year.I’ve tried “<p><span style=”color: #098ba3;”>$200 One Month</span><span style=”color: #959a5a;”>$1,200 Six Months</span><span style=”color: #bb3f02;”>$2,400 One Year</span></p>”;
and several other variations but it breaks each time. I also tried the $array[‘dgx_donate_repeating’][‘prompt’] = ‘another string’
But clearly I am doing something wrong because it breaks the page on every solution I try. I think I mentioned I have worked very little in php, so I am stabbing in the dark here to get this customization back into the donation page. I can’t figure how to get
Sponsor a Rainhorse – Enter Amount:
(radio) $200 One Month (radio) $1,200 Six Months (radio) $2,400 One Yearall with the correct color.
When you have time and if you so desire to help with my dilemma I would be every so grateful.
Regards,
Stacyoops that last one should be (color #bb3f02) $2,400 One Year
Hey David I got this far : http://new.rainhorse.org/donate/
But after it says “Sponsor a Rainhorse – Enter Amount:”
I need it to have donation levels
(color #098ba3) $200 One Month (color#959a5a) $1,200 Six Months (color #959a5a) $1,200 Six MonthsHere is my Seamless-Custom code so far:
function modifyDonationChoices($array) {
$array[‘prompt’][‘dgx_donate_repeating’][‘after’] = “<B>Sponsor a Rainhorse – Enter Amount: </B>”;
return $array;
}add_filter(‘seamless_donations_form_donation_section’, ‘modifyDonationChoices’);
***************************************************************************************************
Each time I try to add what I think the code may be, it breaks the page.
Can you help me with the proper code?Thanks David,
I will hang tight while you do your thing for the 4.0.1 update. I am sure I will need your help to get my original customization back in and working as I do not write or know PHP, if you are willing? I had an old co-worker help me over a year ago with this code to make the customizations I needed on the donation form.
// Repeating donations
if ( ‘true’ == get_option( ‘dgx_donate_show_repeating_option’ ) ) {
$output .= “<p>”;
$output .= “<input type=’checkbox’ id=’dgx-donate-repeating’ name=’_dgx_donate_repeating’/>”;
$output .= esc_html__( “I would like this donation to automatically repeat each month”, “dgx-donate” );
$output .= “</p>”;
}$output .= “</p>”;
$output .= “<p><input type=’radio’ name=’_dgx_donate_amount’ value=’OTHER’ id=’dgx-donate-other-radio’ />”;
$output .= esc_html__( ‘Sponsor a Rainhorse – Enter Amount: ‘, ‘dgx-donate’ );
$output .= “<p>” . ‘<span style=”color: #098ba3;”>$200 One Month</span> <span style=”color: #959a5a;”>$1,200 Six Months</span> <span style=”color: #bb3f02;”>$2,400 One Year</span>’ . “</p>”;
$output .= “<input type=\”text\” class=\”aftertext\” id=\”dgx-donate-other-input\” name=\”_dgx_donate_user_amount\” />”;
$output .= “</p>\n”;$output .= “</div>”; /* dgx-donate-form-section */
$formContent .= $output;
return $formContent;
}Every time you did an update I would simply copy and paste it back in in the dgx-donation.php and I was good to go, but not with the new 4.0 update. I am praying you will be able to help me get things back once you catch a break from fixing bugs.
Sincerely,
Stacy EspositoForum: Plugins
In reply to: [Seamless Donations is Sunset] Customized AmountsI am having an issue with the amounts as well. When I am logged into wordpress dashboard my donation levels come up properly on my donation page with my custom amounts of 75 and 35 showing. However if I am logged off wordpress and bring up my donation page the amount only shows the level of 100. Why?
my custom amounts that I just simply added to the code
75, 35 in this file seamless-donations.php$builtinGivingLevels = array(1000,500,200,100,75,50,35,20,10,5);
I also added two lines here in the code. (I don’t know PHP so I am stabbing in the dark)
if( $noneChecked ) {
// Select 1000, 500, 100, 50 by default
dgx_donate_enable_giving_level ( 1000 );
dgx_donate_enable_giving_level ( 500 );
dgx_donate_enable_giving_level ( 100 );
dgx_donate_enable_giving_level ( 75 );
dgx_donate_enable_giving_level ( 50 );
dgx_donate_enable_giving_level ( 35 );
}
This changed the form options and when I checked the amounts on form options and saved and refreshed the page I was so happy to see the amounts show on my donation page, but only when I am logged into my dashboard. 🙁