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

3 posters

Go down

Solved Like button over signature

Post by Glavee 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 button http://www.avacweb.com/t195-9-a-new-like-vote-system that I followed.

Here's an image:

signature - Like button over signature Erh65e10

Thanks!


Last edited by Glavee on December 29th 2014, 12:39 am; edited 1 time in total
Glavee
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_ 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_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Like button over signature

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

@_Twisted_Mods_ now they dissapeard.

But I don't know why I need to change dom_ready : false, with dom_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
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_ 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_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Like button over signature

Post by Glavee 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
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 December 29th 2014, 12:13 am

Bump
Glavee
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_ 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_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Like button over signature

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

Topic marked solved, so archived
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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