Avacweb seems to be causing forum loading problems
5 posters
Page 1 of 1
Avacweb seems to be causing forum loading problems
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:
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.
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.
Re: Avacweb seems to be causing forum loading problems
Hello
Do you have a like system javascript with that address?
Do you have a like system javascript with that address?
Re: Avacweb seems to be causing forum loading problems
Have they tried running a virus scan? Have they tried using a different browser to see if this issue is across multiple browsers?
Re: Avacweb seems to be causing forum loading problems
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.
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.
Re: Avacweb seems to be causing forum loading problems
Yes, I've got the new Like/Dislike buttons in place.skouliki wrote:Hello
Do you have a like system javascript with that address?
Re: Avacweb seems to be causing forum loading problems
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.
If yes, you need to remove it since that like system is not being supported any more.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Avacweb seems to be causing forum loading problems
Do you mean this green thumbs up thingy?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.
Re: Avacweb seems to be causing forum loading problems
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.
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.
Re: Avacweb seems to be causing forum loading problems
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Avacweb seems to be causing forum loading problems
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Avacweb seems to be causing forum loading problems
I've got this code: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.
- 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
Re: Avacweb seems to be causing forum loading problems
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
Re: Avacweb seems to be causing forum loading problems
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?
How come you've got one here? Have you got a different script?
Re: Avacweb seems to be causing forum loading problems
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?
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?
Re: Avacweb seems to be causing forum loading problems
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;
Re: Avacweb seems to be causing forum loading problems
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:
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 ? ' <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]);
}
});
Re: Avacweb seems to be causing forum loading problems
Yes remove the LG code to
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
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
Re: Avacweb seems to be causing forum loading problems
I haven't got anything like that - should I?
I did a search for 'vote' and got this:
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.
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.
Re: Avacweb seems to be causing forum loading problems
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
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
Re: Avacweb seems to be causing forum loading problems
Would it be possible for me to post the whole of my CCS code here so you can have a look at it please?
Re: Avacweb seems to be causing forum loading problems
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.
Re: Avacweb seems to be causing forum loading problems
Your PM has been received with thanks.
|
I will PM you a list of code to remove
Re: Avacweb seems to be causing forum loading problems
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
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.
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
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.
|
Re: Avacweb seems to be causing forum loading problems
Thank you Ape, all's sorted now thanks to your help.
Exceptional service as always
Exceptional service as always
Ape likes this post
Re: Avacweb seems to be causing forum loading problems
My pleasure
Problem solved & topic archived.
|
Similar topics
» Problems Loading Forum
» Banned Member Causing Problems
» 'Saving work in progress' javascript causing posting problems
» problems with being logged out and images loading
» Forum Not Loading?
» Banned Member Causing Problems
» 'Saving work in progress' javascript causing posting problems
» problems with being logged out and images loading
» Forum Not Loading?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum