Announcement

Collapse
No announcement yet.

Problems after updating

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problems after updating

    I've updated to version 5.4.4 and was running a hook that would pop up a popup when downloading a file with this script
    Code:
    <script>
    (function(){
    window.onload = function() {
    $('.conversation-content-widget').on('click', '.b-post--first .b-post-attachments__item a', function(e) {
    var that = this;
    setTimeout(function() {
    var filename = $('span:nth-child(2)', that).html() || '',
    options, randomOptions,
    arr;
     if ((/\.zip$/i).test(filename) || (/\.pdf$/i).test(filename) || (/\.bin$/i).test(filename) || (/\.rar$/i).test(filename)) {
    options = {
    title: 'Danos soporte',
    message: '<strong>{vb:data userInfo, user, fetchUserSettings} {vb:raw userInfo.username}</strong>,<p>Crear el FORO y mantener este sitio requiere mucho tiempo, energía y dinero. Le agradeceríamos mucho si pudiera donar unos pocos euros para ayudarnos a pagar los costos de alojamiento y dominio, para mejorar continuamente este sitio. ¡Gracias!<img src="core/images/smilies/smile.png" border="0" alt="" title="Smile" smilieid="1" class="inlineimg"><img src="https://foro4g.com/core/images/smilies/Galore/thumbs_thumbsupup.gif" border="0" alt="" title="Thumbs Thumbsupup" smilieid="377" class="inlineimg"/>',
    iconType: 'question'
    };
    arr = [
    {
    buttonLabel: {
    yesLabel: 'Donar ahora',
    noLabel: 'Donare luego'
    },
    onClickYes: function() {
    window.open('https://www.paypal.me/foro/');
    return true;
    }
    },
    {
    buttonLabel: {
    yesLabel: 'Donare luego',
    noLabel: 'Donar ahora'
    },
    onClickNo: function() {
    window.open('https://www.paypal.me/foro/');
    return true;
    }
    }
    ];
    randomOptions = arr[Math.floor(Math.random() * arr.length)];
    $.extend(true, options, randomOptions);
    window.openConfirmDialog(options);
    }
    }, 1000);
    });
    }
    })();
    </script>
    But when the script is executed the forum page gives System error that it may be due

    A cordial greeting

    #2
    Originally posted by chicoynano View Post
    But when the script is executed the forum page gives System error that it may be due
    Due to what? What's the system error message? This sounds like a server error not related to this script which by the way looks familiar.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment

    Users Viewing This Page

    Collapse

    There is 1 user viewing this forum topic.

    • Guest Guest

    Latest Posts

    Collapse

    Working...
    X
    Searching...Please wait.
    An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

    Please push the back button and reload the previous window.'
    An unexpected error was returned: 'Your submission could not be processed because the token has expired.

    Please push the back button and reload the previous window.'
    An internal error has occurred and the module cannot be displayed.
    There are no results that meet this criteria.
    Search Result for "|||"