https://codecanyon.net/item/dolinker-ultimate-url-shortener-platform/33971483
]]>When I update to latest version of Contact Form 7 it no longer works. Assistance to update the script would be appreciated. I am not a PHP expert and copied the original script from a support page somewhere. Not sure where.
]]>// Deregister Contact Form 7 styles
add_action( ‘wp_print_styles’, ‘aa_deregister_styles’, 100 );function aa_deregister_styles() {
if( ! is_page( array( 69, 260, 211 ) ) ) {
wp_dequeue_script(‘contact-form-7’);
wp_dequeue_script(‘google-recaptcha’);
}
}
For private notes, I did it this way:
$order = new WC_Order($order_id);
if(isset($order_note))
{
$order->add_order_note($order_note);
$order->save();
}
But that’s not what I need.
What I want is to write a customer note.
Could you tell me if it can be done? and how?
Thank you!
Renato
]]>
function members_index($params = array()) {
return include(get_theme_root() . '/includes/index.php');
}
add_shortcode('members-index', 'members_index');
to functions.jsp and the php-script to /themes/includes.
It all works fine, see
https://website.eftcd.de/test/?lst_id=2
The same script, but then standalone can be found here:
https://website.eftcd.de/wp-content/themes/includes
The only issue I run into is that the digit “1” is added at the bottom, and I can not figure out why.
I checked for three things:
(1) The script is not the problem
I added a test shortcode for an empty php-script, it produces nothing (as should) except the “1” (as shouldn’t). See: https://website.eftcd.de/test2/
(2) This particular 5.3.1 WordPress installation is not the problem. I also added the test shortcode to an empty php-script to another 5.2.5 WordPress installation. The same results, a “1” were there shouldn’t be one. See: https://www.holdmetight.eu/test/
(3) I couldn’t find anything on the issue in Google.
What am I doing wrong? Any help is appreciated.
Best,
Hendrik
Where do we place the anr_verify_captcha() script to validate the form? Is there generic php script for it to reside in the functions.php for the child theme?
Thanks!
ED
3 of the jobs send email on completion, but one does not. The email system id SendGrid, so I can see that the email is never sent from the site.
Any ideas what would prevent email from being sent?
This is the offending script:
<?php
// config
$user = “xxxx” ;
$pass = “xxxx” ;
$db = “xxxx” ;
$host = “127.0.0.1” ;
$charset = “utf8”;
$dsn = “mysql:host=$host;dbname=$db;charset=$charset”;
$opt = [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_EMULATE_PREPARES => false,
];
$usrconn = new PDO($dsn, $user, $pass, $opt);
$orgconn = new PDO($dsn, $user, $pass, $opt);
$yesterday = date(“Y-m-d”, strtotime(“-1 days”));
echo “Yesterday: ” . $yesterday;
echo “<br>”;
$user_q = “SELECT * FROM wp_xxx_users
WHERE user_registered
LIKE ‘” . $yesterday . “%'”;
$newbies = $usrconn->query($user_q);
while ($row = $newbies->fetch()) {
$userId = $row[ID];
$loc_q = “SELECT meta_value FROM wp_xxx_usermeta
WHERE user_id
LIKE ‘” . $userId . “‘ AND meta_key
LIKE ‘sc_cf_organization’ LIMIT 1″;
// echo $loc_q;
$locs = $orgconn->query($loc_q);
$orgId = $locs->fetch();
$orgName = “No Org”;
if($orgId[meta_value] !=””){
$org_q = “SELECT post_title FROM wp_xxxx_posts
WHERE id
LIKE ‘” . $orgId[meta_value] . “‘”;
$org = $orgconn->query($org_q);
$orgInfo = $org->fetch();
}
echo ” – ” . $row[display_name] . ” – ” . $row[user_email] . ” – ” . $orgInfo[post_title] . “<br>”;
}
echo “End of List”;
?>
Just wondering how I can upload the script to my site (via C Panel I’m assuming).
And once it’s done is it similar to a plugin where everything is ready to go and I need to adjust the settings or is there more development involved?
]]>