Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Asgaros

    (@asgaros)

    Hello,

    have you installed some editor-plugins?

    Did you make some changes to your functions.php or other files regarding the forum-plugin?

    Can you provide me a screenshot?

    Thread Starter coconut6

    (@coconut6)

    Plugin Author Asgaros

    (@asgaros)

    Have you tried to delete the cache of your browser and reload the editor via CTRL + F5?

    If this has no effect, try this:

    Replace asgaros-forum/js/script.js:

    (function($) {
        $(document).ready(function() {
            $('a#add_file_link').click(function() {
                $('<input type="file" name="forumfile[]" /><br />').insertBefore(this);
            });
            $('.uploaded-file a.delete').click(function() {
                var filename= $(this).attr('filename');
                $('.files-to-delete').append('<input type="hidden" name="deletefile[]" value="'+filename+'" />');
                $(this).parent().remove();
            });
    
            // Disable submit-button after first submit
            jQuery.fn.preventDoubleSubmission = function() {
                $(this).on('submit', function(e) {
                    var $form = $(this);
    
                    if ($form.data('submitted') === true) {
                        e.preventDefault();
                    } else {
                        $form.data('submitted', true);
                    }
                });
    
                return this;
            };
            $('#forum-editor-form').preventDoubleSubmission();
        });
    })(jQuery);

    With this:

    (function($) {
        $(document).ready(function() {
            $('a#add_file_link').click(function() {
                $('<input type="file" name="forumfile[]" /><br />').insertBefore(this);
            });
            $('.uploaded-file a.delete').click(function() {
                var filename= $(this).attr('filename');
                $('.files-to-delete').append('<input type="hidden" name="deletefile[]" value="'+filename+'" />');
                $(this).parent().remove();
            });
        });
    })(jQuery);
    Thread Starter coconut6

    (@coconut6)

    Sorry, but I can’t find the file functions.php. Please tell me where it is located.

    Plugin Author Asgaros

    (@asgaros)

    It doesnt matter. When you dont know where to find the file -> You made no changes to it. 🙂

    Plugin Author Asgaros

    (@asgaros)

    Anyway: Do you have a link to your forum? Maybe there is also some problem with your HTML or some other kind of JavaScript code so I can have a look at it.

    Thread Starter coconut6

    (@coconut6)

    I made changes to the file script.js but nothing has changed.

    I don’t know what’s the error, but the forum visible only to registered users, despite the fact that I removed all restrictions.

    http://dobroletauc.ru/forum/

    Thread Starter coconut6

    (@coconut6)

    I returned to base 2016-06-15 and all was well. The error was in the database. Thanks for the help!

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

The topic ‘Minimal editor’ is closed to new replies.