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 over signature

View previous topic View next topic Go down

Solved Like button over signature

Post by Glavee on December 28th 2014, 5:18 pm

Hi!

I would like to ask you what I should do to put the like button above the signature? This is the tutorial of the Like buttonhttp://www.avacweb.com/t195-9-a-new-like-vote-system that I followed.

Here's an image:



Thanks!


Last edited by Glavee on December 29th 2014, 12:39 am; edited 1 time in total

Glavee
Forumember

Posts : 149
Reputation : 1
Language : English

http://1point.forumstech.com/

Back to top Go down

Solved Re: Like button over signature

Post by _Twisted_Mods_ on December 28th 2014, 5:39 pm

replace your script with 1 of these


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


Code:

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

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Like button over signature

Post by Glavee on December 28th 2014, 6:20 pm

@_Twisted_Mods_ now they dissapeard.

But I don't know why I need to changedom_ready : false, withdom_ready : true, to work the default code.

EDIT: Please remember that I'm using punbb so I need to change something at the code.

Glavee
Forumember

Posts : 149
Reputation : 1
Language : English

http://1point.forumstech.com/

Back to top Go down

Solved Re: Like button over signature

Post by _Twisted_Mods_ on December 28th 2014, 7:49 pm

sorry i just copy the code from avac .. use whatever code you was using just change this

Code:
$('.corners-bottom',vote.parentNode.parentNode).before(new_button);

to

Code:
$('.sig-content', vote.parentNode.parentNode).before(new_button);

or

Code:

$('.pun .postbody', vote.parentNode.parentNode).after(new_button);


but i seen you made new post about the button wanting it in a new location .. so if thats the case remove the css ange gave you and use


Code:
$('.pun .postfoot .user-contact', vote.parentNode.parentNode).after(new_button);
and add


Code:
float:left;

to your .LGlike css

or you can place it beside the profile icons

Code:

$('.pun .postfoot .user-contact', vote.parentNode.parentNode).append(new_button);

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Like button over signature

Post by Glavee on December 28th 2014, 11:10 pm

@_Twisted_Mods_ wrote:sorry i just copy the code from avac .. use whatever code you was using just change this

Code:
$('.corners-bottom',vote.parentNode.parentNode).before(new_button);

to

Code:
$('.sig-content', vote.parentNode.parentNode).before(new_button);

or

Code:

$('.pun .postbody', vote.parentNode.parentNode).after(new_button);


but i seen you made new post about the button wanting it in a new location .. so if thats the case remove the css ange gave you and use


Code:
$('.pun .postfoot .user-contact', vote.parentNode.parentNode).after(new_button);
and add


Code:
float:left;

to your .LGlike css

or you can place it beside the profile icons

Code:

$('.pun .postfoot .user-contact', vote.parentNode.parentNode).append(new_button);

Twisted, it's not working.

I want you to tell something. I was looking at the code, and I saw that this code is for phpbb3

Code:
$('.corners-bottom',vote.parentNode.parentNode).before(new_button);

I need you to edit the punbb's code, this one:

Code:
$('.postfoot', vote.parentNode.parentNode.parentNode.parentNode).before( new_button )

Maybe that's the problem, I think.

Glavee
Forumember

Posts : 149
Reputation : 1
Language : English

http://1point.forumstech.com/

Back to top Go down

Solved Re: Like button over signature

Post by Glavee on December 29th 2014, 12:13 am

Bump

Glavee
Forumember

Posts : 149
Reputation : 1
Language : English

http://1point.forumstech.com/

Back to top Go down

Solved Re: Like button over signature

Post by _Twisted_Mods_ on December 29th 2014, 12:40 am

ohh i see just add 2 more parents onto my codes

so instead of

Code:
vote.parentNode.parentNode

it will be

Code:
vote.parentNode.parentNode.parentNode.parentNode

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Like button over signature

Post by Ange Tuteur on January 4th 2015, 7:43 am

Topic marked solved, so archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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