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.

How to disable postprofile for a certain rank?

View previous topic View next topic Go down

Solved How to disable postprofile for a certain rank?

Post by yayayes on November 9th 2014, 7:38 am

Hello guys, I was just wondering if it's possible to disable postprofile for a certain rank? Not a group please.
Any help would be appreciated, thanks!
My Forum: http://www.thelosteden.com/
Forum Version: Invision



Last edited by yayayes on November 9th 2014, 9:01 am; edited 1 time in total

yayayes
Forumember

Female Posts : 49
Reputation : 1
Language : Thai
Location : Bangkok, London & Hong Kong

Back to top Go down

Solved Re: How to disable postprofile for a certain rank?

Post by Ange Tuteur on November 9th 2014, 7:43 am

Hello yayayes,

So, for example : If someone has the rank "New" they would not have profile fields ?

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to disable postprofile for a certain rank?

Post by yayayes on November 9th 2014, 7:44 am

HelloAnge Tuteur and yes! I was thinking of "Admin". Do you think it's possible?

yayayes
Forumember

Female Posts : 49
Reputation : 1
Language : Thai
Location : Bangkok, London & Hong Kong

Back to top Go down

Solved Re: How to disable postprofile for a certain rank?

Post by Ange Tuteur on November 9th 2014, 7:56 am

Of course ! I have a question for the rank :

Are you using text or an Image for the rank, and could you provide the Image/Text ?

Thanks

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to disable postprofile for a certain rank?

Post by yayayes on November 9th 2014, 7:59 am

It's: <span class="admin"></span>
I put this as a name for the rank with no image. Very Happy

yayayes
Forumember

Female Posts : 49
Reputation : 1
Language : Thai
Location : Bangkok, London & Hong Kong

Back to top Go down

Solved Re: How to disable postprofile for a certain rank?

Post by Ange Tuteur on November 9th 2014, 8:22 am

Okay, try this :
Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : In the topics
Paste the code below :
Code:
$(function(){$('.postprofile:has(.admin)').find('dd:has(.label)').css('display','none')});

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to disable postprofile for a certain rank?

Post by yayayes on November 9th 2014, 8:32 am

It doesn't work.. sorry

yayayes
Forumember

Female Posts : 49
Reputation : 1
Language : Thai
Location : Bangkok, London & Hong Kong

Back to top Go down

Solved Re: How to disable postprofile for a certain rank?

Post by Ange Tuteur on November 9th 2014, 8:49 am

Try replacing it with this :
Code:
$(function(){$('.postprofile:has(.admin)').find('div:has(.label)').css('display','none')});

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to disable postprofile for a certain rank?

Post by yayayes on November 9th 2014, 8:59 am

Now it's working.ThanksAnge Tuteur! ><b

yayayes
Forumember

Female Posts : 49
Reputation : 1
Language : Thai
Location : Bangkok, London & Hong Kong

Back to top Go down

Solved Re: How to disable postprofile for a certain rank?

Post by Ange Tuteur on November 9th 2014, 9:01 am

You're welcome

Topic 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