dumboxp
Forum Replies Created
-
Forum: Plugins
In reply to: [Gutenberg Forms - WordPress Form Builder Plugin] Block does not workSame problems and errors for me with WordPress 6.4.2.
The “Gutenberg Forms”-block is not available in the block editor and cannot be added or edited without editing the HMTL-code. Submitting the form fails with an error “Es gab einen kritischen Fehler auf deiner Website.”.Thank you very much! The entry in .htaccess works like charm!
Forum: Plugins
In reply to: [Gutenberg Forms - WordPress Form Builder Plugin] Form Date of SubmissionHi,
?? voting for adding date and time (timestamp) to the export. I strongly suggest to use an international date/time format e.g. ISO “YYYY-mm-dd”, “HH:MM:SS” or “%Y-%m-%dT%H:%M:%S%z”.
I would also suggest to change the date format to ISO format in the form fields {{other:date}}! Note, that neither the US- nor the UK-format are specific for the rest of the world ??
?? voting for placeholders! Placeholders would allow to implement forms without any labels to drastically reduce the overall size of forms.
Dear Munir,
I integrated Gutenberg Forms now in several websites i am maintaining and i really like the Plugin very much!
BUT Spam increased a quite lot since then!
I have the strong feeling that the integration of Akismet does not work correctly because other form-plugins (like Jetpack) do not use reCaptcha at all and never accepted this huge amount of spam!
Unfortunately, I cannot prove this and I have really no idea how to prove this.
?? I really like the easy approach that @codestylist suggested by adding a “honeypot-field” that must be kept empty.
@codestylist I implemented the honeypot-form-field with Gutenberg Forms by adding an optional Text-field set “Pattern (RegExp)” to
^$
and “Additional CSS class(es)” tod-none
. Make sure to include the following custom CSS code:.d-none { display: none !important; }
to make sure this additional form field is not displayed. At least the form in the UI cannot be submitted.The form fields do not seem to be correctly evaluated by the backend, so submitting the form values directly to the API without JS will not be blocked. ;-(
Hi @munirkamal,
Thanks for the update! The Google reCaptcha v2 tickbox is now displayed and working again in the forms!
But it is not possible to disable it! Changes in the settings of the form on the page or disabling the recaptcha-plugin does not remove the Captcha.
Could you please clarify if the plugin works with both v2-captcha types:
a) tickbox
b) invisible.It seems that the tickbox version is supported only. In this case a hint in the doc or info-popup would be good to know which type needs to be configured at Google.
thanks, Roland
Dear Munir,
Thanks for your fast response! I can confirm that the encoding issue is now fixed!
Thanks very much!
- This reply was modified 4 years, 7 months ago by dumboxp.
Hi Munir,
any update on this rather important and annoying bug of encoding the messages?
regards, Roland
That’s so great!!
Thank you very much for this elegant solution! ??????
RolandAlso voting for a “Hidden Field”-type and default-values for all form-field-types.
Thanks Greg for your quick reply!
The solution using
_adverts_attachments_order
is great! Onlyjson_decode()
was missing, to get the image-id from the serialized string in post-meta.Here the working function to set the 1st image in the gallery as featured-image:
/** * Sets 1st image in gallery as featured image for $post_id * @param int $post_id ID of a post for which we wish to force featured image * @return int 1 if success less or equal to 0 on failure */ function force_featured_image( $post_id ) { if( $post_id < 1 ) { return -1; // No images uploaded } else if( $post_id > 0 && get_post_thumbnail_id( $post_id ) ) { return -2; // Has main image selected } $attachment_order = get_post_meta( $post_id, '_adverts_attachments_order', true ); $keys = json_decode($attachment_order); // Deserialize array of image ids $first_image_id = $keys[0]; update_post_meta( $post_id, '_thumbnail_id', $first_image_id ); return 1; // Set featured image }
By adding the following Custom CSS, the 1st image in the gallery is highlighted by a 2px black border.
/* Highlight 1st image in adverts gallery */ .adverts-gallery-upload-item:nth-of-type(1) { border: 2px solid black; }
Looking forward to all the upcoming versions of WPAdverts!
brForum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] FailedI just saw the new update of the plugin “WP Adverts – Mark As Sold”. After installing the new version 1.0.2 the issue is solved!
Thank!
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] FailedHi Greg,
i am experiencing the same issue when viewing *marked as sold* adverts, i get the following error:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Wpadverts_Mas_Frontend::get_icon(), 0 passed in /home/…/web/wp-content/plugins/wpadverts-mark-as-sold/includes/class-wpadverts-mas-frontend.php on line 93 and exactly 1 expected in /home/…/web/wp-content/plugins/wpadverts-mark-as-sold/includes/class-wpadverts-mas-frontend.php:238
Could you please also send me the solution how to solve this?
br, Roland
Hi Greg,
thanks for your tip!
Here the complete css/js-code i am now using to track advert-interactions:WordPress > Design > Custom CSS
/* Hide part of phone number on adverts page */ .adverts-button a[href*='tel:'] { display: inline-block; line-height: 12px; width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/themes/templatename-child/functions.php
/** * Show phone number & tracking of phone clicks and message submits with Google Analytics **/ add_action( 'wp_head', 'my_custom_js' ); function my_custom_js() { echo <<<EOF <script type='text/javascript'> jQuery(function($) { $(".adverts-button a[href*='tel:']").parent().click( function() { // Show full phone number (hide/show needed for Google Chrome Bug) $(".adverts-button a[href*='tel:']").css("width", "auto") .css("overflow", "initial") .css("text-overflow", "initial") .hide() .show(); // ga('send', 'event', 'phone', 'click' ); // alternative tracking gtag('event', 'phone-click', { 'event_category': 'adverts', event_label: '' }); return false; }); $("input[name='adverts_contact_form']").click( function() { // ga('send', 'event', 'message', 'click'); // alternative tracking gtag('event', 'message-submit', { 'event_category': 'adverts', event_label: '' }); }); }); </script> EOF; }
- This reply was modified 6 years, 8 months ago by dumboxp.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] “WPAdverts Ads”-Widgets: hide sold adsHi Greg, you are the best! Thank you very much – it works great!
marked topic as solved.
br, Roland