lukeyates1981
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7 - Campaign Monitor Addon] WordPress 4.0 compatibility issuesHi,
If you need to get this working in WP 4.0.1 with CF7 v4.0.2, you need to change the function mentioned above, but you also need to change:
add_action( ‘wpcf7_admin_before_subsubsub’, ‘add_cm_meta’ );
to:
add_action( ‘wpcf7_admin_notices’, ‘add_cm_meta’ );
around line 40 of cf7-campaignmonitor.php ??
As soon as I found this little gem hidden away on Google, the campaign monitor settings all popped up again and were still set to the previous settings.
P.S. Thanks fmzac for the function change ??
Hi, sorry to re-open this thread after so long, but I am having the same problem on one of our sites.
I have created the app on Twitter, including the Callback URL, copied the consumer keys across etc etc as per the instructions, and when I click the “Authorize New Account” button I get the following message from Twitter:
Whoa there!
The request token for this page is invalid. It may have already been used, or expired because it is too old. Please go back to the site or application that sent you here and try again; it was probably just a mistake.We have one site where we are using this plugin with no problems, and one site where we get this error. They are using different Twitter accounts, but seems kinda strange that we are now getting this error.
FYI, the site with the problem is using Version 2.5.4 of your plugin, and version 3.4.2 of WordPress.
For now I will need to find another twitter plugin, but I am really hoping we can resolve this issue as we really like your plugin ??
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] custom on_sent_ok jQuery actionP.S. the reason it won’t be evaluated is because the line is wrapped in single quotes.
Anything in PHP wrapped in single quotes will be sent literally, anything in double quotes will evaluate variables, although it is still better practice (IMO) to break out of the quotes and concatenate the variable into the line e.g.
$random = "This is a random line with a " . $variable . " in it!";
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] custom on_sent_ok jQuery actionThe first thing I can see is:
header('Location: https://campuzoic.us2.list-manage1.com/subscribe?u=e014c12069e8858be934de06e&id=e5c704e1b9&MERGE0=$email');
At the end of that line where you have
&MERGE0=$email
, the $email wont be evaluated, but will instead send exactly “$email” in the URL. To make it evaluate you will need to change...04e1b9&MERGE0=$email');
with...04e1b9&MERGE0='.$email);
Also, if it isn’t redirecting you could throw in some echo / error_log statements to make sure the code is executing and making it into the if statement.
Hope it helps ??
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] custom on_sent_ok jQuery actionThat seems to be good enough for what I want to do ?? Not a problem that it isn’t Javascript, all I need is to add people’s details to an external newsletter system if they have ticked the box on the form, so a quick cURL should sort that out nicely ??
Thanks very much nagarsoft ??
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] custom on_sent_ok jQuery actionTo clarify, I am looking to pick up the “on_sent_ok” action outside of the plugin in my own functions file, so that I dont have to mod the plugin itself. Something like:
$('.wpcf7').onSentOk(function(data) { });
would be great!
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Use an image for a submit buttonno problem ??
Forum: Fixing WordPress
In reply to: [Contact Form 7] Wrong formatting of the text areasif you want the text above the input element e.g.
Name:
<text element here>then in your CSS add something like:
.wpcf7 input[type="text"], .wpcf7 textarea { display: block; }
that should force all the input elements to display on a new line under the text preceding them.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Resizing form boxestry this in your CSS file:
#contentcol .wpcf7 input[type="text"], #contentcol .wpcf7 textarea { width: 275px; margin: 0px; padding: 2px 3px; }
Adjust as required! I have set the width of 275px as it should fit your sidebar on the site you linked to above ??
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Use an image for a submit buttonI have done this a few times using CSS. The following should help:
.wpcf7-submit { background: url('images/btnsendmessage.png') top left no-repeat transparent; border: none; padding: 0px; margin: 0px; text-indent: -50000px; width: 118px; height: 40px; }
If you stick that in your CSS file it will change the button to use an image instead. You just need to change the path in the “background” url, the “width” and the “height”.
Hope it helps ??
No Problem. There are a few more flaws in your plugin, like the fact that you can only have one set of columns per page, and the code it outputs isn’t always valid HTML (some tags get opened, but not closed, and vice-versa), but it is still pretty much the best columns solution I have found so far…. except the one I just wrote! Once I am happy there aren’t any bugs, I might submit the plugin on here ??
oh… and if the developer is going to update the plugin, please also tidy your code up! it won’t hurt you to press the space / tab button a few times, or even to add a couple of empty lines so that the code is easier to read.
It will make future changes easier for YOU!