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.

How can I get this like button back?

View previous topic View next topic Go down

Solved How can I get this like button back?

Post by Kimmy on February 2nd 2017, 2:58 am

We used to have this and then it disappeared. I tried getting it back but instead got the red and green thumbs up & down, which I do not want.
Here is a picture of what we used to have.



Can you please tell me how to get this back and remove the others? Thanks!

Kimmy
Forumember

Posts : 103
Reputation : 1
Language : English

http://teamjem.forumotion.com

Back to top Go down

Solved Re: How can I get this like button back?

Post by SLGray on February 2nd 2017, 6:04 am



When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 38228
Reputation : 2576
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: How can I get this like button back?

Post by Kimmy on February 4th 2017, 2:49 am

Can someone please give me the exact javascript code of the LIKE button. Now I have nothing. And do I have to add CSS script? I really am not good at this, I have taken over from someone and I am pretty clueless.

Kimmy
Forumember

Posts : 103
Reputation : 1
Language : English

http://teamjem.forumotion.com

Back to top Go down

Solved Re: How can I get this like button back?

Post by Jadster on February 4th 2017, 2:55 am

Hello @Kimmy,
If you are wanting the same "Like" button that you showed in your pictures above, follow the tutorial below.

http://help.forumotion.com/t108561-a-new-like-dislike-system-phpbb3-and-invision#709635

Hope this helps!

Cheers,
James
avatar
Jadster
Forum Reviewer
Forum Reviewer

Male Posts : 860
Reputation : 118
Language : English
Location : United States

http://www.adminvortex.com

Back to top Go down

Solved Re: How can I get this like button back?

Post by Kimmy on February 4th 2017, 3:12 am

OK James.....I did what it said and I still do not have one.

I made a new javascript and clicked "in topics only". This is what I pasted in:

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');



But I removed the first line and inserted this instead:

$('.postfoot', vote.parentNode.parentNode.parentNode.parentNode).before( new_button );

Then I put this CSS:

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



But it didn't work.
HELP!

Kimmy
Forumember

Posts : 103
Reputation : 1
Language : English

http://teamjem.forumotion.com

Back to top Go down

Solved Re: How can I get this like button back?

Post by Jadster on February 4th 2017, 3:20 am

Hello @Kimmy,
Just asking on this, what forum version are you using? Because the tutorial I linked you to only works for PhpBB3 and Invision. I was mistaken on that one so it may not work if you have PhpBB2 or PunBB.

Cheers,
James
avatar
Jadster
Forum Reviewer
Forum Reviewer

Male Posts : 860
Reputation : 118
Language : English
Location : United States

http://www.adminvortex.com

Back to top Go down

Solved Re: How can I get this like button back?

Post by Kimmy on February 4th 2017, 3:25 am

I have PunBB

It did say this:
For PunBB change it to this:

So that's what I did.

Kimmy
Forumember

Posts : 103
Reputation : 1
Language : English

http://teamjem.forumotion.com

Back to top Go down

Solved Re: How can I get this like button back?

Post by Jadster on February 4th 2017, 3:43 am

Hello @Kimmy,
I have put the code in for PunBB and I can see it working on my test site when using a test account. I can see that it is working. Just a bit off with certain posts but otherwise works fine.

Here is what mine looks like.
Spoiler:

Here is the exact code that I put into my Admin Panel.

Javascript:
Code:
var avacweb_like_system = {
  dom_ready : false,
  vote_singular : 'Like',
  vote_plural : 'Likes',
  callback : function(vote, new_button) {
      $('.postfoot', vote.parentNode.parentNode.parentNode.parentNode).before( new_button );
  }
};
$(function() { avacweb_like_system.dom_ready = true; });
$.getScript('http://www.avacweb.net/likesystem');

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;
 }

Let me know what is going on with yours, please provide screenshots if possible!

Cheers,
James
avatar
Jadster
Forum Reviewer
Forum Reviewer

Male Posts : 860
Reputation : 118
Language : English
Location : United States

http://www.adminvortex.com

Back to top Go down

Solved Re: How can I get this like button back?

Post by Kimmy on February 4th 2017, 4:02 pm

It's back!!! THANK YOU for your patience!!

Kimmy
Forumember

Posts : 103
Reputation : 1
Language : English

http://teamjem.forumotion.com

Back to top Go down

Solved Re: How can I get this like button back?

Post by APE on February 4th 2017, 6:26 pm

Thank you @Mimikyu for your help Wink good work.
Problem solved & topic archived.
Please read our forum rules: ESF General Rules



avatar
APE
Manager
Manager

Male Posts : 9678
Reputation : 882
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