The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to disable postprofile and both Avatar for certain Rank.

3 posters

Go down

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

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

Come along with This problem of yayayes has 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
avatar
Yuushishio
Forumember

Posts : 117
Reputation : 4
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 November 12th 2014, 7:11 pm

Hello,

Try to use this CSS code.

Code:
.postdetails {
    display: none;
}
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

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

Post by Yuushishio 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.
avatar
Yuushishio
Forumember

Posts : 117
Reputation : 4
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 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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

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

Post by Yuushishio 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
avatar
Yuushishio
Forumember

Posts : 117
Reputation : 4
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 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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

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

Post by Yuushishio 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?

How to disable postprofile and both Avatar for certain Rank. Blackout_zps1d2f25c2
avatar
Yuushishio
Forumember

Posts : 117
Reputation : 4
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 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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

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

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

YES! Thank you very much!
It succeeded perfectly!
avatar
Yuushishio
Forumember

Posts : 117
Reputation : 4
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 November 13th 2014, 9:59 am

You're welcome How to disable postprofile and both Avatar for certain Rank. 1852325475

Topic archived

Have a nice day. Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum