Like button over signature
3 posters
Page 1 of 1
Like button over signature
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:
Thanks!
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:
Thanks!
Last edited by Glavee on December 29th 2014, 12:39 am; edited 1 time in total
Re: Like button over signature
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');
Re: Like button over signature
@_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.
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.
Re: Like button over signature
sorry i just copy the code from avac .. use whatever code you was using just change this
to
or
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
to your .LGlike css
or you can place it beside the profile icons
- 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);
- 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);
Re: Like button over signature
_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 useand add
- Code:
$('.pun .postfoot .user-contact', vote.parentNode.parentNode).after(new_button);
- 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.
Re: Like button over signature
ohh i see just add 2 more parents onto my codes
so instead of
it will be
so instead of
- Code:
vote.parentNode.parentNode
it will be
- Code:
vote.parentNode.parentNode.parentNode.parentNode
Similar topics
» Signature button leading to youtube.
» My signature wont show but everyone else's signature does
» "Back to Top" Button too small and too near "Report" button.
» "Do not display again button" how to re enable(without clear cache) or use it just as a close button...?
» Adding a reply button next to the quote button to automatically tag users?
» My signature wont show but everyone else's signature does
» "Back to Top" Button too small and too near "Report" button.
» "Do not display again button" how to re enable(without clear cache) or use it just as a close button...?
» Adding a reply button next to the quote button to automatically tag users?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum