Best Answer problem
4 posters
Page 1 of 1
Best Answer problem
Hello. via this post
https://help.forumotion.com/t132450p30-best-answer-in-topics#891777
i added what Ange told us but now its disappeared. why?
http://prntscr.com/3fqov9
https://help.forumotion.com/t132450p30-best-answer-in-topics#891777
i added what Ange told us but now its disappeared. why?
http://prntscr.com/3fqov9
Re: Best Answer problem
See my code Ange gave
Java
Css
Java
- Code:
$(function() {
var thankColor = '#eaf8e2';
var text = 'The Best Reply';
var post = $('.post[style="background-color:' + thankColor.toLowerCase() + ';"]');
post.children().css('background-color','');
post.find('.postmain').children().css('background-color','');
post.css('background-color','').find('.postbody').prepend('<div id="thanked">' + text + '</div>');
});
Css
- Code:
/*Best Answer Thanked Button*/
#thanked {
color:#78b382;
background:#eaf8e2;
border:1px solid #accf8b;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
display:inline-block;
padding:5px;
margin-top:0px;
border-top: 0;
marging-right: 800px;
}
Re: Best Answer problem
Yes i am waiting for Ange because to me it doesn't appear the best answer. Only the background..
Re: Best Answer problem
Hello,
Please provide a link to a thanked post on your board. (guests must be able to see)
Thanks
Please provide a link to a thanked post on your board. (guests must be able to see)
Thanks
Re: Best Answer problem
Thank you
You have forgotten to change the thank color variable to the thanked bg color in your display > colors
Try this :
You have forgotten to change the thank color variable to the thanked bg color in your display > colors
Try this :
- Code:
$(function() {
var thankColor = '#F5FFF2';
var text = 'Best Answer';
var post = $('.post[style="background-color:' + thankColor.toLowerCase() + ';"]');
post.children().css('background-color','');
post.find('.postmain').children().css('background-color','');
post.find('.titlospost').css('background','#dfedd1');
post.css('background-color','').find('.postbody').prepend('<div id="thanked">' + text + '</div>');
});
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum