Blocking a user on PH?

Author
Discussion

Turn7

Original Poster:

24,078 posts

227 months

Tuesday 6th September 2022
quotequote all
I know theres a geeky way to do it, and Ive never had to even think about it beforem but theres on poster on here , I just dont need to see.

Bodo

12,405 posts

272 months

Tuesday 6th September 2022
quotequote all
Just one?

You can hide NP&E, but a user can only be hidden by the moderators.

bolidemichael

14,822 posts

207 months

Tuesday 6th September 2022
quotequote all
Who said that?

getmecoat

Turn7

Original Poster:

24,078 posts

227 months

Tuesday 6th September 2022
quotequote all
Bodo said:
Just one?

You can hide NP&E, but a user can only be hidden by the moderators.
Yes, just one, and Im sure Ive seen it mentioned before...

Its not a feature of PH, its a bit coding if I remember......

anonymous-user

60 months

Tuesday 6th September 2022
quotequote all
This thread is no good without names

droopsnoot

12,515 posts

248 months

Wednesday 7th September 2022
quotequote all
Have a look through here: https://www.pistonheads.com/gassing/topic.asp?h=0&...

Unless it's me you're trying to block, in which case find it yourself.

smile


Aventador 700

2,404 posts

27 months

Wednesday 7th September 2022
quotequote all
you’ve been ‘CODED’

Like it hehe

Turn7

Original Poster:

24,078 posts

227 months

Wednesday 7th September 2022
quotequote all
droopsnoot said:
Have a look through here: https://www.pistonheads.com/gassing/topic.asp?h=0&...

Unless it's me you're trying to block, in which case find it yourself.

smile
Perfect, thanks.

Muzzer79

10,859 posts

193 months

Wednesday 7th September 2022
quotequote all
There's been a few threads similar to this recently.

Just ignore them? confused

Turn7

Original Poster:

24,078 posts

227 months

Wednesday 7th September 2022
quotequote all
Tampermonkey saves the day!

Many thanks.

Polly Grigora

11,209 posts

115 months

Wednesday 7th September 2022
quotequote all
Turn7 said:
Tampermonkey saves the day!

Many thanks.
Very good innit

Unfortunately there's no way of blocking a post from someone else quoting a post from the user you have blocked

grumbledoak

31,763 posts

239 months

Wednesday 7th September 2022
quotequote all
Polly Grigora said:
Unfortunately there's no way of blocking a post from someone else quoting a post from the user you have blocked
You can do that. You just need a better script.



// ==UserScript==
// @name PH users
// @namespace http://tampermonkey.net/
// @version 0.4
// @description try to take over the world!
// @author ash73
// @match https://www.pistonheads.com/gassing/*
// @grant none
// @run-at document-start
// @require http://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==

(function() {
'use strict';

var $ = window.jQuery;
document.addEventListener("DOMContentLoaded", filter_posts);

function filter_posts() {
var names = ["Polly Grigora", "Turn7"];

for(var x = 0; x<names.length; x++) {
filter_post('msg-header', names[x]);
filter_post('forumQuoter', names[x]);
}
}

function filter_post(obj, text) {
$('div.topic-reply').has("div." + obj + ":contains('" + text + "')").remove();
}
})();


Turn7

Original Poster:

24,078 posts

227 months

Wednesday 7th September 2022
quotequote all
It gets better every day !

Polly Grigora

11,209 posts

115 months

Thursday 8th September 2022
quotequote all
grumbledoak said:
Polly Grigora said:
Unfortunately there's no way of blocking a post from someone else quoting a post from the user you have blocked
You can do that. You just need a better script.



// ==UserScript==
// @name PH users
// @namespace http://tampermonkey.net/
// @version 0.4
// @description try to take over the world!
// @author ash73
// @match https://www.pistonheads.com/gassing/*
// @grant none
// @run-at document-start
// @require http://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==

(function() {
'use strict';

var $ = window.jQuery;
document.addEventListener("DOMContentLoaded", filter_posts);

function filter_posts() {
var names = ["Polly Grigora", "Turn7"];

for(var x = 0; x<names.length; x++) {
filter_post('msg-header', names[x]);
filter_post('forumQuoter', names[x]);
}
}

function filter_post(obj, text) {
$('div.topic-reply').has("div." + obj + ":contains('" + text + "')").remove();
}
})();

Amazing, can't thank you enough for this

Is there anything else that needs editing apart from the following?

function filter_posts() {
var names = ["Polly Grigora", "Turn7"];

Thank you in advance

grumbledoak

31,763 posts

239 months

Thursday 8th September 2022
quotequote all
Polly Grigora said:
Amazing, can't thank you enough for this

Is there anything else that needs editing apart from the following?

function filter_posts() {
var names = ["Polly Grigora", "Turn7"];

Thank you in advance
No, you only need to edit the list of names. thumbup

Polly Grigora

11,209 posts

115 months

Thursday 8th September 2022
quotequote all
grumbledoak said:
Polly Grigora said:
Amazing, can't thank you enough for this

Is there anything else that needs editing apart from the following?

function filter_posts() {
var names = ["Polly Grigora", "Turn7"];

Thank you in advance
No, you only need to edit the list of names. thumbup
Thank you very much

This is a life changersmile

Polly Grigora

11,209 posts

115 months

Thursday 8th September 2022
quotequote all
Turn7

Sorry, didn't mean to hijack your topic or anything like

Please don't block me smilesmile

JQ

5,970 posts

185 months

Thursday 8th September 2022
quotequote all
Polly Grigora said:
Turn7

Sorry, didn't mean to hijack your topic or anything like

Please don't block me smilesmile
Looks like you’re too late. biggrin

Turn7

Original Poster:

24,078 posts

227 months

Thursday 8th September 2022
quotequote all
Somebody say something ? biggrin

Polly Grigora

11,209 posts

115 months

Thursday 8th September 2022
quotequote all
confused