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.

Like Button disappeared again

5 posters

Go down

In progress Like Button disappeared again

Post by David1501 September 3rd 2015, 3:54 pm

I installed the "Like" button a couple months ago but this week it has disappeared.  I am using the following Javascript:

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?
avatar
David1501
Forumember

Posts : 44
Reputation : 1
Language : English

http://bachchat.forumandco.com/

unownus likes this post

Back to top Go down

In progress Re: Like Button disappeared again

Post by brandon_g September 3rd 2015, 4:12 pm

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
brandon_g
brandon_g
Manager
Manager

Male Posts : 10113
Reputation : 923
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 September 3rd 2015, 4:19 pm

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.

Like Button disappeared again 1210
avatar
David1501
Forumember

Posts : 44
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 September 3rd 2015, 4:21 pm

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
avatar
David1501
Forumember

Posts : 44
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by brandon_g September 3rd 2015, 4:51 pm

This code should work for phpbb2 then correct?


-Brandon


Like Button disappeared again Brando10
Remember to mark your topic Like Button disappeared again Solved15 when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Like Button disappeared again Scre1476
Team Leader
Review Section Rules | Request A Review | Sticker Points
brandon_g
brandon_g
Manager
Manager

Male Posts : 10113
Reputation : 923
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Like Button disappeared again

Post by Klemen September 3rd 2015, 5:28 pm

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?
Klemen
Klemen
Forumember

Male Posts : 292
Reputation : 32
Language : English, German, Slovene

http://www.bannedbrotherhood.com

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 September 3rd 2015, 6:48 pm

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
avatar
David1501
Forumember

Posts : 44
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 September 3rd 2015, 6:50 pm

brandon_g wrote:This code should work for phpbb2 then correct?


-Brandon
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.
avatar
David1501
Forumember

Posts : 44
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by Klemen September 3rd 2015, 6:55 pm

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.
Klemen
Klemen
Forumember

Male Posts : 292
Reputation : 32
Language : English, German, Slovene

http://www.bannedbrotherhood.com

Back to top Go down

In progress Re: Like Button disappeared again

Post by brandon_g September 3rd 2015, 7:11 pm

David1501 wrote:
brandon_g wrote:This code should work for phpbb2 then correct?


-Brandon
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.


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
brandon_g
brandon_g
Manager
Manager

Male Posts : 10113
Reputation : 923
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 September 4th 2015, 2:41 pm

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?)

Like Button disappeared again 1410
avatar
David1501
Forumember

Posts : 44
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by Ape September 5th 2015, 12:55 am

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.


Like Button disappeared again Left1212Like Button disappeared again Center11Like Button disappeared again Right112
Like Button disappeared again Ape_b110
Like Button disappeared again Ape1010
Ape
Ape
Administrator
Administrator

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

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 September 5th 2015, 3:10 pm

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.
So, these are the codes I am using now:

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');
Javascript placement: In the Topics

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'?
avatar
David1501
Forumember

Posts : 44
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 September 6th 2015, 10:30 pm

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.
avatar
David1501
Forumember

Posts : 44
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by Ape September 6th 2015, 10:41 pm

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.

Like Button disappeared again Warnin10  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


Like Button disappeared again Left1212Like Button disappeared again Center11Like Button disappeared again Right112
Like Button disappeared again Ape_b110
Like Button disappeared again Ape1010
Ape
Ape
Administrator
Administrator

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

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 September 6th 2015, 11:04 pm

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.
avatar
David1501
Forumember

Posts : 44
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by Ape September 6th 2015, 11:14 pm

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.
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.

APE


Like Button disappeared again Left1212Like Button disappeared again Center11Like Button disappeared again Right112
Like Button disappeared again Ape_b110
Like Button disappeared again Ape1010
Ape
Ape
Administrator
Administrator

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

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: Like Button disappeared again

Post by brandon_g September 6th 2015, 11:15 pm

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


Like Button disappeared again Brando10
Remember to mark your topic Like Button disappeared again Solved15 when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Like Button disappeared again Scre1476
Team Leader
Review Section Rules | Request A Review | Sticker Points
brandon_g
brandon_g
Manager
Manager

Male Posts : 10113
Reputation : 923
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 September 7th 2015, 1:55 am

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
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.

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?
avatar
David1501
Forumember

Posts : 44
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by brandon_g September 7th 2015, 2:21 am

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


Like Button disappeared again Brando10
Remember to mark your topic Like Button disappeared again Solved15 when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Like Button disappeared again Scre1476
Team Leader
Review Section Rules | Request A Review | Sticker Points
brandon_g
brandon_g
Manager
Manager

Male Posts : 10113
Reputation : 923
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Like Button disappeared again

Post by Ange Tuteur September 7th 2015, 11:29 am

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.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 September 7th 2015, 2:11 pm

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.
Thank you so much!  That worked.  I'll ask the members on my board if they want the improved system.
avatar
David1501
Forumember

Posts : 44
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by Ange Tuteur September 7th 2015, 2:32 pm

No problem. Smile

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. Razz
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Like Button disappeared again

Post by Ape September 7th 2015, 7:20 pm

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 Wink


Like Button disappeared again Left1212Like Button disappeared again Center11Like Button disappeared again Right112
Like Button disappeared again Ape_b110
Like Button disappeared again Ape1010
Ape
Ape
Administrator
Administrator

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

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum