Like Button disappeared again
5 posters
Page 1 of 1
Like Button disappeared again
I installed the "Like" button a couple months ago but this week it has disappeared. I am using the following Javascript:
and the following CSS:
The Javascript placement is in the Topics and activated. (I tried All the Pages, but it made no difference.) I also changed phpbb2 to phpbb3 in the Javascript and it made no difference either. The reputation system is activated. Is there something wrong with the host?
- Code:
var like_version = 'phpbb2';
var DOM_IS_READY = false;
$(function(){DOM_IS_READY=true;});
var vote_singular = 'Like';
var vote_plural = 'Likes';
$.getScript('http://msoft.olympe.in/like')
and the following CSS:
- Code:
.LGlike {
background: #105289;
padding: 3px;
border-radius: 4px;
color: #fff;
font-size: 10px;
font-weight: bold;
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;
}
The Javascript placement is in the Topics and activated. (I tried All the Pages, but it made no difference.) I also changed phpbb2 to phpbb3 in the Javascript and it made no difference either. The reputation system is activated. Is there something wrong with the host?
unownus likes this post
Re: Like Button disappeared again
Hello,
May you point us to where you got the code from? Be it a support topic or website? May you also provide a screenshot of the issue?
-Brandon
May you point us to where you got the code from? Be it a support topic or website? May you also provide a screenshot of the issue?
-Brandon
Re: Like Button disappeared again
I got the scripts from here:
https://help.forumotion.com/t140125-how-to-get-a-like-button-on-the-phpbb2#952457
Usually there is a "Like" button in the body of the message as indicated by the red oval, but it has disappeared in the past few days.
https://help.forumotion.com/t140125-how-to-get-a-like-button-on-the-phpbb2#952457
Usually there is a "Like" button in the body of the message as indicated by the red oval, but it has disappeared in the past few days.
Re: Like Button disappeared again
It was mentioned in the past that the "Like" button disappeared due to hosting problems. I am wondering if this might be happening again.
https://help.forumotion.com/t141501-like-button-disappeard#963616
https://help.forumotion.com/t141501-like-button-disappeard#963616
Re: Like Button disappeared again
This code should work for phpbb2 then correct?
-Brandon
-Brandon
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
Re: Like Button disappeared again
David1501 wrote:It was mentioned in the past that the "Like" button disappeared due to hosting problems. I am wondering if this might be happening again.
https://help.forumotion.com/t141501-like-button-disappeard#963616
Where is the javascript located? Is it linked externaly or do you have it under Modules in the AP?
Re: Like Button disappeared again
The javascript is located at ACP > Modules > Javascript Management.
I pretty much followed the instructions here:
https://help.forumotion.com/t108561-a-new-like-dislike-system-phpbb3-and-invision#709635
I pretty much followed the instructions here:
https://help.forumotion.com/t108561-a-new-like-dislike-system-phpbb3-and-invision#709635
Re: Like Button disappeared again
I think so, though I am using phpbb3 for my forum. The code has worked before until a few days ago. I didn't make any changes to the forum, so I am not sure what the problem might be.brandon_g wrote:This code should work for phpbb2 then correct?
-Brandon
Re: Like Button disappeared again
David1501 wrote:The javascript is located at ACP > Modules > Javascript Management.
I pretty much followed the instructions here:
https://help.forumotion.com/t108561-a-new-like-dislike-system-phpbb3-and-invision#709635
I've had some weird problems with javascript the other day as well. I have an exact replica of my forum on which I test things. The codes worked perfectly fine on one of my forums, but not on the other - eventhough everything is exactly the same.
The solution for me was to add the javascript into the overall_header template with:
- Code:
<script src="link.js"></script>
right before the line '{HOSTING_JS}'.
My problem was that no matter where I ticked the 'JS Placement' box, it would always only work in the topics. Maybe you have a similar problem going on.
Re: Like Button disappeared again
David1501 wrote:I think so, though I am using phpbb3 for my forum. The code has worked before until a few days ago. I didn't make any changes to the forum, so I am not sure what the problem might be.brandon_g wrote:This code should work for phpbb2 then correct?
-Brandon
Any particular reason why you are using the version for phpbb2 forums on your phpbb3 forum? There is an even better version for phpbb3 available and developed. The one above is simply a revised version of it, so it works on phpbb2. Have you tried the phpbb3 version? If not, I would recommend doing so. Maybe using the phpb2 version on your phpbb3 forum is the reason it acts up and/or disappears sometimes, because it wasn't really devoped for it.
-Brandon
Re: Like Button disappeared again
I now think it is the host problem. I changed the host from 'http://msoft.olympe.in/like' to 'http://www.avacweb.net/like' and used phpbb3 and the Like button works now, except that it is in a different location (see red oval in picture). (It does not work if I use phpbb2 in the code for the avacweb host, but phpbb2 used to work for the olympe host.) It made no difference whether I chose the placement as In the Topics or In all the pages. Do I have to modify the CSS to bring the Like button back to its original location? (and if so how would I do that?)
Re: Like Button disappeared again
Hello
I think I can help you with this The code hosted for phpBB3 is a code that is hosted on LGforums own Servers the one made for Phpbb2 was hosted by one of our members on a Free host site and the problem there is he only has a small Hit count before the codes no longer work.
The Codes that LG made was only meant to work for Phpbb3 | invision the Phpbb2 was a code tweaked by a member.
I did Host this file my self at one point and i have had the same problem a free hosting site will not let you have the sort of traffic you need for this system.
I think I can help you with this The code hosted for phpBB3 is a code that is hosted on LGforums own Servers the one made for Phpbb2 was hosted by one of our members on a Free host site and the problem there is he only has a small Hit count before the codes no longer work.
The Codes that LG made was only meant to work for Phpbb3 | invision the Phpbb2 was a code tweaked by a member.
I did Host this file my self at one point and i have had the same problem a free hosting site will not let you have the sort of traffic you need for this system.
Re: Like Button disappeared again
So, these are the codes I am using now:APE wrote:Hello
I think I can help you with this The code hosted for phpBB3 is a code that is hosted on LGforums own Servers the one made for Phpbb2 was hosted by one of our members on a Free host site and the problem there is he only has a small Hit count before the codes no longer work.
The Codes that LG made was only meant to work for Phpbb3 | invision the Phpbb2 was a code tweaked by a member.
I did Host this file my self at one point and i have had the same problem a free hosting site will not let you have the sort of traffic you need for this system.
Javascript:
- Code:
var like_version = 'phpbb3';
var DOM_IS_READY = false;
$(function(){DOM_IS_READY=true;});
var vote_singular = 'Like';
var vote_plural = 'Likes';
$.getScript('http://www.avacweb.net/like');
CSS
- Code:
.LGlike {
background: #105289;
padding: 3px;
border-radius: 4px;
color: #fff;
font-size: 10px;
font-weight: bold;
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;
}
Does it mean that after some time my Like button will stop working again, because the host (http://www.avacweb.net/like) will have a Hit count issue? Or does it mean I won't have this issue again because it is hosted at 'http://www.avacweb.net/like'?
Re: Like Button disappeared again
Actually, the "Like" button stopped working today again, because the host is down (http://www.avacweb.net/like).
It looks that the entire site of http://www.avacweb.net/ is down.
It looks that the entire site of http://www.avacweb.net/ is down.
Re: Like Button disappeared again
Yes LG had a server down time today There is not a lot we can do as the like system was hosted over @ that site as you may see on this LINK !! LG's site is also having problems as the skin he made is also hosted on that same server.
Please Note that any bugs found on the like system should really be reported to that for in the link.
just to clear it up for you If you use the Phpbb3 system that was posted here on the support forum then you should not have a problem all the time LG's server is working...and that don't really go down that much but if you use the Phpbb2 one then that's the one that was hosted on the free server and is the one that LG don't host.
APE
Please Note that any bugs found on the like system should really be reported to that for in the link.
just to clear it up for you If you use the Phpbb3 system that was posted here on the support forum then you should not have a problem all the time LG's server is working...and that don't really go down that much but if you use the Phpbb2 one then that's the one that was hosted on the free server and is the one that LG don't host.
APE
Re: Like Button disappeared again
I guess I'll just wait until the "http://www.avacweb.com" website is up again, as there is no way I can contact them about any issues related to the "Like" system they are hosting.
I am using the following javascript:
I assume this is the Phpbb3 system that was posted here on the support forum you mentioned.
I am using the following javascript:
- Code:
var like_version = 'phpbb3';
var DOM_IS_READY = false;
$(function(){DOM_IS_READY=true;});
var vote_singular = 'Like';
var vote_plural = 'Likes';
$.getScript('http://www.avacweb.com/like');
I assume this is the Phpbb3 system that was posted here on the support forum you mentioned.
Re: Like Button disappeared again
yes that is for Phpbb3 and is the right code for your forum it's just a host server problem is why it's not working right now. sorry we can not be of any more help on this forum.David1501 wrote:I guess I'll just wait until the "http://www.avacweb.com" website is up again, as there is no way I can contact them about any issues related to the "Like" system they are hosting.
I am using the following javascript:
- Code:
var like_version = 'phpbb3';
var DOM_IS_READY = false;
$(function(){DOM_IS_READY=true;});
var vote_singular = 'Like';
var vote_plural = 'Likes';
$.getScript('http://www.avacweb.com/like');
I assume this is the Phpbb3 system that was posted here on the support forum you mentioned.
APE
Re: Like Button disappeared again
David1501 wrote:I guess I'll just wait until the "http://www.avacweb.com" website is up again, as there is no way I can contact them about any issues related to the "Like" system they are hosting.
I am using the following javascript:
- Code:
var like_version = 'phpbb3';
var DOM_IS_READY = false;
$(function(){DOM_IS_READY=true;});
var vote_singular = 'Like';
var vote_plural = 'Likes';
$.getScript('http://www.avacweb.com/like');
I assume this is the Phpbb3 system that was posted here on the support forum you mentioned.
Well http://avacweb.com is LG's forumotion forum. Which seems to be working just fine. http:// avacweb.net , however, seems to the site that is having issues and is down.
Just wanted to clear any confusion on the 2.
-Brandon
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
Re: Like Button disappeared again
You are right. http://avacweb.net is down and I wish there are other alternative hosts for the "Like" button system out there, so that if one host fails (as it has happened a few times in the past month), we can quickly switch to a different host.brandon_g wrote:
Well http://avacweb.com is LG's forumotion forum. Which seems to be working just fine. http:// avacweb.net , however, seems to the site that is having issues and is down.
Just wanted to clear any confusion on the 2.
-Brandon
It kind of makes me want to host such a system myself. I can see avacweb's scripts here: http://msoft.olympe.in/like But this host, as I mentioned before, is not working either. I guess there is something wrong with their database or perhaps the system has reached the 500mb disk space limit on this site. I am wondering if it is difficult to set up the database for this 'Like' button system. http://www.olympe.in/ does provide free web hosting and database. I am a Filemaker database designer, thus understands the basic concepts of a relational database. Perhaps it won't be too hard for me to learn how to create/copy such a system?
Re: Like Button disappeared again
Well I can tell you, LG's server is actually fairly good. As Ape said, it rarely goes down. Mainly because LG has a paid server that he maintains himself. Fairly stable and fairly powerful. Unfornatelly, even the best of servers crash at times. I reckon he is probably working and so hasnt been able to find out the server is down and reboot it. Until he does, we can only hope his server might recover on its own and come back up.
-Brandon
-Brandon
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
Re: Like Button disappeared again
Given the unreliability recently, I'd recommend not referring to the source on another website. Instead, replace your script with this :
or I can also recommend an improved system with more customization.
- Code:
var like_version = 'phpbb3';
var DOM_IS_READY = false;
$(function(){DOM_IS_READY=true;});
var vote_singular = 'Like';
var vote_plural = 'Likes';
/*
* A New Like/Dislike system for Forumotion Boards.
* Copyright © by AvacWeb. All Rights Reserved.
* Use of this script is allowed only through reference (via src, or HTTP Request) of avacweb.net/like URL.
* No distribution without consent from origin. Origin: LGforum - AvacWeb.com
*/
function lglike(b,a){var d=a.innerHTML;a.innerHTML="Loading...";a.onclick="#";$.get(b,function(){a.className+=" LGnovote";a.innerHTML=d;var c=a.nextSibling,b=parseInt(/\d+/.exec(c.innerHTML)[0])+1;c.innerHTML=c.innerHTML.replace(/\d+/,b)})};
function init_lg_like_system() {
for(var x = $('.vote'), i = 0, vote; (vote = x[i++]); ) {
var count = 0, plus = 0, bar = $('.vote-bar', vote)[0], button = $('.vote-button', vote)[0];
if (bar) {
var info = bar.title.match(/\d+/g);
plus = Math.round(parseInt( info[1] ) * parseInt( info[0] )) / 100;
}
button = button ? '<span onclick="lglike(\'' + button.firstChild.href + '\',this);" class="LGlike">' + vote_singular + '</span>' : '<span class="LGlike LGnovote">' + vote_singular + '</span>';
var votes_text = '<span class="LGlikecount">' + plus + ' ' + (plus == 1 ? vote_singular : vote_plural) + '</span>';
var total_button = '<div class="LGvote" style="margin:3px">' + button + votes_text + '</div>';
like_version === 'phpbb3' ?
$('.corners-bottom', vote.parentNode.parentNode).before( total_button ) :
like_version === 'invision' ?
$(vote.parentNode.parentNode.parentNode.nextSibling.lastChild).prepend('<li>' + total_button + '</li>') :
like_version === 'punbb' ?
$('.postfoot', vote.parentNode.parentNode.parentNode.parentNode).before( total_button ) :
like_version === 'phpbb2' ?
$('.vote', vote.parentNode).next().after( total_button ) : null;
}
x.remove();
};
DOM_IS_READY ? init_lg_like_system() : $(function () { init_lg_like_system() });
or I can also recommend an improved system with more customization.
Re: Like Button disappeared again
Thank you so much! That worked. I'll ask the members on my board if they want the improved system.Ange Tuteur wrote:Given the unreliability recently, I'd recommend not referring to the source on another website. Instead, replace your script with this :
- Code:
var like_version = 'phpbb3';
var DOM_IS_READY = false;
$(function(){DOM_IS_READY=true;});
var vote_singular = 'Like';
var vote_plural = 'Likes';
/*
* A New Like/Dislike system for Forumotion Boards.
* Copyright © by AvacWeb. All Rights Reserved.
* Use of this script is allowed only through reference (via src, or HTTP Request) of avacweb.net/like URL.
* No distribution without consent from origin. Origin: LGforum - AvacWeb.com
*/
function lglike(b,a){var d=a.innerHTML;a.innerHTML="Loading...";a.onclick="#";$.get(b,function(){a.className+=" LGnovote";a.innerHTML=d;var c=a.nextSibling,b=parseInt(/\d+/.exec(c.innerHTML)[0])+1;c.innerHTML=c.innerHTML.replace(/\d+/,b)})};
function init_lg_like_system() {
for(var x = $('.vote'), i = 0, vote; (vote = x[i++]); ) {
var count = 0, plus = 0, bar = $('.vote-bar', vote)[0], button = $('.vote-button', vote)[0];
if (bar) {
var info = bar.title.match(/\d+/g);
plus = Math.round(parseInt( info[1] ) * parseInt( info[0] )) / 100;
}
button = button ? '<span onclick="lglike(\'' + button.firstChild.href + '\',this);" class="LGlike">' + vote_singular + '</span>' : '<span class="LGlike LGnovote">' + vote_singular + '</span>';
var votes_text = '<span class="LGlikecount">' + plus + ' ' + (plus == 1 ? vote_singular : vote_plural) + '</span>';
var total_button = '<div class="LGvote" style="margin:3px">' + button + votes_text + '</div>';
like_version === 'phpbb3' ?
$('.corners-bottom', vote.parentNode.parentNode).before( total_button ) :
like_version === 'invision' ?
$(vote.parentNode.parentNode.parentNode.nextSibling.lastChild).prepend('<li>' + total_button + '</li>') :
like_version === 'punbb' ?
$('.postfoot', vote.parentNode.parentNode.parentNode.parentNode).before( total_button ) :
like_version === 'phpbb2' ?
$('.vote', vote.parentNode).next().after( total_button ) : null;
}
x.remove();
};
DOM_IS_READY ? init_lg_like_system() : $(function () { init_lg_like_system() });
or I can also recommend an improved system with more customization.
Re: Like Button disappeared again
No problem.
I normally don't recommend scripts that refer to external sources, because you never know when they'll have down time, be modified by the host, etc.. It's usually best to just have the whole script in a local file, that way the only thing preventing it from working would be the forum going down which is unlikely.. sorta.
I normally don't recommend scripts that refer to external sources, because you never know when they'll have down time, be modified by the host, etc.. It's usually best to just have the whole script in a local file, that way the only thing preventing it from working would be the forum going down which is unlikely.. sorta.
Re: Like Button disappeared again
I have been reading on your forum and i see you was not sure about the recommend improved system you don't like the Thumbs down part well if that is some thing your not sure about you can also remove that like we have on the FM forum it does tell you how to remove that on the post it maybe a good move to tell your members this aswell
Similar topics
» Thanks button disappeared
» New topic - button has disappeared
» Images have disappeared
» CSS Disappeared
» Forum disappeared.
» New topic - button has disappeared
» Images have disappeared
» CSS Disappeared
» Forum disappeared.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum