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.

Best Answer problem

4 posters

Go down

Solved Best Answer problem

Post by TheCrow May 3rd 2014, 1:53 pm

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
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by J0k3R^ May 3rd 2014, 1:56 pm

i dont understand, its working perfect for me and we both using punbb :S
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Best Answer problem

Post by TheCrow May 3rd 2014, 1:56 pm

What codes do you use? I use the first codes that Ange gave us.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by Paradise May 3rd 2014, 2:06 pm

See how mine looks

i need help Best Answer problem Cr10
Paradise
Paradise
Forumember

Male Posts : 117
Reputation : 1
Language : English

http://igboist.forumotion.com/forum

Back to top Go down

Solved Re: Best Answer problem

Post by TheCrow May 3rd 2014, 2:25 pm

Can you give me ur codes and see if they work to me?
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by Paradise May 3rd 2014, 11:48 pm

See my code Ange gave

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;
}
Paradise
Paradise
Forumember

Male Posts : 117
Reputation : 1
Language : English

http://igboist.forumotion.com/forum

Back to top Go down

Solved Re: Best Answer problem

Post by TheCrow May 4th 2014, 12:17 am

How come its working for you guys and for me it doesn't?
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by Paradise May 4th 2014, 1:08 am

i want the best answer on right.... I am waiting for Ange
Paradise
Paradise
Forumember

Male Posts : 117
Reputation : 1
Language : English

http://igboist.forumotion.com/forum

Back to top Go down

Solved Re: Best Answer problem

Post by J0k3R^ May 4th 2014, 6:46 am

i used margin-left to move it at right side
its simple :S
J0k3R^
J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Best Answer problem

Post by TheCrow May 4th 2014, 6:12 pm

Yes i am waiting for Ange because to me it doesn't appear the best answer. Only the background.. :/
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by Ange Tuteur May 5th 2014, 8:33 am

Hello,

Please provide a link to a thanked post on your board. (guests must be able to see)

Thanks :rose:
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by TheCrow May 5th 2014, 10:43 am

TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by Ange Tuteur May 5th 2014, 10:52 am

Thank you sunny

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>');
});
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by TheCrow May 5th 2014, 11:03 am

Thank you! This is now SOLVED!!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by Ange Tuteur May 5th 2014, 11:10 am

You're welcome Very Happy

Topic solved and archived
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top


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