deexperte
Forum Replies Created
-
Hi Devin!
Excellent! It works!Thank you for professional supporting.
Greetings
Deexperte
Hello Devin,
The link to page with shortcode:
http://braunenberg.srv-mars.de/spenden/?amount=111The page with embeddedcode:
http://braunenberg.srv-mars.de/spenden/[give_form id=”1649″]
Function:
<?php
/** Give Daten aus URL ind Felder des Spendenforms schreiben beim Aufruf durch URL-Link z.B. Button ————————————— **/
/**
* AUTO-POPULATE AMOUNT, NAME, and EMAIL FROM URL STRING
* Daten aus URL-Aufruf in das Spendenform eintragen
* This jQuery snippet will auto-populate the Give form amount,
* first and last name, and email address from a URL you provide
* EXAMPLE: https://example.com/donations/give-form/?amount=46.00&first=Peter&last=Joseph&[email protected]
*
* CAVEATS:
* — Your form must support custom amounts
* — This snippet only supports one form per page as-is
*/
add_action( ‘give_after_single_form’, ‘give_populate_amount_name_email’ );
function give_populate_amount_name_email() { ?><script>
// Get variable from query string in URL
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split(“&”);
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split(“=”);
if(pair[0] == variable){return pair[1];}
}
return(false);
}
jQuery(document).ready(function( $ ) {
// Get the amount from the URL
var getamount = getQueryVariable(“amount”);
// Set fallback in case URL variable isn’t set
if ( getamount != false ) {
amount = getamount;
} else {
amount = ‘1.00’;
}
var firstname = ( getQueryVariable(“first”) != false ) ? decodeURI(getQueryVariable(“first”)) : ”;
var lastname = ( getQueryVariable(“last”) != false ) ? decodeURI(getQueryVariable(“last”)) : ”;
var email = ( getQueryVariable(“email”) != false ) ? decodeURI(getQueryVariable(“email”)) : ”;
// Populate the amount field, then update the total
if ( $(‘#give-amount’).length > 0 ) {
$(‘#give-amount’)
.val(amount)
.focus()
.trigger(‘blur’);
}
if ( firstname != false && $(‘#give-first-name-wrap input.give-input’).length > 0 ) {
$(‘#give-first-name-wrap input.give-input’)
.val(firstname);
}
if ( lastname != false && $(‘#give-last-name-wrap input.give-input’).length > 0 ) {
$(‘#give-last-name-wrap input.give-input’)
.val(lastname);
}
if ( email != false && $(‘#give-email-wrap input.give-input’).length > 0 ) {
$(‘#give-email-wrap input.give-input’)
.val(email);
}
});
</script>
<?php}
Hello Matt,
I tried it and it works.
But it doesnt work if form is embedded by shortcode in a page.
If I link the URL to the page URL where form is embedded it doesnt work.Have you an idea how URL must defined in such a case?
Thank you.
Greetings
DeexperteThank you Jeremy for giving attention to it.
Greetings
Deexperte
Forum: Themes and Templates
In reply to: [evolve] Compatible to 4.6Hi Denzel Chia,
thanks for your message.
Greetings
DeexperteProblem comes from coexistence of WP Hide Post.
Forum: Fixing WordPress
In reply to: After Updating 4.6 several Plugins stop workingHi ashiquzzaman,
thank you very much! I go further with this information.Greetings
DeexperteForum: Fixing WordPress
In reply to: After Updating 4.6 several Plugins stop workingashiquzzaman thank you for your attention.
Nicos-edvdienst.de
Endless loading pages with King Composer in editorschellinger-smb.de
Endless loading of WP Broken Link CheckerIs there a clue what I can do or look for?
Zhank you.
Greetings
DexperteForum: Plugins
In reply to: [WP Broken Link Status Checker] Scan is crawling but not showing any resultsHi Pau,
Website:
schellinger-smb.deForum: Plugins
In reply to: [WP Broken Link Status Checker] Scan is crawling but not showing any resultsHi, scan doesnt move on. No results. WP4.6.
Tried to deaktivate some plugins above. Deleted the wp-link-status-salt.php.
Still no scanning.
Is there log for to see what the blocking of scan is?Greetings
DeexperteThanks!
Great!
Thanks! Good idea!
Greetings
Deexperte
Hi King-Theme Team,
resolved by modification of CSS in suffusion/backend includesThank you
Forum: Plugins
In reply to: [Testimonial Basics] Change date display to dd-mm-yy?Hello Kevinhaig,
what is it what Google wants?
Will Google still work if I use a CSS-Formating to show Date as german wants to see?
Greetings
Deexperte