Jonáš Jančařík
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Feature Request: Configurable SPAM threshold for ReCAPTCHAOk, I now checked the files of the latest version after updating the plugin – the code is not in the GitHub repository, but there is now a new function which sets the score:
public function get_threshold() { return apply_filters( 'wpcf7_recaptcha_threshold', 0.50 ); }I suppose you can edit the threshold here manually, but it will get overwritten during the next upgrade. You can find it in
wp-content/plugins/contact-form-7/modules/recaptcha.php.- This reply was modified 7 years ago by Jonáš Jančařík.
Forum: Plugins
In reply to: [Contact Form 7] Feature Request: Configurable SPAM threshold for ReCAPTCHASeeing the changelog though, this should be possible now:
5.1.2
Constant Contact: Introduces the contact list selector.
Constant Contact: Introduces the constant_contact additional setting.
reCAPTCHA: Introduces the wpcf7_recaptcha_actions and wpcf7_recaptcha_threshold filter hooks.Forum: Plugins
In reply to: [Contact Form 7] Feature Request: Configurable SPAM threshold for ReCAPTCHAI second this. I had a quick look at how the feature is implemented (https://github.com/wp-plugins/contact-form-7/blob/master/modules/recaptcha.php#L95) and unless I am looking at the wrong place, I don’t think the script is even checking the score.
That line seems to check the site verify response for the ‘success’ property. However, acccording to the docs (and my own experience with implementing v3), the ‘success’ property indicates whether the token was valid, not the result of the verification (which would be the ‘score’ property).
Forum: Plugins
In reply to: [Co-Authors Plus] Display Name, Avatar and Description for both authors.As for displaying info for each of the co-authors, have a look at ROB_ST’s solution at http://pastebin.com/GgJNcswV (found under http://wordpress.org/support/topic/trying-to-display-multiple-author-bios-with-author-bio-box-and-co-authors-plus?replies=2).
I think you should be able to use a slightly modified version of the code you have now and wrap in foreach like this:
foreach( get_coauthors() as $coauthor ): //author info code endforeach;For displaying just the (co)author’s name (not link), I think this should do:
echo $coauthor->display_name;Forum: Plugins
In reply to: [WP Bannerize] [Plugin: WP Bannerize] Does NOT work in networkI thought this had already been fixed so maybe there is another reason why it’s not working for you, but WP Bannerize wouldn’t be able to create a new table in the database. You should check your database – the first WP site has the prefix ‘wp_’, each new sub-site gets a new prefix such as ‘wp_2_’, ‘wp_3_’ etc. If you don’t see a table named ‘wp_X_bannerize’, create it manually (just copy the original one with a new name).
I second this! It would make my life a bit easier.
Forum: Plugins
In reply to: [Simple Facebook Connect] [Plugin: Simple Facebook Connect] SFC Not Workingde_DE should be fine for Facebook according to the list here https://www.facebook.com/translations/FacebookLocales.xml (I’ve just noticed Firefox won’t show the content of this file, Chrome will)
Forum: Plugins
In reply to: [Simple Facebook Connect] [Plugin: Simple Facebook Connect] SFC Not Working(I am not even mentioning the fact that by default WordPress sets the subtag to cs-cz, which I think is totally wrong. But there I am not sure who is to be blamed – the author of the Czech localisation or the original WordPress code…)
Forum: Plugins
In reply to: [Simple Facebook Connect] [Plugin: Simple Facebook Connect] SFC Not WorkingIs it really the case that Facebook forces you to use an invalid language subtag in <html>?
I have the website in Czech, for which the valid subtag would be “cs”, but in order to make the social plugins work, I had to tweak WordPress to render it as “cs_CZ”.
(Now the social plugins will render, but they are still displayed in English. Am I getting this wrong and there is a different sort of setting to set up the displayed language? Or does Facebook deteremine it by some other means? I am a bit lost in this.)
Nonetheless, I think it would be good if the locale for Facebook were taken from somewhere else than the <html> tag – then we could have it valid.
(I use the http://www.iana.org/assignments/language-subtag-registry list of valid subtags suggested by the W3C validation tool.)
Forum: Plugins
In reply to: [WP Bannerize] image size and layoutCheck out wp-bannerize_frontend.php in the plugin folder, lines 140 and 141.
For example, I wanted to change the width of the pictures to 100%, so I commented out line 140 (which apparently gathers image’s dimensions from the database) and edited line 141 (added STYLE attribute), like this:
//$imgsize = ($row->width == 0 || $row->height == 0) ? '' : sprintf('width="%s" height="%s"', $row->width, $row->height ); $o .= '<a' . $nofollow . $javascriptClickCounter . $new_link_class . ' ' . $target . ' href="' . $row->url . '"><img ' . $imgsize . ' style="width: 100%;" alt="' . $row->description . '" src="' . $row->filename . '" />';(Obviously, the ‘ . $imgsize . ‘ part could now be left out.)
There is also the wp-bannerize_widget.php file, which should probably be updated too if you use the plugin as a widget.