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.

Hide posts from specific member

View previous topic View next topic Go down

Solved Hide posts from specific member

Post by TamDonCo on Sat Jul 09, 2016 8:15 pm

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 Mon Jul 18, 2016 7:37 am; edited 1 time in total

TamDonCo
Forumember

Posts : 180
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Hide posts from specific member

Post by Araik on Thu Jul 14, 2016 7:24 pm

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
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 on Mon Jul 18, 2016 1:05 am

@TamDonCo the script Araik provided should work thumright

Ace 1
Helper
Helper

Male Posts : 781
Reputation : 52
Language : English - French?
Location : Druid Hill Park

http://help.forumotion.com

Back to top Go down

Solved Re: Hide posts from specific member

Post by TamDonCo on Mon Jul 18, 2016 7:37 am

Thank You very much Very good

TamDonCo
Forumember

Posts : 180
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Hide posts from specific member

Post by Ace 1 on Mon Jul 18, 2016 7:45 am

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

Ace 1
Helper
Helper

Male Posts : 781
Reputation : 52
Language : English - French?
Location : Druid Hill Park

http://help.forumotion.com

Back to top Go down

Solved Re: Hide posts from specific member

Post by TamDonCo on Mon Jul 18, 2016 8:25 am

OK Ace 1

Thank you too

TamDonCo
Forumember

Posts : 180
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Hide posts from specific member

Post by APE on Mon Jul 18, 2016 10:02 am

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





APE
Manager
Manager

Male Posts : 9217
Reputation : 819
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

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