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.

Best Answer problem

View previous topic View next topic Go down

Solved Best Answer problem

Post by Luffy on May 3rd 2014, 1:53 pm

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

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: Best Answer problem

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

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

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 May 3rd 2014, 1:56 pm

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






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: Best Answer problem

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

See how mine looks

i need help

Paradise
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by Luffy on May 3rd 2014, 2:25 pm

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






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: Best Answer problem

Post by Paradise on 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
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by Luffy on May 4th 2014, 12:17 am

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






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: Best Answer problem

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

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

Paradise
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

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

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

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 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.. :/






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: Best Answer problem

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by Luffy on May 5th 2014, 10:43 am







Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: Best Answer problem

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Best Answer problem

Post by Luffy on May 5th 2014, 11:03 am

Thank you! This is now SOLVED!!






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: Best Answer problem

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

You're welcome Very Happy

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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