The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Like Button disappeared again

View previous topic View next topic Go down

In progress Like Button disappeared again

Post by David1501 on 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?

David1501
Forumember

Posts : 40
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by brandon_g on 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
Support Moderator
Support Moderator

Male Posts : 5144
Reputation : 478
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

In progress Re: Like Button disappeared again

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

I got the scripts from here:
http://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.


David1501
Forumember

Posts : 40
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 on 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.

http://help.forumotion.com/t141501-like-button-disappeard#963616

David1501
Forumember

Posts : 40
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

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

This code should work for phpbb2 then correct?


-Brandon


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5144
Reputation : 478
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by Klemen on 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.

http://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
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 on September 3rd 2015, 6:48 pm

The javascript is located at ACP > Modules > Javascript Management.


I pretty much followed the instructions here:
http://help.forumotion.com/t108561-a-new-like-dislike-system-phpbb3-and-invision#709635

David1501
Forumember

Posts : 40
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 on 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.

David1501
Forumember

Posts : 40
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

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

@David1501 wrote:The javascript is located at ACP > Modules > Javascript Management.


I pretty much followed the instructions here:
http://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
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 on 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
Support Moderator
Support Moderator

Male Posts : 5144
Reputation : 478
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 on 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?)


David1501
Forumember

Posts : 40
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by APE on 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.





APE
Manager
Manager

Male Posts : 8339
Reputation : 718
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 on 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'?

David1501
Forumember

Posts : 40
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 on 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.

David1501
Forumember

Posts : 40
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by APE on 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.

  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





APE
Manager
Manager

Male Posts : 8339
Reputation : 718
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 on 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.

David1501
Forumember

Posts : 40
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by APE on 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





APE
Manager
Manager

Male Posts : 8339
Reputation : 718
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

In progress Re: Like Button disappeared again

Post by brandon_g on 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


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5144
Reputation : 478
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 on 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?

David1501
Forumember

Posts : 40
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by brandon_g on 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


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5144
Reputation : 478
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Like Button disappeared again

Post by David1501 on 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.

David1501
Forumember

Posts : 40
Reputation : 1
Language : English

http://bachchat.forumandco.com/

Back to top Go down

In progress Re: Like Button disappeared again

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Like Button disappeared again

Post by APE on 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





APE
Manager
Manager

Male Posts : 8339
Reputation : 718
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

View previous topic View next topic Back to top


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