Best Answer problem

Go down

Solved Best Answer problem

Post by Luffy on Sat 3 May - 14:53

Hello. via this post
http://help.forumotion.com/t132450p30-best-answer-in-topics#891777
i added what Ange told us but now its disappeared. why?
http://prntscr.com/3fqov9
avatar
Luffy
Manager
Manager

Male Posts : 5354
Reputation : 576
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Best Answer problem

Post by J0k3R^ on Sat 3 May - 14:56

i dont understand, its working perfect for me and we both using punbb :S
avatar
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 Luffy on Sat 3 May - 14:56

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



avatar
Luffy
Manager
Manager

Male Posts : 5354
Reputation : 576
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Best Answer problem

Post by Paradise on Sat 3 May - 15:06

See how mine looks

i need help
avatar
Paradise
Forumember

Male Posts : 105
Reputation : 1
Language : English

http://uniquecitizens.forumotion.com/u1

Back to top Go down

Solved Re: Best Answer problem

Post by Luffy on Sat 3 May - 15:25

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



avatar
Luffy
Manager
Manager

Male Posts : 5354
Reputation : 576
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Best Answer problem

Post by Paradise on Sun 4 May - 0:48

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

Male Posts : 105
Reputation : 1
Language : English

http://uniquecitizens.forumotion.com/u1

Back to top Go down

Solved Re: Best Answer problem

Post by Luffy on Sun 4 May - 1:17

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



avatar
Luffy
Manager
Manager

Male Posts : 5354
Reputation : 576
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Best Answer problem

Post by Paradise on Sun 4 May - 2:08

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

Male Posts : 105
Reputation : 1
Language : English

http://uniquecitizens.forumotion.com/u1

Back to top Go down

Solved Re: Best Answer problem

Post by J0k3R^ on Sun 4 May - 7:46

i used margin-left to move it at right side
its simple :S
avatar
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 Luffy on Sun 4 May - 19:12

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



avatar
Luffy
Manager
Manager

Male Posts : 5354
Reputation : 576
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Best Answer problem

Post by Ange Tuteur on Mon 5 May - 9:33

Hello,

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

Thanks :rose:
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Best Answer problem

Post by Luffy on Mon 5 May - 11:43




avatar
Luffy
Manager
Manager

Male Posts : 5354
Reputation : 576
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Best Answer problem

Post by Ange Tuteur on Mon 5 May - 11:52

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

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Best Answer problem

Post by Luffy on Mon 5 May - 12:03

Thank you! This is now SOLVED!!



avatar
Luffy
Manager
Manager

Male Posts : 5354
Reputation : 576
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Best Answer problem

Post by Ange Tuteur on Mon 5 May - 12:10

You're welcome Very Happy

Topic solved and archived
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


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