tmf33
Forum Replies Created
-
Ahh i see.. preserved core formatting.. sanitization..
Thank you!
Will follow this thread / github for possible solution / updates.
Awesome, thank you very very much!
I guess/hope the rest of it should be straight forward for a coder with wp experience.
Wow! Thank you very much Ravinder! You guys really rock!
Your posted code goes into /my-theme/functions.php?
(have made a child theme for being able to survive updates so can insert it directly)1.create set type donation form which accepts the custom amount
Check.
-> How can we get a custom (calculated) amount into the [amount] field?
For the calc of our:
$custom_amount
Are you able to give me a pointer where to look/start, because the amount needs to be calculated from give_donors_purchase_value (total spent by this donor) * a input variable like eg 0,1.
So the final calc would be something like
(give_donors_purchase_value + another_variable)*0,1I even thought of doing the calc via wpdatatables plugin (as it′s doing the calc.. and i can input eg 0,1 for mulitplikation)
Sadly i′m not a coder.. and I′m having a hard time finding one with enough givewp knowledge. So I′m really thankful for your code above and any further input.
Add
Would it be a good idea to store some sort of transaction id or the timestamp of amount creation to prevent users from donating that same amount twice? (at some point in future the calced amount will change and will output different amount)Totally agreed – thanks for pointing that out.
However.. I love when things just flat out work.. if after an upgrade the site is down.. the easiest way is to blame and remove that plugin (by altering any config or other parts of that ecosystem could start making troubles somewhere else)
hmm well right now i′m not able to get even itsec 6.1.1 working again
(has worked all well till the 6.2.0 update)Have removed/renamed itsec folder and removed itsec from .htaccess. (The latter did the trick to bring up my site again)
[Wed Mar 15 14:30:16 2017] [alert] [client 81.19.xxx.xx] /home/.sites/32/sitexxxxx/web/xxxxx/.htaccess: Options not allowed here, referer: https://www.abc.com/wp-cron.php?doing_wp_cron=1489584616.6276669502258300781250
and
[Wed Mar 15 15:17:23 2017] [alert] [client 212.186.xx.xxx] /home/.sites/32/sitexxxxx/web/xxxxx/.htaccess: Options not allowed here, referer: https://www.abc.com/wp-admin/admin.php?page=itsec&module_type=recommended [Wed Mar 15 15:31:28 2017] [alert] [client 212.186.xx.xxx] /home/.sites/32/sitexxxx/web/xxxxx/.htaccess: Options not allowed here, referer: https://www.abc.com/
renaming (= disabling) .htaccess gets the site + backend working for now.
But of course not the best/safe option
(renamingbetter-wp-security
folder = disabling without any result, still 500 internal error)Here too.
After update from 6.1.1 to 6.2.0 –>> 500 internal server error.
Downloading 6.2.0 and manually replacing files via ftp does not help either.Sorry unable to provide additional info/logs
But i′m on linux shared hosting, not windows.Where can i download 6.1.1 again? (wp repository is already updated to 6.2.0)