• Login
  • Register
  • Login Register
    Login
    Username:
    Password:
  • Home
  • Members
  • Team
  • Help
  • More
    • YouTube
    • Facebook
User Links
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:

    Quick Links Home Members Team Help
    More Subscribe YouTube Facebook
    D&D Forums - MyBB Plugins & Themes MyBB Ressources Premium MyBB Themes Support unsuported jquery .error() method

     
    • 0 Vote(s) - 0 Average
    unsuported jquery .error() method
    Vitor Costa (APDCA IT)
    Offline

    Junior Member

    Posts: 6
    Threads: 4
    Joined: Nov 2022
    Reputation: 0
    #1
    11-18-2022, 03:55 PM (This post was last modified: 11-18-2022, 04:18 PM by Vitor Costa (APDCA IT).)
    Hi
    I brought the Light Emerald Extended version... Despite this I was using (configuring) the Emerald Light (free) since the future members of the forum are a bit anti-tech and I want to keep layout most simple possible...

    I found my browsers giving an javascript error:

    TypeError: $(".author_avatar img").error is not a function. (In '$(".author_avatar img").error(function () {
    $(this).unbind("error").closest('.author_avatar').remove();
    })', '$(".author_avatar img").error' is undefined)


    this is present templates:

    showthread
    private_read
    private_send
    newthread


    Code:
        <script type="text/javascript">
            $(".author_avatar img").error(function () {
                $(this).unbind("error").closest('.author_avatar').remove();
            });
        </script>


    Seems that que actual JQuery libs versions don't support .error() method anymore... I was thinking on comment (or remove) this script, what could be broke if then?  Or can we replace that with equivalent? 

    I installed the Light Emerald Extended version to compare and it runs same error...

    thanks
    AmazOuz
    Offline

    Administrator

    Posts: 272
    Threads: 34
    Joined: Oct 2017
    Reputation: 11
    #2
    11-19-2022, 01:41 PM
    Hello Smile

    For the theme support please post in this appropriate forum & not the General Support section : https://developement.design/forum/forumd...php?fid=12

    You can comment or remove that code without any worries, I discovered this when I was making some custom work for a customer Wink
    That piece of code is in fact useless in the latest versions of Emerald Extended, it's all right.

    Kind Regards
    Amazouz
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)



    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    D&D Company

    Home · Members · Team · Help · Contact

    © D&D - Powered by MyBB

    Paris, France

    07 53 04 58 86

    business@developement.design

    About the company We are a growing company of web developers & designers, specialized in MyBB plugins & themes. Our work is our propaganda.

    Linear Mode
    Threaded Mode