Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • paze87

    (@paze87)

    For me too, the log is full and some translations are not saved … and then not displayed in the frontend!

    WordPress 6.7.1
    TranslatePress – Business
    Version 1.4.8
    TranslatePress – Multilingual
    Version 2.8.9
    Elementor Pro
    Version 3.25.4

    PHP 8.3

    • This reply was modified 1 week ago by paze87.
    Thread Starter paze87

    (@paze87)

    Hey,
    I’ve let it go for another week now.
    Screenshot:
    https://cl.ly/d6df82ee640c

    I just don’t know what to do with it now, O.o

    BR, Patrick

    Thread Starter paze87

    (@paze87)

    Hey Richard,
    yes i can confirm that! It’s really strange …
    BR, Patrick

    • This reply was modified 5 years, 5 months ago by paze87.
    Thread Starter paze87

    (@paze87)

    Hey Fabian,
    thanks for your response ??
    That’s it, thank you.
    BR, Patrick

    • This reply was modified 5 years, 6 months ago by paze87.
    Thread Starter paze87

    (@paze87)

    Hey Fabian,
    thank you ?? ! This works:

    
    // ------ Validate => select_appointment ------
    function acfValAppointment( $valid, $value, $field, $input ){
    	
    	// bail early if value is already invalid
    	if( !$valid ) {
    		return $valid;
    	}
    	
    	// load data
    	$appointmentField = get_field('select_appointment');
    
    	if( empty($appointmentField) ) {
    		$valid = 'Bitte w?hlen Sie einen Termin aus!';
    	} 
    	// return
    	return $valid;
    }
    add_filter('acf/validate_value/name=select_appointment', 'acfValAppointment', 10, 4);
    
    

    Another question:

    Is there a option to implement => HoneyPot or Captcha to restrict spam entrys?

    Br and thank you, Patrick

    Thread Starter paze87

    (@paze87)

    Heyho,
    yes …

    That’s the code (in the child functions.php) :

    $plugin_array[‘juw_mce_button, juw_mce_dropbuttonHeadlines, juw_mce_dropbuttonHeadUnderlines’] = get_stylesheet_directory_uri() .’/js/juw-mce-button.js’;

    Here are the full code (functions.php):

    
    function juw_add_mce_button() {
                // check user permissions
                if ( !current_user_can( 'edit_posts' ) &&  !current_user_can( 'edit_pages' ) ) {
                           return;
                   }
               // check if WYSIWYG is enabled
               if ( 'true' == get_user_option( 'rich_editing' ) ) {
                   add_filter( 'mce_external_plugins', 'juw_add_tinymce_plugin' );
                   add_filter( 'mce_buttons', 'juw_register_mce_button' );
                   }
    }
    add_action('admin_head', 'juw_add_mce_button');
    
    // register new button in the editor
    function juw_register_mce_button( $buttons ) {
                array_push( $buttons, 'juw_mce_button, juw_mce_dropbuttonHeadlines, juw_mce_dropbuttonHeadUnderlines' );
                return $buttons;
    }
    
    // declare a script for the new button
    // the script will insert the shortcode on the click event
    function juw_add_tinymce_plugin( $plugin_array ) {
              $plugin_array['juw_mce_button, juw_mce_dropbuttonHeadlines, juw_mce_dropbuttonHeadUnderlines'] = get_stylesheet_directory_uri() .'/js/juw-mce-button.js';
              return $plugin_array;
    }
    

    The file are here:

    themes -> divi_child -> js -> juw-mce-button.js

    And here is the js :

    
    (function() {
           tinymce.PluginManager.add('juw_mce_button', function( editor, url ) {
               editor.addButton('juw_mce_button', {
                           text: 'Column',
                           icon: false,
                           onclick: function() {
                                    var selected_text = editor.selection.getContent();
                                    var return_text = "<div class='intro'>" + selected_text + "</div>";
                                    editor.execCommand("mceInsertContent", 0, return_text);
                                }
                 });
           });
    })();
    
    /*TRWK HEADLINES*/
    (function() {
            tinymce.PluginManager.add('juw_mce_dropbuttonHeadlines', function( editor, url ) {
               editor.addButton( 'juw_mce_dropbuttonHeadlines', {
                     text: 'Trwk überschriften',
                     icon: false,
                     type: 'menubutton',
                     menu: [
                           {
                            text: 'Kategorie Headline (85px - 80pt)',
                            onclick:
                               function() {
                                    var selected_text = editor.selection.getContent();
                                    var return_text = "<span class='trwk_catHead trwk_luxBrut'>" + selected_text + "</span>";
                                    editor.execCommand("mceInsertContent", 0, return_text);
                                }
                            },
                           {
                            text: 'Kategorie Subline (15px - 15pt )',
                            onclick: 
                               function() {
                                    var selected_text = editor.selection.getContent();
                                    var return_text = "<span class='trwk_catSub'>" + selected_text + "</span>";
                                    editor.execCommand("mceInsertContent", 0, return_text);
                                }
                           },
                          {
                            text: 'Themen + Box Headline (53px - 50pt)',
                            onclick:
                               function() {
                                    var selected_text = editor.selection.getContent();
                                    var return_text = "<span class='trwk_themBoxHead trwk_luxBrut'>" + selected_text + "</span>";
                                    editor.execCommand("mceInsertContent", 0, return_text);
                                }
                            },
                           {
                            text: 'Zwischenzeile (20px - 20pt)',
                            onclick: 
                               function() {
                                    var selected_text = editor.selection.getContent();
                                    var return_text = "<span class='trwk_between'>" + selected_text + "</span>";
                                    editor.execCommand("mceInsertContent", 0, return_text);
                                }
                           },
                           {
                            text: 'Unterzeile (22px - 20pt)',
                            onclick: 
                               function() {
                                    var selected_text = editor.selection.getContent();
                                    var return_text = "<span class='trwk_underline'>" + selected_text + "</span>";
                                    editor.execCommand("mceInsertContent", 0, return_text);
                                }
                           },
                           {
                            text: 'Bildunterschrift (16px - 17pt)',
                            onclick: 
                               function() {
                                    var selected_text = editor.selection.getContent();
                                    var return_text = "<span class='trwk_imageTitle'>" + selected_text + "</span>";
                                    editor.execCommand("mceInsertContent", 0, return_text);
                                }
                           },
                           {
                            text: 'h1 (60px - 60pt)',
                            onclick: 
                               function() {
                                    var selected_text = editor.selection.getContent();
                                    var return_text = "<h1 class='trwk_h1 trwk_luxBrut'>" + selected_text + "</h1>";
                                    editor.execCommand("mceInsertContent", 0, return_text);
                                }
                           },
                           {
                            text: 'Headline - Slider (70px - 70pt)',
                            onclick: 
                               function() {
                                    var selected_text = editor.selection.getContent();
                                    var return_text = "<span class='trwk_sliderHead trwk_luxBrut'>" + selected_text + "</span>";
                                    editor.execCommand("mceInsertContent", 0, return_text);
                                }
                           }                     
                           ]
                  });
            });
    })();
    
    /*TRWK HEADUNDERLINES*/
    (function() {
            tinymce.PluginManager.add('juw_mce_dropbuttonHeadUnderlines', function( editor, url ) {
               editor.addButton( 'juw_mce_dropbuttonHeadUnderlines', {
                     text: 'Trwk Unterüberschriften',
                     icon: false,
                     type: 'menubutton',
                     menu: [
                           {
                            text: 'Trwk H2 Underline 15PT',
                            onclick:
                               function() {
                                    var selected_text = editor.selection.getContent();
                                    var return_text = "<span class='trwk_h2Underline15PT'>" + selected_text + "</span>";
                                    editor.execCommand("mceInsertContent", 0, return_text);
                                }
                            },
                           {
                            text: 'Trwk H2 Underline 20PT',
                            onclick: 
                               function() {
                                    var selected_text = editor.selection.getContent();
                                    var return_text = "<span class='trwk_h2Underline20PT'>" + selected_text + "</span>";
                                    editor.execCommand("mceInsertContent", 0, return_text);
                                }
                           }
                           ]
                  });
            });
    })();
    
    
    Thread Starter paze87

    (@paze87)

    hello,
    yes! You’re right it never should sits in the core files, but the function and the files are in the child-themes functions.php …
    Before the 4.9.8 update all works perfectly ?
    BR and thanks,
    Patrick

    Thread Starter paze87

    (@paze87)

    Hey Jen,
    ah ok! FYI iv’e changed nothing on the code(Filter-Settings), this comes right out of the box from the plugin.
    BR and thanks, Patrick

    Thread Starter paze87

    (@paze87)

    Hey Jen,
    yes the xml output works, but if is in a app or a reader it doesn’t work!
    It’s only functional if the URL has no parameter, i hope you can understand my problem ^_^
    BR and thanks for your help,
    Patrick

    Thread Starter paze87

    (@paze87)

    Hey Jen,
    Thank you for your help and sorry for my late response !
    It’s the theme function => “Minify And Combine Javascript Files”.
    Without, it works fine.
    BR, Patrick

    Thread Starter paze87

    (@paze87)

    Hey,
    thanks for your reply!!
    The version of “Another WordPress Classifieds Plugin (AWPCP)” is -> 3.8.2 …

    I’ll check in the next days if there is a plugIn or theme conflict.
    BR, Patrick

    Thread Starter paze87

    (@paze87)

    Hello,
    ok, i created a ticket on your site.
    BR, Patrick

    Thread Starter paze87

    (@paze87)

    Hey Eric,
    thanks for your quick reply.
    Br, Patrick

Viewing 13 replies - 1 through 13 (of 13 total)