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 and both Avatar for certain Rank.

View previous topic View next topic Go down

Solved How to disable postprofile and both Avatar for certain Rank.

Post by Yuushishio on November 12th 2014, 12:21 pm

Come along with This problemof yayayeshas been solved.
Is there anyway that I can disable not only postprofile but everything.
People with a certain Rank will be disable everything, the only thing appears now is their Rank.
Please help.

Edit: My forum using phpBB2


Last edited by Yuushishio on November 12th 2014, 7:58 pm; edited 1 time in total

Yuushishio
Forumember

Posts : 117
Reputation : 3
Language : English

http://sharetheworld.forumvi.com

Back to top Go down

Solved Re: How to disable postprofile and both Avatar for certain Rank.

Post by Mati on November 12th 2014, 7:11 pm

Hello,

Try to use this CSS code.

Code:
.postdetails {
    display: none;
}

Mati
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

Solved Re: How to disable postprofile and both Avatar for certain Rank.

Post by Yuushishio on November 12th 2014, 7:56 pm

Hi there, thanks for your helping, but that not what I want.
Changing CSS like that I'll disable all the members, but I only want it happens to certain member according to their Ranks
Just like the same as yayayes and problem I mentioned above.

Yuushishio
Forumember

Posts : 117
Reputation : 3
Language : English

http://sharetheworld.forumvi.com

Back to top Go down

Solved Re: How to disable postprofile and both Avatar for certain Rank.

Post by Ange Tuteur on November 12th 2014, 11:04 pm

Hello Yuushishio,

Could you provide a link to your forum and the rank title you want to achieve this ?

Thanks

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to disable postprofile and both Avatar for certain Rank.

Post by Yuushishio on November 13th 2014, 8:40 am

Here is my forum
http://sharetheworld.forumvi.com/

The Rank tittle I want to achieve this is Blackout
I use
Code:
<b>Blackout</b>
for Rank Title

Yuushishio
Forumember

Posts : 117
Reputation : 3
Language : English

http://sharetheworld.forumvi.com

Back to top Go down

Solved Re: How to disable postprofile and both Avatar for certain Rank.

Post by Ange Tuteur on November 13th 2014, 8:58 am

Replace your rank title by this :
Code:
<b class="blackout">Blackout</b>

Then go to Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : In the topics
Paste the code below and submit :
Code:
$(function(){ var a = '.postdetails.poster-profile:has(.blackout)'; $(a).css('display','none'); $(a).find('.blackout').insertBefore(a) });


Also, there is an error coming from one of your scripts. Find this in JS management :
Code:
<script language=JavaScript><!--var message="Tắt RC";function clickIE4(){if(event.button==2){alert(message);return false}}function clickNS4(e){if(document.layers||document.getElementById&&!document.all){if(e.which==2||e.which==3){alert(message);return false}}}if(document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4}else if(document.all&&!document.getElementById){document.onmousedown=clickIE4}document.oncontextmenu=new Function("alert(message);return false")</script>

and remove it, or replace it by this :
Code:
$(function() {
var message="Tắt RC";function clickIE4(){if(event.button==2){alert(message);return false}}function clickNS4(e){if(document.layers||document.getElementById&&!document.all){if(e.which==2||e.which==3){alert(message);return false}}}if(document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4}else if(document.all&&!document.getElementById){document.onmousedown=clickIE4}document.oncontextmenu=new Function("alert(message);return false")
});

Otherwise, the script I gave you may not function properly.

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to disable postprofile and both Avatar for certain Rank.

Post by Yuushishio on November 13th 2014, 9:23 am

Thank you so much for your help.
I've already removed the error code.

Second, I've applied your code for disable, but it only disable the postprofile. Will you please help me disable both Avatar and Username too?


Yuushishio
Forumember

Posts : 117
Reputation : 3
Language : English

http://sharetheworld.forumvi.com

Back to top Go down

Solved Re: How to disable postprofile and both Avatar for certain Rank.

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

Replace the script by this :
Code:
$(function(){ var a = '.postdetails.poster-profile:has(.blackout)'; $(a).css('display','none'); $(a).find('.blackout').insertBefore(a); $('.blackout').parent().find('*:not(.blackout)').css('display','none');  });

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How to disable postprofile and both Avatar for certain Rank.

Post by Yuushishio on November 13th 2014, 9:45 am

YES! Thank you very much!
It succeeded perfectly!

Yuushishio
Forumember

Posts : 117
Reputation : 3
Language : English

http://sharetheworld.forumvi.com

Back to top Go down

Solved Re: How to disable postprofile and both Avatar for certain Rank.

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

You're welcome

Topic archived

Have a nice day. Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
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