The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
5 posters

    Avacweb seems to be causing forum loading problems

    jkh
    jkh
    Forumember


    Posts : 643
    Reputation : 17
    Language : english

    Solved Avacweb seems to be causing forum loading problems

    Post by jkh August 17th 2020, 6:53 pm

    I'm probably posting this in the wrong place again, but I have a member who's reporting problems with the forum loading. The problem isn't happening to me so I don't really know how to explain it, but he says this:

    member wrote:I'm experiencing issues on my desktop (Firefox), but when I use my phone it's fluid. On my desktop, pages take forever to fully load, images/emojis take ages to show (then all show at once). I've often just hit stop loading to get past it and forego images. Tried clearing my cache but it still persists.


    It seems to be something to do with this, which is what the problem was last time: https://www.avacweb.net/like 
    I have no idea what it does, where it is, how to fix it.

    Any help gratefully received.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by skouliki August 17th 2020, 7:45 pm

    Hello

    Do you have a like system javascript with that address?

    Jadster
    Jadster
    Helper
    Helper


    Male Posts : 690
    Reputation : 74
    Language : English
    Location : Omaha, NE

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by Jadster August 17th 2020, 7:50 pm

    Have they tried running a virus scan? Have they tried using a different browser to see if this issue is across multiple browsers?
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by Ape August 17th 2020, 8:11 pm

    Hello yesterday I also had a problem with slow loading on firefox but was ok on Chrome and Edge.

    It soon worked ok after about 15 minuets.
    Today I have had no real problems.

    It could be Firefox them self as i have also seen a slowing on firefox when on a friends site and they are not with FM its hosted by some one else.



    Avacweb seems to be causing forum loading problems Left1212Avacweb seems to be causing forum loading problems Center11Avacweb seems to be causing forum loading problems Right112
    Avacweb seems to be causing forum loading problems Ape_b110
    Avacweb seems to be causing forum loading problems Ape1010
    jkh
    jkh
    Forumember


    Posts : 643
    Reputation : 17
    Language : english

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by jkh August 17th 2020, 8:23 pm

    skouliki wrote:Hello

    Do you have a like system javascript with that address?
    Yes, I've got the new Like/Dislike buttons in place.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by SLGray August 17th 2020, 8:48 pm

    He was referring to a JavaScript that contains this link:  https://www.avacweb.net/like%C2%A0

    If yes, you need to remove it since that like system is not being supported any more.



    Avacweb seems to be causing forum loading problems Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    jkh
    jkh
    Forumember


    Posts : 643
    Reputation : 17
    Language : english

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by jkh August 17th 2020, 8:54 pm

    SLGray wrote:He was referring to a JavaScript that contains this link:  https://www.avacweb.net/like%C2%A0

    If yes, you need to remove it since that like system is not being supported any more.
    Do you mean this green thumbs up thingy?

    Avacweb seems to be causing forum loading problems Tu10
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by Ape August 17th 2020, 8:57 pm

    No there was a old like system that needed a javaScript to work on the forum's hosted with https://www.avacweb.net this gave a like button that told you who liked the post. this was like a little blue button if i remember right.

    best thing to do is look in your JavaScripts and see if you have any codes for the like system if you do post them here so we can take a look.



    Avacweb seems to be causing forum loading problems Left1212Avacweb seems to be causing forum loading problems Center11Avacweb seems to be causing forum loading problems Right112
    Avacweb seems to be causing forum loading problems Ape_b110
    Avacweb seems to be causing forum loading problems Ape1010
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by SLGray August 17th 2020, 9:03 pm




    Avacweb seems to be causing forum loading problems Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    jkh
    jkh
    Forumember


    Posts : 643
    Reputation : 17
    Language : english

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by jkh August 17th 2020, 9:03 pm

    I've only got these Like/Dislike buttons at the bottom of all the posts (aswell as the green thumbs), just the same as the ones on this forum.

    Avacweb seems to be causing forum loading problems Ld11

    Aren't these working anymore?
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by SLGray August 17th 2020, 9:04 pm




    Avacweb seems to be causing forum loading problems Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    jkh
    jkh
    Forumember


    Posts : 643
    Reputation : 17
    Language : english

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by jkh August 17th 2020, 9:09 pm

    APE wrote:No there was a old like system that needed a javaScript to work on the forum's hosted with https://www.avacweb.net this gave a like button that told you who liked the post.  this was like a little blue button if i remember right.

    best thing to do is look in your JavaScripts and see if you have any codes for the like system if you do post them here so we can take a look.
    I've got this code:

    Code:
    var avacweb_like_system = {
              dom_ready : false,
              vote_singular : 'Like',
              vote_plural : 'Likes',
              callback : function(vote, new_button) {
                  $('.corners-bottom', vote.parentNode.parentNode).before(new_button);
              }
            };
            $(function() { avacweb_like_system.dom_ready = true; });
            $.getScript('http://www.avacweb.net/likesystem');

    Ape likes this post

    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by Ape August 17th 2020, 9:30 pm

    jkh wrote:
    I've got this code:

    Code:
    var avacweb_like_system = {
              dom_ready : false,
              vote_singular : 'Like',
              vote_plural : 'Likes',
              callback : function(vote, new_button) {
                  $('.corners-bottom', vote.parentNode.parentNode).before(new_button);
              }
            };
            $(function() { avacweb_like_system.dom_ready = true; });
            $.getScript('http://www.avacweb.net/likesystem');

    Yes delete that one as that one no longer works on our forums.
    also you may have a CSS file for that you may want to remove that one also Wink



    Avacweb seems to be causing forum loading problems Left1212Avacweb seems to be causing forum loading problems Center11Avacweb seems to be causing forum loading problems Right112
    Avacweb seems to be causing forum loading problems Ape_b110
    Avacweb seems to be causing forum loading problems Ape1010
    jkh
    jkh
    Forumember


    Posts : 643
    Reputation : 17
    Language : english

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by jkh August 17th 2020, 9:32 pm

    But if I delete that javascript won't the green thumb disappear?

    How come you've got one here? Have you got a different script?
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by Ape August 17th 2020, 9:37 pm

    No that code is not the same one I don't think.

    Just turn it off by removing all the ticks in the boxes
    Avacweb seems to be causing forum loading problems Captu269


    then see if the green thumbs up is still there

    I am 99.9% sure it is not that code



    Avacweb seems to be causing forum loading problems Left1212Avacweb seems to be causing forum loading problems Center11Avacweb seems to be causing forum loading problems Right112
    Avacweb seems to be causing forum loading problems Ape_b110
    Avacweb seems to be causing forum loading problems Ape1010
    jkh
    jkh
    Forumember


    Posts : 643
    Reputation : 17
    Language : english

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by jkh August 17th 2020, 9:40 pm

    Yeah, I've just done that and the green thumb is still there - how can it still be there?

    I've done a search for avacweb in my CSS but can't see anything.

    So if it's not that code, then what else could the problem be?
    jkh
    jkh
    Forumember


    Posts : 643
    Reputation : 17
    Language : english

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by jkh August 17th 2020, 9:44 pm

    I've got this 'like' code in my CSS:

    Code:
    .LGlike {
              background: #105289;
              padding: 3px;
              border-radius: 4px;
              color: #fff;
              font-size: 10px;
              font-weight: 100;
              text-shadow: -1px 0.5px #888;
              box-shadow: 1px 1px 1px #888;
              cursor: pointer;
              margin-right: 4px;
            }
            .LGvote { margin: 0 5px; }
            .LGnovote {
              filter:Alpha(opacity=50);
              opacity: 0.5;
              cursor: default;
              box-shadow: none;
              text-shadow: none;
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by Ape August 17th 2020, 9:48 pm

    Trust me just remove the code you posted there is no need for it.

    This code is now not working right and it makes your forum lag as the codes no longer work on our systems.

    The thumbs up could be called Vote button or rep button or something like that


    This is the thumbs up code:
    Code:
    //VOTE BUTTON

    $(function() {
          // General Configuration of the plugin
          var config = {
            position_left : true, // true for left || false for right
            negative_vote :false, // true for negative votes || false for positive only
            vote_bar : false, // display a small bar under the vote buttons
         
            // button config
            icon_plus : '<img src="https://i.servimg.com/u/f68/12/23/10/57/heart110.png" alt="+"/>',
            icon_minus : '<img src="https://i.servimg.com/u/f18/18/21/41/30/minus10.png" alt="-"/>',
         
            // language config
            title_plus : 'Like %{USERNAME}\'s post',
            title_minus : 'Dislike %{USERNAME}\'s post',
         
            title_like_singular : '%{VOTES} person likes %{USERNAME}\'s post',
            title_like_plural : '%{VOTES} people like %{USERNAME}\'s post',
         
            title_dislike_singular : '%{VOTES} person dislikes %{USERNAME}\'s post',
            title_dislike_plural : '%{VOTES} people dislike %{USERNAME}\'s post',
         
            title_vote_bar : '%{VOTES} people liked %{USERNAME}\'s post %{PERCENT}'
          },
           
           
          // function bound to the onclick handler of the vote buttons
          submit_vote = function() {
            var next = this.nextSibling, // the counter next to the vote button that was clicked
                box = this.parentNode,
                bar = box.getElementsByTagName('DIV'),
                vote = box.getElementsByTagName('A'),
                mode = /eval=plus/.test(this.href) ? 1 : 0,
                i = 0, j = vote.length, pos, neg, major, minor, percent;
         
            // submit the vote asynchronously
            $.get(this.href, function() {
              next.innerHTML = +next.innerHTML + 1; // add to the vote count
              next.title = next.title.replace(/(\d+)/, function(M, $1) { return +$1 + 1 });
           
              pos = +vote[0].nextSibling.innerHTML;
              neg = vote[1] ? +vote[1].nextSibling.innerHTML : 0;
              percent = pos == 0 ? '0%' : pos == neg ? '50%' : Math.round(pos / (pos + neg) * 100) + '%';
           
              if (bar[0]) {
                bar[0].style.display = '';
                bar[0].firstChild.style.width = percent;
                box.title = box.title.replace(/\d+\/\d+/, pos + '/' + ( pos + neg )).replace(/\(\d+%\)/, '(' + percent + ')');
              }
            });
         
            // revoke voting capabilities on the post once the vote is cast
            for (; i < j; i++) {
              vote[i].href = '#';
              vote[i].className = vote[i].className.replace(/fa_vote/, 'fa_voted');
              vote[i].onclick = function() { return false };
            }
         
            return false;
          },
           
          vote = $('.vote'), i = 0, j = vote.length,
          version = $('.bodylinewidth')[0] ? 0 : document.getElementById('wrap') ? 1 : $('.pun')[0] ? 2 : document.getElementById('ipbwrapper') ? 3 : 'badapple', // version check
       
          // version data so we don't have to redefine these arrays during the loop
          vdata = {
            tag : ['SPAN', 'LI', 'SPAN', 'LI'][version],
            name : ['.name', '.postprofile dt > strong', '.username', '.popmenubutton'][version],
            actions : ['.post-options', '.profile-icons', '.post-options', '.posting-icons'][version],
          },
       
          post, plus, minus, n_pos, n_neg, title_pos, title_neg, li, ul, bar, button, total, percent, span, pseudo, vote_bar; // startup variables for later use in the loop
       
          // prevent execution if the version cannot be determined
          if (version == 'badapple') {
            if (window.console) console.warn('This plugin is not optimized for your forum version. Please contact the support for further assistance.');
            return;
          }
       
          for (; i < j; i++) {
            post = $(vote[i]).parentsUntil('.post').parent()[0];
            bar = $('.vote-bar', vote[i])[0]; // vote bar
            button = $('.vote-button', vote[i]); // plus and minus buttons
            pseudo = $(vdata.name, post).text() || 'MISSING_STRING'; // username of the poster
            ul = $(vdata.actions, post)[0]; // post actions
            li = document.createElement(vdata.tag); // vote system container
            li.className = 'fa_reputation';
         
            if (li.tagName == 'SPAN') li.style.display = 'inline-block';
         
            // calculate votes
            if (bar) {
              total = +bar.title.replace(/.*?\((\d+).*/, '$1');
              percent = +bar.title.replace(/.*?(\d+)%.*/, '$1');
           
              n_pos = Math.round(total * (percent / 100));
              n_neg = total - n_pos;
            } else {
              n_pos = 0;
              n_neg = 0;
            }
         
            // set up negative and positive titles with the correct grammar, votes, and usernames
            title_pos = (n_pos == 1 ? config.title_like_singular : config.title_like_plural).replace(/%\{USERNAME\}/g, pseudo).replace(/%\{VOTES\}/g, n_pos);
            title_neg = (n_neg == 1 ? config.title_dislike_singular : config.title_dislike_plural).replace(/%\{USERNAME\}/g, pseudo).replace(/%\{VOTES\}/g, n_neg);
         
            // define the vote counts
            li.innerHTML = '<span class="fa_count fa_positive" title="' + title_pos + '">' + n_pos + '</span>' + (config.negative_vote ? '&nbsp;<span class="fa_count fa_negative" title="' + title_neg + '">' + n_neg + '</span>' : '');
            span = li.getElementsByTagName('SPAN'); // get the vote count containers for use as insertion points
         
            // create positive vote button
            plus = document.createElement('A');
            plus.href = button[0] ? button[0].firstChild.href : '#';
            plus.onclick = button[0] ? submit_vote : function() { return false };
            plus.className = 'fa_vote' + (button[0] ? '' : 'd') + ' fa_plus';
            plus.innerHTML = config.icon_plus;
            plus.title = (button[0] ? config.title_plus : title_pos).replace(/%\{USERNAME\}/g, pseudo);
         
            span[0] && li.insertBefore(plus, span[0]);
         
            // create negative vote button
            if (config.negative_vote) {
              minus = document.createElement('A');
              minus.href = button[1] ? button[1].firstChild.href : '#';
              minus.onclick = button[1] ? submit_vote : function() { return false };
              minus.className = 'fa_vote' + (button[1] ? '' : 'd') + ' fa_minus';
              minus.innerHTML = config.icon_minus;
              minus.title = (button[1] ? config.title_minus : title_neg).replace(/%\{USERNAME\}/g, pseudo);
           
              span[1] && li.insertBefore(minus, span[1]);
            }
         
            // create vote bar
            if (config.vote_bar) {
              vote_bar = document.createElement('DIV');
              vote_bar.className = 'fa_votebar';
              vote_bar.innerHTML = '<div class="fa_votebar_inner" style="width:' + percent + '%;"></div>';
              vote_bar.style.display = bar ? '' : 'none';
              li.title = config.title_vote_bar.replace(/%\{USERNAME\}/, pseudo).replace(/%\{VOTES\}/, n_pos + '/' + (n_pos + n_neg)).replace(/%\{PERCENT\}/, '(' + percent + '%)');
              li.appendChild(vote_bar);
            }
         
            // finally insert the vote system and remove the default one
            config.position_left ? ul.insertBefore(li, ul.firstChild) : ul.appendChild(li);
            vote[i].parentNode.removeChild(vote[i]);
          }
        });
    mines got a small change to it



    Avacweb seems to be causing forum loading problems Left1212Avacweb seems to be causing forum loading problems Center11Avacweb seems to be causing forum loading problems Right112
    Avacweb seems to be causing forum loading problems Ape_b110
    Avacweb seems to be causing forum loading problems Ape1010
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by Ape August 17th 2020, 9:49 pm

    Yes remove the LG code to Wink

    EDIT:

    here is the one your thinking of with the Thumbs up.

    You will want to keep this one
    https://help.forumotion.com/t142870-improve-the-reputation-system-so-it-counts-votes#972462



    Avacweb seems to be causing forum loading problems Left1212Avacweb seems to be causing forum loading problems Center11Avacweb seems to be causing forum loading problems Right112
    Avacweb seems to be causing forum loading problems Ape_b110
    Avacweb seems to be causing forum loading problems Ape1010
    jkh
    jkh
    Forumember


    Posts : 643
    Reputation : 17
    Language : english

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by jkh August 17th 2020, 9:55 pm

    I haven't got anything like that - should I?

    I did a search for 'vote' and got this:

    Code:
     .LGvote { margin: 0 5px; }
     .LGnovote {
     Â filter:Alpha(opacity=50);
     Â opacity: 0.5;
     Â cursor: default;
     Â box-shadow: none;
     Â text-shadow: none;
     Â   width: 80%;
     Â  }

    I have to say that without that other script the forum is loading super quick for me now. I'll see what the forum member thinks.
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by Ape August 17th 2020, 9:58 pm

    Remove the CSS file YES that one is no good anymore.

    As for the thumbs up:
    The thumbs up system is fine there is no need to remove it as this is not giving you problems.
    The thumbs up system is here
    https://help.forumotion.com/t142870-improve-the-reputation-system-so-it-counts-votes#972462



    Avacweb seems to be causing forum loading problems Left1212Avacweb seems to be causing forum loading problems Center11Avacweb seems to be causing forum loading problems Right112
    Avacweb seems to be causing forum loading problems Ape_b110
    Avacweb seems to be causing forum loading problems Ape1010
    jkh
    jkh
    Forumember


    Posts : 643
    Reputation : 17
    Language : english

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by jkh August 17th 2020, 9:59 pm

    Would it be possible for me to post the whole of my CCS code here so you can have a look at it please?
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by Ape August 17th 2020, 10:02 pm

    It would be to long for that BUT you can send me a test account by PM if you like and i would be more than happy to go over your CSS files and then PM you a list of ones to remove.



    Avacweb seems to be causing forum loading problems Left1212Avacweb seems to be causing forum loading problems Center11Avacweb seems to be causing forum loading problems Right112
    Avacweb seems to be causing forum loading problems Ape_b110
    Avacweb seems to be causing forum loading problems Ape1010
    jkh
    jkh
    Forumember


    Posts : 643
    Reputation : 17
    Language : english

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by jkh August 17th 2020, 10:07 pm

    Thank you Ape, PM sent.
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by Ape August 17th 2020, 10:16 pm

    Your PM has been received with thanks.
    Please read our forum rules: ESF General Rules

    I will PM you a list of code to remove Wink



    Avacweb seems to be causing forum loading problems Left1212Avacweb seems to be causing forum loading problems Center11Avacweb seems to be causing forum loading problems Right112
    Avacweb seems to be causing forum loading problems Ape_b110
    Avacweb seems to be causing forum loading problems Ape1010
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by Ape August 17th 2020, 10:31 pm

    I have looked at your forum and sent you a list of things to remove by PM
    Advice is to keep this "Reputation Improvement" in your JavaScript's code as this is your Thumbs up and all your CSS files are also in that JavaScript so there is no need to look for them in your CSS files Wink

    Please note removing codes is at your own risk this is why we as staff no longer remove the codes without your say so we just advise you of the ones to add or remove.

    Regards ape.

    PS if this is now solved please mark it as solved so we can close it.
    The topic was posted in the wrong section, so I have moved it to the correct section.
    Please read our forum rules: ESF General Rules



    Avacweb seems to be causing forum loading problems Left1212Avacweb seems to be causing forum loading problems Center11Avacweb seems to be causing forum loading problems Right112
    Avacweb seems to be causing forum loading problems Ape_b110
    Avacweb seems to be causing forum loading problems Ape1010
    jkh
    jkh
    Forumember


    Posts : 643
    Reputation : 17
    Language : english

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by jkh August 17th 2020, 10:38 pm

    Thank you Ape, all's sorted now thanks to your help.

    Exceptional service as always :rose:

    Ape likes this post

    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19432
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Avacweb seems to be causing forum loading problems

    Post by Ape August 17th 2020, 10:42 pm

    My pleasure For you Glasses
    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules



    Avacweb seems to be causing forum loading problems Left1212Avacweb seems to be causing forum loading problems Center11Avacweb seems to be causing forum loading problems Right112
    Avacweb seems to be causing forum loading problems Ape_b110
    Avacweb seems to be causing forum loading problems Ape1010

      Current date/time is November 11th 2024, 8:23 pm