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 Aswer Problem

View previous topic View next topic Go down

Solved Best Aswer Problem

Post by Paradise on May 2nd 2014, 11:45 pm

From this thread http://help.forumotion.com/t132450p60-best-answer-in-topics, See what I got in the best answer

I want the best to look like this


Paradise
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.forumotion.com

Back to top Go down

Solved Re: Best Aswer Problem

Post by Ange Tuteur on May 5th 2014, 7:08 am

Hello Paradise,

Could you post a link to a post that has been thank on your forum ? That will help greatly to see what needs to be modified.

Just to make sure you have used this Script, correct ?
Code:
$(function() {
  var thankColor = '#99ff99';
  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('.posthead').css('background','#dfedd1');
  post.css('background-color','').find('.postbody').prepend('<div id="thanked">' + text + '</div>');
});

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Best Aswer Problem

Post by Paradise on May 5th 2014, 1:22 pm

Here is the link: http://www.paradiseng.com/t1036-what-cause-day-and-night

if the best Answer can be moved to the right even though the background color is there i will take that way.

Just need the best answer moved to the left

Paradise
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.forumotion.com

Back to top Go down

Solved Re: Best Aswer Problem

Post by J0k3R^ on May 5th 2014, 7:24 pm

u need change the position here:
Code:
#thanked{


add
Code:
float:right;
or
Code:
margin-left: ###px;


Smile

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 Aswer Problem

Post by Ange Tuteur on May 6th 2014, 5:09 am

Change the script to :
Code:
$(function() {
  var thankColor = '#99ff99';
  var text = 'Best Answer';
 
var post = $('.post[style="background-color:' + thankColor.toLowerCase() + ';"]');
 
post.children().css('background-color','');
  post.find('.post-main').children().css('background-color','');
  post.find('.posthead').css('background','#dfedd1');
  post.css('background-color','').find('.postbody').prepend('<div id="thanked">' + text + '</div>');
});

Your postmain class contained a dash.

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Best Aswer Problem

Post by Paradise on May 6th 2014, 8:32 am

Thanks Ange, solved i appreciate your help

Paradise
Forumember

Male Posts : 90
Reputation : 1
Language : English

http://www9.forumotion.com

Back to top Go down

Solved Re: Best Aswer Problem

Post by Jophy on May 6th 2014, 10:22 am

Solved

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

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