Evanslooten
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7 - Dynamic Text Extension] WordPress 4.2.2 Compatibility?The plugin is working for me, I am utilizing it with shortcode.
After a thorough examination of the code and some debugging, I have determined it is in the file security/class.wordpress_security_actor function is_allowed() that the plugin is breaking.
When $entity is null, which it is in the my case, it is set to return false. If I return true (CAUTION: This does disable user capability checking) the ATP window functions as expected.
As everyone in the organization with access to the site will have all capabilities, this is as far as I needed to go to correct our issue.
Note I have also checked for the path in the database, based on my previous searching on this issue. I was directed to the ngg_settings, specifically irURL which was an empty string. If you could provide me the correct location of the settings in the database, I would be grateful.
It wasn’t meant to be a workaround, we do not want the trailing wordpress in the url.
I have also used the current available version of your Reset Tool from bitbucket, which did not resolve this issue.
Forum: Plugins
In reply to: [Email Before Download] Change Sender Name in the email.Andrea,
I am not the author of the plugin, but I also had this problem and have coded in my own fix.
If you look at the email-before-download.php file for the plugin, you’ll find this piece of code (version 3.2.1) around line 247:
if (isset($_POST['email_from'])){ $emailFrom = htmlspecialchars_decode(urldecode($_POST['email_from']));; }
If you add the following code below the previous snippet (replacing the values with your desired settings), it will change the email from parameters on the emails with download links.
$emailFrom = '"Display Name" <[email protected]>';
The final result should be something similar to:
if (isset($_POST['email_from'])){ $emailFrom = htmlspecialchars_decode(urldecode($_POST['email_from']));; } //CHANGE THESE VALUES TO MATCH YOURS $emailFrom = '"DISPLAY NAME" <[email protected]>'; if (strlen($emailFrom) > 0 ) $emailFrom = 'From: '. $emailFrom . "\r\n";