Plugin adoption#28
Conversation
When two forms are present on a page (especially when one is hidden due to time constraints), AJAX submissions could hang at "waiting" message. Changes: - Move time constraint check before HTML element creation to prevent orphaned message boxes for hidden forms - Add robust AJAX error handling with response validation - Use configured failure messages instead of technical error output - Clear output buffer before JSON response to prevent parsing errors Fixes issue where second form's AJAX submission would not complete when first form was present but hidden by date/time restrictions. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
MODERN ADMIN INTERFACE: - Responsive design for mobile devices - Modern CSS styles (admin-modern.css) - Mobile optimized admin interface GUTENBERG INTEGRATION: - Complete block editor support - New blocks/ directory - Modern WordPress integration - Extended block features (lib_blocks.php) MOBILE RESPONSIVE: - Mobile admin CSS (mobile-admin.css) - Responsive design (mobile-responsive.css) - Touch-optimimized operation
9798022 to
aac4c2a
Compare
|
Hi @wotis. Wenn du möchtest, können wir die Plugin-Übergabe mit diesem PR koordinieren. Ich habe einen Teil der Änderungen hier gelassen und einige in einen neuen Branch geschoben. Wir können den Stand dieses PRs per SVN in das WordPress-Repository hochladen. Du checkst es aus mit: Wenn ich ein Version 16.0.0 veröffentlichen möchte, dann mache ich folgende Schritte in dem dann erstellten Verzeichnis: Das letzte Kommando taggt das Release. Ich würde den Stable tag (in readme.txt) immer auf trunk zeigen lassen, dann brauchst du ihn nicht immer beim Release ändern. Wenn du allerdings im SVN nicht release-fähige Änderungen machen möchtest, dann solltest du den Stable tag setzen, um nicht auf die aktuelle Version zeigen zu lassen. Wenn du das Plugin weiter in GitHub entwickeln willst, dann lösche bitte die existierenden Tags und tagge diesen Stand als 16.0.0. Die weiteren Änderungen kannst du dann so machen wie du möchtest. |
This PR is for handling the plugin adoption. The original submission had some more stuff:
New Features
New CSS styles.
A Gutenberg block that I could not get to work. This will need more changes. However, it does not harm the current functions, so I have taken this as well.
Problem Description
When using two forms via shortcode on the same page, AJAX submission can fail or hang at the "waiting" message. This issue is particularly evident when the first form is hidden due to time/date constraints while the second form is visible and being submitted.
Steps to Reproduce
[cforms]51[/cforms]and[cforms]52[/cforms]Root Cause
<div id="usermessage...a">) even though the form itself is not renderedChanges Made
In
lib_render.php(lines 116-123)cforms2_check_time()check before creating any HTML elementsIn
lib_ajax.php(lines 20-23)ob_clean()to clear any previous output before sending JSONIn
js/cforms.js(lines 185-202)jQuery.post()withjQuery.ajax()for better error handlingImpact
This fix ensures that: