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 Script

3 posters

Go down

Like Button Script Empty Like Button Script

Post by Guardian-Angel August 6th 2016, 7:12 pm

My like button disappeared this morning. I believe it might be a hosting problem. I am waiting to hear from @Michael_vx who has helped with this in the past.

Where can I find the link to instructions on how to install the like button for PHPBB 2? so I can save it for future.

In the meantime, can someone check my codes to make sure I have the correct ones. I have been searching for my original posts and links from when I installed the like button, but it's been confusing. I've been changing the hosting links I have messed up. I am seeing the Thanks button, which isn't the way I had it set up. It should be a Like thumbs up button.

Where in this script does it show the url for my thumbs up image?
Would I have obtained the thumbs up image from this forum?

Java
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://micsoft.is-best.net/like');

CSS
Code:
.bodyline{
    -moz-border-radius:11px;
    -webkit-border-radius: 11px;
       
        border: 1px ##3A0D59 solid;
       }
    .bodylinewidth {
       width:70%}
    .forumline{
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;}

    a.mainmenu{
    filter:alpha(opacity=100);
    -moz-opacity: 1.0;
    opacity: 1.0;
      }
    a.mainmenu:hover{
              filter:alpha(opacity=70);
    -moz-opacity: 0.65;
    opacity: 0.65;
        }

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;
     }
Thumbs up
Code:
$(document).ready(function() {
    $('.vote').each(function() {
      if ($(this).find('.vote-bar').length) { var VCount = $(this).find('.vote-bar').attr('title').replace(/.*\((\d+).*\)/,'$1') }
      if (VCount == '1') { var vote = ' vote' }
      else { var vote = ' votes' }
      var VPlus = $(this).find('.vote-button:first a').addClass('VPlus').attr('title', 'Vote up');
     
      $(this).closest('.postbody').find('.profile-icons').append(VPlus);
      $(this).closest('.postbody:has(.vote-bar)').find('.profile-icons').append('<span class="VCount" title="'+VCount+vote+'">'+VCount+'</span>');
      $(this).remove();
    });
   
    $('.VPlus').click(function(){
      $.get($(this).attr('href'), function() {
          location.reload();
      });
      return false
    });
});

css
.vote .vote-button, .vote-no-bar {
  display:none;
}
.vote .vote-button:first-child {
    display:block;
}
.vote .vote-button a {
background-image: url('http://i39.servimg.com/u/f39/18/78/19/68/tbar_t10.png') !important;
background-repeat:no-repeat;
padding-right: 40px;
padding-top: 50px;

font-size:0 !important;
}
.vote { width:auto }

/*Vote System*/
.VCount:before{
content: url('http://i39.servimg.com/u/f39/18/78/19/68/tbar_t10.png');
opacity:1;
filter:alpha(opacity=50);
}
.VCount{
color:#00;
font-size:12px;
font-weight:bold;
text-shadow:1px 1px 0px rgba(0,120,0, 0.3);
font-family: Verdana,Arial,Helvetica,sans-serif;
cursor:default;
}
.VPlus{
color:#00 !important;
font-size:15px;
font-weight:bold;
text-shadow:1px 1px 0px rgba(0,120,0, 0.1);
font-family: Verdana,Arial,Helvetica,sans-serif;
position:relative;
left:9px;
z-index:1;
}

.vote{
opacity:0;
filter:alpha(opacity=0);
}
Guardian-Angel
Guardian-Angel
Forumember

Posts : 757
Reputation : 15
Language : English

http://www.bachandbachettefans.net/forum

Back to top Go down

Like Button Script Empty Re: Like Button Script

Post by Ape August 6th 2016, 7:54 pm

Hello this is down to the host that runs a small java code no longer working again
Code:
http://micsoft.is-best.net/like
This system has gone down before as its a free host and will always keep playing up as the system was not really made for Phpbb2 forums.

unless this code is installed on a good server that will not go down then you will always have this problem.


Like Button Script Left1212Like Button Script Center11Like Button Script Right112
Like Button Script Ape_b110
Like Button Script Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19454
Reputation : 2012
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Like Button Script Empty Re: Like Button Script

Post by Guardian-Angel August 6th 2016, 11:08 pm

What server is used on this forum for the thumbs up like button?

Can I not use the same server?
Guardian-Angel
Guardian-Angel
Forumember

Posts : 757
Reputation : 15
Language : English

http://www.bachandbachettefans.net/forum

Back to top Go down

Like Button Script Empty Re: Like Button Script

Post by Guardian-Angel August 7th 2016, 1:51 am

I apologize for the double post.

I noticed @Ange Tuteur instructions for

Improve the Reputation Button so it counts votes.

I have updated java/css for this program. I added my own like button which seems to be working fine.

1. Can I have it moved so it's positioned left, above the post like this?

Like Button Script Captur37

2. Can I add the word Likes after the number and change it to black smaller font as show in the same s/shot?

This is what it currently looks like.
Before post is liked

Like Button Script Captur40

After its liked.
Like Button Script Captur41

ETA: I was able to change the font size and colour. Looking for help in moving it over left above the post.

Guardian-Angel
Guardian-Angel
Forumember

Posts : 757
Reputation : 15
Language : English

http://www.bachandbachettefans.net/forum

Back to top Go down

Like Button Script Empty Re: Like Button Script

Post by Michael_vx August 7th 2016, 11:22 am

Script re hosted again
http://micsoft.pe.hu/like
i guess im a bit unlucky most of my web sites are being deleted
Michael_vx
Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Like Button Script Empty Re: Like Button Script

Post by Ape August 8th 2016, 12:22 am

You need to host it on a better system as this always gets deleted.


Like Button Script Left1212Like Button Script Center11Like Button Script Right112
Like Button Script Ape_b110
Like Button Script Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19454
Reputation : 2012
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Like Button Script Empty Re: Like Button Script

Post by Guardian-Angel August 8th 2016, 12:32 am

Thanks you @APE

I will wait until I hear the answer to my question about moving the like button as posted upthread before marking this solved.
Guardian-Angel
Guardian-Angel
Forumember

Posts : 757
Reputation : 15
Language : English

http://www.bachandbachettefans.net/forum

Back to top Go down

Like Button Script Empty Re: Like Button Script

Post by Michael_vx August 8th 2016, 2:55 pm

APE wrote:You need to host it on a better system as this always gets deleted.
i dont have the earns to make me able to pay for hosting service
im movng the like host to new hosting
http://miclike.esy.es/like
the old one i may keep but if the site droped down again with CPU limit Error
the it will be only at the new hosting
the old hosting is used by image sharing and im not ready to lose images Shocked
i hope if someone have a good hosting to be able to host the file
if yes
i can let you have the file any time
Michael_vx
Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Back to top

- Similar topics

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