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.

Hide posts from specific member

4 posters

Go down

Solved Hide posts from specific member

Post by TamDonCo July 10th 2016, 4:15 am

Hi Ace 1

the below code from you in another topic, it 's working fine to hide posts from specific member but guests still see it , is any way tho hide from guests too .. Thanks




$(function() {
$('a[href="/u1"]').parents("div.post").css("display", "none");
});

u1 is the URL of the user that you want to hide their posts.


Last edited by TamDonCo on July 18th 2016, 3:37 pm; edited 1 time in total
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Hide posts from specific member

Post by Araik July 15th 2016, 3:24 am

Try using this javascript:

Code:
$(function(){
  /////////////////
  var username = 'username'; //Edit
  /////////////////
  $('.postprofile dt').each(function(){
    if($(this).text() == username) $(this).closest('.post').remove();
  });
});

I hope it helps you.
Araik
Araik
New Member

Male Posts : 7
Reputation : 1
Language : Spanish
Location : Argentina

http://mispruebas.foroargentina.net/

Back to top Go down

Solved Re: Hide posts from specific member

Post by Ace 1 July 18th 2016, 9:05 am

@TamDonCo the script Araik provided should work thumright
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

Solved Re: Hide posts from specific member

Post by TamDonCo July 18th 2016, 3:37 pm

Thank You very much Very good
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Hide posts from specific member

Post by Ace 1 July 18th 2016, 3:45 pm

@TamDonco you should remove my script because his does the same thing but even with Guests.
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

Solved Re: Hide posts from specific member

Post by TamDonCo July 18th 2016, 4:25 pm

OK Ace 1

Thank you too
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Hide posts from specific member

Post by Ape July 18th 2016, 6:02 pm

Problem solved & topic archived.
Please read our forum rules:  ESF General Rules


Hide posts from specific member Left1212Hide posts from specific member Center11Hide posts from specific member Right112
Hide posts from specific member Ape_b110
Hide posts from specific member Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19107
Reputation : 1991
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top

- Similar topics

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