Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter ranzarth

    (@ranzarth)

    stowmarines.epizy.com

    i use quite some plugins that could interfere with it and i also use a custom page template to have full width without the sidebar that did not come with the theme I use. The theme that I use is call MH Magazine Lite. I use the latest version of wordpress if i’m correct and all the plugins are also up to date.

    Thread Starter ranzarth

    (@ranzarth)

    sorry i had to replace the code so it was working correctly again because I cant leave it broke forever but hopefully you found what was the issue as it is definitively something wrong with the editer.php file

    Plugin Author Asgaros

    (@asgaros)

    Hello again.

    I tested the JavaScript code at your forums-website via adding it with the Chrome Developer Toolbar locally at my client and it is working fine.

    Are you sure that the JavaScript file in asgaros-forum/js/script.js was looking like 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();
            });
    
            // 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);

    And dont forget to change in includes/views/editor.php from:

    <form name="addform" method="post" enctype="multipart/form-data">

    To:

    <form id="forum-editor-form" name="addform" method="post" enctype="multipart/form-data">

    Thread Starter ranzarth

    (@ranzarth)

    Sorry the time you tested it i already changed the code back to the original
    could you do another test? ill leave it as it is for the rest of the day

    Everything is supposed to be where its needed when i changed the code to the new one but it still does the same issue

    Also i forgot to mention that when you are in the new topic page not only are the submit button is missing but the top toolbar is also missing.

    Plugin Author Asgaros

    (@asgaros)

    Okay, very strange. Can you please check your HTML code via this site:
    https://validator.w3.org/#validate_by_input

    I saw that I get a lot of HTML errors there. Maybe they are responsible for this error. For example there seems to be a lot of unclosed html-tags:

    Error: Unclosed element h2.
    From line 202, column 21; to line 202, column 57
    <h2 style=”background-color:#ffffff”>?
    Error: Unclosed element div.
    From line 201, column 19; to line 201, column 44
    <div class=”page-content”>?
    Error: Unclosed element div.
    From line 200, column 10; to line 200, column 45
    ? <div class=”page-content-container”>?
    Error: Unclosed element div.
    From line 167, column 1; to line 167, column 45
    b no-js”>?<div class=”mh-container mh-container-outer”>?<div

    Tested with HTML of this site:
    stowmarines.epizy.com/forums/?view=addpost&id=59

    Thread Starter ranzarth

    (@ranzarth)

    fixed the errors (and fixed a visual footer bug that was bothering me) but the editor is still broke, its something to do with the editor.php file that you told me to edit as that is what is causing the problem. I’m not good with code so I have no idea how to fix it.

    Plugin Author Asgaros

    (@asgaros)

    There are still tons of critical HTML markup-error at your page which have to been fixed first. They can have an impact on it as long as they are not 100% fixed.

    For example:

    https://stowmarines.epizy.com/forums/

    Error: Stray start tag html.
    From line 195, column 1; to line 195, column 6

    A new HTML-tag is opened somewhere in the mid of your existing HTML-tree.

    Error: End tag div seen, but there were open elements.
    From line 399, column 42; to line 399, column 47

    There are closing DIV-tags which were never opened.

    Etc … Please fix them all first. I tested it on many sites now and everything is working well. You can shortly activate a default-theme for testing purposes and can have a look if you have the same problems there as well. If not it is definitely a problem with your theme.

    Thread Starter ranzarth

    (@ranzarth)

    Just tested it by switching to the Twenty Sixteen theme and it is still broke.

    Plugin Author Asgaros

    (@asgaros)

    Hello again,

    have you installed the latest update of the forum? Is it working correctly now?

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Post Button Issue’ is closed to new replies.