The best answer [AwesomeBB]
5 posters
Page 1 of 1
The best answer [AwesomeBB]
Version: AwesomeBB
Hello,
i would like to have the best reply function after clicking the 'thank you' button like https://imgur.com/VTt9pWg on my AwesomeBB forum. I have a code like below:
thanks
Hello,
i would like to have the best reply function after clicking the 'thank you' button like https://imgur.com/VTt9pWg on my AwesomeBB forum. I have a code like below:
- Code:
jQuery(function(){
jQuery('.post[style="background-color:#f4f9fd;"]').prepend('<div id="melhor_reply_fdf" class="profile_user">✓ Melhor Resposta</div>');
var topicauthor = jQuery('.post #melhor_reply_fdf').parents('.post').find('p.author').html();
var reply_author_name = jQuery('.post #melhor_reply_fdf').parents('.post').find('.postprofile strong').html();
var topicavatar = jQuery('.post #melhor_reply_fdf').parents('.post').find('.postprofile dt a img').attr('src');
var urlavt= jQuery('.post #melhor_reply_fdf').parents('.post').find('.postprofile a').attr('href');
var topicpost = jQuery('.post #melhor_reply_fdf').parents('.post').find('.topic-title a').attr('href');
var bestTopic = jQuery('.post #melhor_reply_fdf').parents('.post').find('.content').html();
if(jQuery('#melhor_reply_fdf').length){
jQuery('.page-title').after('<fieldset id="cont-d"><legend>MELHOR RESPOSTA</legend>
<p>A melhor resposta foi dada pelo usuário '+reply_author_name+' ! Caso não seja a melhor resposta, use o sistema de busca para obter ajuda necessária ou crie uma nova questão!</p><div id="postContent"><span class="ipsUserPhoto"><img src="'+topicavatar+'" /></span>
<span class="ipsBadge">Melhor Resposta</span> '+topicauthor+'<div style="border: 1px solid #ddd; border-bottom: 1px solid #ececec; margin: 3px;"></div><div style="display: inline-block;">'+bestTopic+'</fieldset><a href="'+topicpost+'"><br></div>
<span class="ipsBadge" style="background: #B3B3B3;font-weight: normal !important;">Ver a mensagem marcada como OBRIGADO. <img class="icon" src="http://i.imgur.com/omzqZnf.png"></span></a>
</div>');}
});
thanks
zest_n- New Member
- Posts : 17
Reputation : 7
Language : English
Re: The best answer [AwesomeBB]
Sadly this is not on our system right now but we do have the Thank you / Thanks setting that is almost the same thing.
The code you have would have to be added to the servers I think for it to work.
The code you have would have to be added to the servers I think for it to work.
Admin Control Panel Settings:
ACP >> Display Tab >> Pictures and Colors >> Pics management >> Advanced Mode >> under the buttons tab >>
zest_n likes this post
Re: The best answer [AwesomeBB]
zest_n wrote:Version: AwesomeBB
Hello,
i would like to have the best reply function after clicking the 'thank you' button like https://imgur.com/VTt9pWg on my AwesomeBB forum. I have a code like below:
- Code:
jQuery(function(){
jQuery('.post[style="background-color:#f4f9fd;"]').prepend('<div id="melhor_reply_fdf" class="profile_user">✓ Melhor Resposta</div>');
var topicauthor = jQuery('.post #melhor_reply_fdf').parents('.post').find('p.author').html();
var reply_author_name = jQuery('.post #melhor_reply_fdf').parents('.post').find('.postprofile strong').html();
var topicavatar = jQuery('.post #melhor_reply_fdf').parents('.post').find('.postprofile dt a img').attr('src');
var urlavt= jQuery('.post #melhor_reply_fdf').parents('.post').find('.postprofile a').attr('href');
var topicpost = jQuery('.post #melhor_reply_fdf').parents('.post').find('.topic-title a').attr('href');
var bestTopic = jQuery('.post #melhor_reply_fdf').parents('.post').find('.content').html();
if(jQuery('#melhor_reply_fdf').length){
jQuery('.page-title').after('<fieldset id="cont-d"><legend>MELHOR RESPOSTA</legend>
<p>A melhor resposta foi dada pelo usuário '+reply_author_name+' ! Caso não seja a melhor resposta, use o sistema de busca para obter ajuda necessária ou crie uma nova questão!</p><div id="postContent"><span class="ipsUserPhoto"><img src="'+topicavatar+'" /></span>
<span class="ipsBadge">Melhor Resposta</span> '+topicauthor+'<div style="border: 1px solid #ddd; border-bottom: 1px solid #ececec; margin: 3px;"></div><div style="display: inline-block;">'+bestTopic+'</fieldset><a href="'+topicpost+'"><br></div>
<span class="ipsBadge" style="background: #B3B3B3;font-weight: normal !important;">Ver a mensagem marcada como OBRIGADO. <img class="icon" src="http://i.imgur.com/omzqZnf.png"></span></a>
</div>');}
});
thanks
Let me clerify this first. You want, once the topic is opened, a script that will find which topic has most thanks and according to it change the style of that post?
Guest- Guest
Re: The best answer [AwesomeBB]
Sorry but AwesomeBB didn't have *Thanked backgroud color* in Admin Control Panel, only Post author can see which message is thanked
zest_n likes this post
Re: The best answer [AwesomeBB]
I can make you a similar effect based on number of likes. That's kinda the same. Most liked, most thanked..
Guest- Guest
Re: The best answer [AwesomeBB]
Yes. Can you help me?System32 wrote:I can make you a similar effect based on number of likes. That's kinda the same. Most liked, most thanked..
zest_n- New Member
- Posts : 17
Reputation : 7
Language : English
Re: The best answer [AwesomeBB]
Yes, I can. But I will not share such script online, so I will contact you by PM.zest_n wrote:Yes. Can you help me?System32 wrote:I can make you a similar effect based on number of likes. That's kinda the same. Most liked, most thanked..
Guest- Guest
Re: The best answer [AwesomeBB]
When your request is complete, please mark it as Solved.
zest_n likes this post
Re: The best answer [AwesomeBB]
Hello,
We added the *Thanked backgroud color* on AwesomeBB this morning
If ou modified the template viewtopic_body, you have to replace this part:
By this one:
Thank you.
SarkZKalie wrote:Sorry but AwesomeBB didn't have *Thanked backgroud color* in Admin Control Panel, only Post author can see which message is thanked
We added the *Thanked backgroud color* on AwesomeBB this morning
If ou modified the template viewtopic_body, you have to replace this part:
- Code:
<div class="post">
By this one:
- Code:
<div class="post" {postrow.displayed.THANK_BGCOLOR}>
Thank you.
The Godfather- Administrator
- Posts : 5355
Reputation : 846
Ape, SLGray, SarkZKalie, tikky and zest_n like this post
Re: The best answer [AwesomeBB]
solved, thanks a lot.
zest_n- New Member
- Posts : 17
Reputation : 7
Language : English
Re: The best answer [AwesomeBB]
Problem solved & topic archived.
|
Similar topics
» Selecting Attachment types
» Lost my email and password
» About answer box
» Best Answer problem
» How can I add Best Answer Box under the titlebox?
» Lost my email and password
» About answer box
» Best Answer problem
» How can I add Best Answer Box under the titlebox?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum