Unknown script in the template, and postimages addon issues

Started by NO CARRIER, October 26, 2019, 03:24:06 AM

Previous topic - Next topic

NO CARRIER

Hi,

My forum inserts unknown script and I couldn't find it. I searched few default theme files, but with no luck. Well, it's not script, it's the index.php, but inserting gives an error, which I want to avoid.



Where I can find it to disable it? I'm using the default theme. My addons:



The next question is about postimages.org addon. I wrote them email, but they didn't respond.

Addon installed successfully but when try to upload an image, it not post image code into the rich text editor, but posts into the hidden textarea.

How to tell addon to use the rich text editor instead?

Kindred

?? ?? ??

You can not insert index.php into index.template.php... ever
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

NO CARRIER

I don't want to! But I can't find where it is inserted and to remove it. :-(

P.s. I don't know. May be it is some leftovers from the old addons or forum settings. I upgraded to 2.1 from 2.0.13.

NO CARRIER


NO CARRIER

Well, I'm not sure if it is correct, but I made this and now seems postimage is working.

In file Themes/default/index.template.php

function template_html_below()
{
        // Load in any javascipt that could be deferred to the end of the page
        template_javascript(true);

        echo '
        <script>
        $(function () {
            $("#quickReply").on("change", function() {
                sceditor.instance($("#quickReply").get(0)).insert($("#quickReply").val())
                $("#quickReply").val("");
            });
            $("#message").on("change", function() {
                sceditor.instance($("#message").get(0)).insert($("#message").val())
                $("#message").val("");
            });
        });
        </script>
';

        echo '
</body>
</html>';
}


Advertisement: