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.

New Like/Dislike Problem [PunBB]

View previous topic View next topic Go down

Solved New Like/Dislike Problem [PunBB]

Post by zenzo on March 30th 2013, 5:31 pm

i have some problem with new like dislike system, it appears at the very end of the letters on every post



i want to place the button before the post foot bottons
i guess replacement code is wrong
Code:
$('.postfoot', vote.parentNode.parentNode.parentNode.parentNode).before( new_button )


here is the full code

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

i get the code from here
http://www.avacweb.com/t195-9-a-new-like-vote-system


my forum url: http://pinoywebmaster.pro-forums.org/

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: New Like/Dislike Problem [PunBB]

Post by LGforum on March 31st 2013, 12:25 am

Try changing '.before' to '.prepend' in the script.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: New Like/Dislike Problem [PunBB]

Post by zenzo on March 31st 2013, 3:29 am

@LGforum wrote:Try changing '.before' to '.prepend' in the script.

thanks LG it works,.

but it displays above the buttons,. how to make it inline


i tried so many codes but i failed

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: New Like/Dislike Problem [PunBB]

Post by Sanket on March 31st 2013, 5:50 am

Add this to your css. Will it do? It adds the image to the extreme right.
Code:
.LGvote {
    float: right !important;
}

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: New Like/Dislike Problem [PunBB]

Post by zenzo on March 31st 2013, 9:26 am

@Sanket wrote:Add this to your css. Will it do? It adds the image to the extreme right.
Code:
.LGvote {
    float: right !important;
}

as of now no need to put to the right

its now on the top of post options.,

the only thing i need now is to make the button "inline"


zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: New Like/Dislike Problem [PunBB]

Post by Sanket on March 31st 2013, 10:05 am

Yes, for it to go inline with the other icons it goes on the right. I am not sure, how to put it on left of the post options.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: New Like/Dislike Problem [PunBB]

Post by zenzo on March 31st 2013, 12:36 pm

i see, i think much better on this position


thanks you Sanket,

solve, please lock

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: New Like/Dislike Problem [PunBB]

Post by Jophy on March 31st 2013, 1:16 pm

Topic Solved & Locked

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

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