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.

Reputation System Titles(?)

View previous topic View next topic Go down

Solved Reputation System Titles(?)

Post by J0k3R^ on May 1st 2014, 12:35 pm

Hi, im currently using this js code for a reputatio system on profile fields..

Spoiler:

Code:
jQuery(document).ready(function(){
    jQuery('.user-info .post_field:contains("Φήμη"), #profile-advanced-details dl dt span:contains("Φήμη")').attr('style','background-color: rgb(132, 163, 59)!important;background-image: url(http://i38.servimg.com/u/f38/17/31/71/58/highli10*png);border-top-left-radius: 3px;border-top-right-radius: 3px;border-bottom-right-radius: 3px;border-bottom-left-radius: 3px;color: rgb(255, 255, 255);font-weight: bold;height: 18px;display: block;margin: 0 auto;margin-bottom: 3x;padding: 3px 7px;text-align: center;text-shadow: rgba(0, 0, 0, 0.298039) 0px -1px 0px;background-position: 0px 1px;background-repeat: repeat no-repeat;');
    jQuery('.user-info .post_field:contains("Φήμη: 0"), #profile-advanced-details dl dt span:contains("Φήμη: 0")').attr('style','background-color: rgb(106, 122, 85)!important;background-image: url(http://i38.servimg.com/u/f38/17/31/71/58/highli10*png);border-top-left-radius: 3px;border-top-right-radius: 3px;border-bottom-right-radius: 3px;border-bottom-left-radius: 3px;color: rgb(255, 255, 255);font-weight: bold;display: block;margin: 0 auto;margin-bottom: 3px;padding: 3px 7px;text-align: center;text-shadow: rgba(0,0,0,0.3) 0px -1px 0px;background-position: 0px 1px;background-repeat: repeat no-repeat;');
});


what codes should i use to put titles like this?



something like,

Code:
if(rep==0){$(this).find('.title').text('Neutral')}if(rep>=1&&rep<10){$(this).find('.title').text('Good')}if(rep>=10&&rep<30){$(this).find('.title').text('Great')}if(rep>=30&&rep<40){$(this).find('.title').text('Excellent')}if(rep>=50&&rep<60){$(this).find('.title').text('Perfect')}if(rep>=70&&rep<80){$(this).find('.title').text('Extreme')}if(rep>=80&&rep<500){$(this).find('.title').text('IM Famous')}})});

but how exactly? im not good at js so i need some help plz Very Happy:rose:

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: Reputation System Titles(?)

Post by Ange Tuteur on May 1st 2014, 5:26 pm


Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Reputation System Titles(?)

Post by J0k3R^ on May 1st 2014, 7:13 pm

its working perfect but it doesnt appear on profile Very Happy


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: Reputation System Titles(?)

Post by DeathDunk98* on May 1st 2014, 8:45 pm

Oh, Ange is it possible to add reputation system, USERS with less then 50 posts to be NEWBIES, more than 50 posts, Ballers, and eventually like that ?

DeathDunk98*
Forumember

Posts : 479
Reputation : 3
Language : Shqip

Back to top Go down

Solved Re: Reputation System Titles(?)

Post by Th1nK on May 1st 2014, 9:40 pm

@DeathDunk98* wrote:Oh, Ange is it possible to add reputation system, USERS with less then 50 posts to be NEWBIES, more than 50 posts, Ballers, and eventually like that ?
Why don't you just change the text in the first code? For example:
Code:

if(rep>=1&&rep<50){$(this).find('.title').text('Newbie')

Th1nK
Forumember

Male Posts : 383
Reputation : 117
Language : Bulgarian
Location : Secret

http://fmotiongraphics.bulgarianforum.net

Back to top Go down

Solved Re: Reputation System Titles(?)

Post by DeathDunk98* on May 1st 2014, 11:31 pm

where do I put this code ?

DeathDunk98*
Forumember

Posts : 479
Reputation : 3
Language : Shqip

Back to top Go down

Solved Re: Reputation System Titles(?)

Post by Pizza Boi on May 2nd 2014, 7:24 am

Hi Very Happy

@Death: In the link provided by Ange above, you have to change the name in this portion:

Code:
var repLvName = {
      lv1 : 'level 1',
      lv2 : 'level 2',
      lv3 : 'level 3',
      lv4 : 'level 4',
      lv5 : 'level 5',
      lv6 : 'level 6',
      lv7 : 'level 7',
      lv8 : 'level 8'
    };
   

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Reputation System Titles(?)

Post by Ange Tuteur on May 2nd 2014, 4:42 pm

@J0k3R^ wrote:its working perfect but it doesnt appear on profile Very Happy

It is primarily meant for topics, there will most likely need to be modifications to the script.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Reputation System Titles(?)

Post by J0k3R^ on May 2nd 2014, 4:47 pm

its okey, i made to be visible only for topics and not profiles.

issue *Solved*

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: Reputation System Titles(?)

Post by Ange Tuteur on May 2nd 2014, 4:49 pm

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
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