PDA

View Full Version : Miscellaneous Hacks - Hide Quoting of Ignored Members


kh99
08-08-2011, 10:00 PM
What is it?
----------------------------
This mod hides quotes of users in your ignore list. That is, if someone you're not ignoring quotes someone you are ignoring, the text of that quote will be hidden.

Option to enable/disable is under "Thread Display Options (showthread)".

Installation:
----------------------------
1) In the Product Manager in AdminCP, import the product XML file (product-kh99ignorequotes.xml).

2) Rebuild post cache (Maintenance -> Update Counters -> Rebuild Post Cache).

Uninstalling:
----------------------------
1) Uninstall the product from the Product Manager in the AdminCP.

2) Rebuild post cache (Maintenance -> Update Counters -> Rebuild Post Cache).

Notes:
----------------------------
1) Beta, has been tried out on version 4.1.5 but not extensively tested.

History:
----------------------------
0.91 (Sep 03, 2011) - Fixed issue with including usernames in SQL
0.90 (Aug 08, 2011) - Initial Release

BirdOPrey5
08-09-2011, 03:14 PM
Great idea :up:

Raul7
08-30-2011, 09:20 PM
Great idea, is there anyway to HIDE the ENITRE post if it has a quote from the user in your ignore list?

Thanks,

Conehead555
08-30-2011, 10:05 PM
OMG. I've wanted this for years. Works in 4.1.4 :)

bfdzio
08-31-2011, 02:19 PM
Oh god my users had requested this for years. I thought they were nuts thinking it would happen easily. Nice.

kh99
09-01-2011, 05:55 PM
Great idea, is there anyway to HIDE the ENITRE post if it has a quote from the user in your ignore list?


I'll look at making that an option in the next release. But then you will have the issue where someone will quote the hidden post (which isn't by someone you're ignoring). I don't think I'm going to try to deal with that.

Raul7
09-01-2011, 09:15 PM
I'll look at making that an option in the next release. But then you will have the issue where someone will quote the hidden post (which isn't by someone you're ignoring). I don't think I'm going to try to deal with that.

thanks alot, if we get to that point its ok. i understand nothing can be done about that. i think if you add these 2 features


hide the entire thread if the person started it is in your ignore list (there is one for 3.8, i can find the link if you think it will help

hide the post and posts that quote the person who is in your ignore list


thank you so much.

SpankMe
09-03-2011, 04:50 AM
You need to escape usernames or you get a db error on usernames with single quotes in them.

if ($res = $vbulletin->db->query_first("SELECT userid FROM " . TABLE_PREFIX . "user WHERE username = '" . '" . $db->escape_string($username) . "' . "' LIMIT 1"))

kh99
09-03-2011, 12:10 PM
You need to escape usernames or you get a db error on usernames with single quotes in them.

Thanks - I've updated the release with that fix.

(This update doesn't include the other changes discussed above).

rollerman
09-10-2011, 01:43 AM
Freaking BRILLIANT!

Tagged to install as I embark on upgrades this weekend.


Sometimes the simplist things are the most wonderful. :)

Raul7
09-26-2011, 10:16 PM
Thanks - I've updated the release with that fix.

(This update doesn't include the other changes discussed above).

Hi,

Thanks for all the effort, just wondering if the changes above will be implemented soon?

Cheers,

kh99
09-26-2011, 10:24 PM
Hi,

Thanks for all the effort, just wondering if the changes above will be implemented soon?

Cheers,

Yeah, sorry, I've been distracted by other things recently. I'll see if I can get to it this week.

Raul7
09-26-2011, 10:28 PM
Yeah, sorry, I've been distracted by other things recently. I'll see if I can get to it this week.

thanks in advance.

Raul7
10-14-2011, 09:18 PM
Yeah, sorry, I've been distracted by other things recently. I'll see if I can get to it this week.

i understand you been busy. just wondering if there is any update on this?

Thank you,

kh99
10-14-2011, 11:08 PM
i understand you been busy. just wondering if there is any update on this?

Thank you,

Oh man, I'm sorry, I totally forgot I promised you that. I've had a few problems in the past weeks, like my car got totaled and my landlord's threatening to sue me. Anyway, I'll try to get to it. :o

Raul7
10-20-2011, 05:11 PM
^ oh sorry to hear that, no rush , really appreciate you doing this.

fly
10-21-2011, 12:38 PM
fyi, there appears to be an uncached template. I don't remember seeing it before 4.1.7. Template is kh99_iqts_bbcode_quote_ignore

kh99
10-21-2011, 12:48 PM
Thanks, I'll try to fix that in the next release.

fly
10-21-2011, 03:33 PM
In the meantime, if anyone wants to resolve the cached template issue, here is what I did.

Add a new plugin under Plugins and Products with the following info

Product: Ignore Quotes
Hook Location: cache_templates
Title: Ignore Quotes - cache template
PHP Code:if (THIS_SCRIPT == 'showthread')
$cache[] = 'kh99_iqts_bbcode_quote_ignore';
Plugin is active: Yes

SpankMe
11-04-2011, 07:22 AM
When this mod is disabled, the text "This quote is hidden because you are ignoring this member. Show Quote" appears in every quote.

kh99
11-04-2011, 11:37 AM
When this mod is disabled, the text "This quote is hidden because you are ignoring this member. Show Quote" appears in every quote.

If you rebuild the post cache it should solve that problem. I know I mentioned that you have to do it when uninstalling, but maybe I didn't realize that it has to be done when disabling. TBH I haven't looked at the code in a while.

In the next version I think I'm going to make it clear the post cache automatically when needed. The next version should be coming soon, I apologize to those who have been waiting for new features.

Raul7
01-13-2012, 06:17 AM
Oh man, I'm sorry, I totally forgot I promised you that. I've had a few problems in the past weeks, like my car got totaled and my landlord's threatening to sue me. Anyway, I'll try to get to it. :o

hi man, just wondering is it safe to say this change wont be happening anytime soon?

cheers,

kh99
01-13-2012, 12:23 PM
hi man, just wondering is it safe to say this change wont be happening anytime soon?

cheers,

I appreciate your patience, but yeah, sorry, I haven't been doing any real vb programming in a while. I even tried to talk a couple other people into doing this for me, but no luck. I'll take another look at it, if it's not too difficult I might be able to wedge something in there :D

kh99
01-18-2012, 07:03 PM
thanks alot, if we get to that point its ok. i understand nothing can be done about that. i think if you add these 2 features


hide the entire thread if the person started it is in your ignore list (there is one for 3.8, i can find the link if you think it will help

hide the post and posts that quote the person who is in your ignore list


thank you so much.


I apologize to Raul7 and anyone else who's been waiting patiently for this, but I won't be able to add these features any time soon. And if I ever do, it will probably be a separate mod since the existing code in this mod to hide quotes doesn't help much toward those features.

Raul7
01-30-2012, 09:42 PM
I apologize to Raul7 and anyone else who's been waiting patiently for this, but I won't be able to add these features any time soon. And if I ever do, it will probably be a separate mod since the existing code in this mod to hide quotes doesn't help much toward those features.

Thanks alot for looking into this anyways, I do appreciate the time you and rest of developers put into all these mods.

Cheers,

sticky
08-28-2012, 10:10 PM
Not working right on 4.1.12, for some reason treats everyone like they are on my ignore list but also shows their quote.

kh99
08-28-2012, 10:42 PM
Thanks, I'll take a look at it.

watershed
09-19-2012, 11:14 PM
hide the entire thread if the person started it is in your ignore list (there is one for 3.8, i can find the link if you think it will help


I'd also be very interested in such a mod as it has been requested by several of my members. I have actually recently added a tracker regarding the issue, you can see it at: http://tracker.vbulletin.com/browse/VBIV-15465

Please vote if you also need such a change to be made :)

ravenscape
02-13-2013, 04:46 PM
Is there a similar mod for 3.8 that hides quotes by ignored users? I can't find one.

sypher_04
02-19-2013, 06:19 PM
I wish the ignore features weren't so easily overridden. I've recently installed a forced ignore mod onto my board but haven't yet found a way to disable the ability to View Post, or in the case of this mod View Quote. So, it doesn't actually stop the posters from reading each others posts, just makes it a nuisance to do so.

kh99
02-19-2013, 06:47 PM
I wish the ignore features weren't so easily overridden. I've recently installed a forced ignore mod onto my board but haven't yet found a way to disable the ability to View Post, or in the case of this mod View Quote. So, it doesn't actually stop the posters from reading each others posts, just makes it a nuisance to do so.


Well, you could modify the kh99_iqts_bbcode_quote_ignore template so that the option to show it isn't available, like maybe:

<div id="kh99_iqts_toggle_{vb:raw containerid}_{vb:raw quoteid}" class="kh99_iqts_hidden kh99_iqts_hidden_{vb:raw userid}">{vb:rawphrase kh99_iqts_ignored}</div>
<div id="kh99_iqts_message_{vb:raw containerid}_{vb:raw quoteid}" class="message kh99_iqts_message_{vb:raw userid}">{vb:raw message}</div>



but then someone could still view the html source of the page to see it. Because of the way it works, there was no way to actually leave out the quote (well, of course it's possible but it would be a lot harder and probably couldn't be done with plugins). It works by assigning a separate CSS class to each quoted user on a page, and whether the class displays the quote or the "hidden" message isn't determined until after the template is rendered. But this is good enough for a lot of people who just don't want to have to look at anything posted by certain members.

huskermax
05-20-2013, 04:28 PM
Do I have to Rebuild post cache? Won't that effect my post count. We had to purge threads and posts due to it filling up our server so my users care about their post count. So if this still will work for all future posts then that works for me. but if I have to rebuild the post cache just to get it to work then I can't use it.

kh99
05-20-2013, 06:14 PM
The post cache doesn't affect the user post count. It's a temporary database table that saves the displayed text for posts, so that less processing has to be done to display threads. When you install this product you don't have to rebuild the post cache, but if you don't, quotes in existing posts won't be hidden until the cache expires (I think the default is 7 days). When uninstalling this mod, I believe the cache must be deleted or rebuilt or else the quotes won't be displayed correctly.

When I wrote the instructions I said to use the "Rebuild Post Cache" because it's the only good way to handle it via the admincp. But another way to do it would be to use Execute SQL Query under Maintenance (if it's enabled in the config.php for your user), or use phpMyAdmin, to truncate the "postparsed" table. If I were going to release an update, I would just add code to the mod to truncate that table when installing/uninstalling, but I didn't think of that at the time.

Spangle
05-20-2013, 06:51 PM
Does anyone know if this works on 4.2.1 ?

Kat-2
06-09-2013, 07:00 PM
Yes, I just updated, and tested it on 4.2.1, and it works.

Bozza
12-22-2013, 11:02 PM
Seems to work well - thanks very much!

Barcham
02-17-2014, 09:42 PM
Installed on 4.2.2 and it seems to work fine. This is a great mod that members on most boards would probably love to see installed. In fact, it should be part of Vbulletin to begin with!

Thanks a lot for this one!

DemOnstar
02-23-2014, 04:01 PM
Testing this one too...

Quite a flurry on ignore related mods of late..

ozzy47
02-23-2014, 04:05 PM
This one is not new, it was released in Aug of 2011 :)

Nirjonadda
02-23-2014, 04:13 PM
Its Still Is in Beta Stage ?

DemOnstar
02-23-2014, 04:23 PM
This one is not new, it was released in Aug of 2011 :)

New to me old boy..

Searching these forums is a treasure trove.. An incredible amount of passion has gone on throughout vB history.. And continues to this day and beyond..

Astonishing..

Barcham
02-23-2014, 04:33 PM
One of the reasons I post in a thread after installing a mod is to bring it to the attention of other members who may not have noticed it due to a mod being here a long time with little activity in the thread. Giving it a bump may help others who could find it useful as well as thanking the developer and whoever directed me to it if applicable.

DemOnstar
02-23-2014, 04:38 PM
Thanks to Barcham for unearthing this from deep beneath the pile..

kh99
02-23-2014, 05:08 PM
Its Still Is in Beta Stage ?

Since no one has reported any problems, I think it's safe to consider it out of beta.

ozzy47
02-23-2014, 05:10 PM
LOL not bad Kevin, a 29 month beta. :p

DemOnstar
02-23-2014, 05:15 PM
Since no one has reported any problems, I think it's safe to consider it out of beta.

That is rather funny...:D

kh99
02-23-2014, 05:26 PM
That is rather funny...:D

You mean it's funny because it's been two years with no problems, or because it could just mean that no one is using it? :)

DemOnstar
02-24-2014, 03:32 AM
Funny in an unintentionally flippant way..

Is it out of Beta? Well, it has no reported problems, so yeah.

I never looked at the fact that nobody is using it but now you mention it, that is funny too.
Although it does have 33 installs clocked up and one of them is mine (Very good sir, much obliged.) so it is not entirely true that nobody is using it.

I will use it now it is out of Beta. :eek:

Oh man, I have been waiting 29 months for this.

I wouldn't be too surprised if those installs start racking up now it has come to light once more.
Again, thanks to Barcham the sifter..

Good day all........

Carry on..

boggseric
05-19-2014, 11:13 PM
Any chance someone has tried this on a big board? We have over 15 million posts and I'm worried about performance with this mod running.

oxide11
05-20-2014, 05:46 AM
thanks

Bounce
04-16-2015, 02:24 PM
Actually something a bit odd going on now. A quote from of person I have on ignore is showing yet in the post above a quote of the same person is hidden and I notice a slight difference in the quoted user name, the the quote i can see has ; after the user name the ones I cannae see have >> after them :eek:

kh99
04-16-2015, 02:47 PM
Actually something a bit odd going on now. A quote from of person I have on ignore is showing yet in the post above a quote of the same person is hidden and I notice a slight difference in the quoted user name, the the quote i can see has ; after the user name the ones I cannae see have >> after them :eek:

I'm not sure if it's a problem with this mod or not (to be honest it's been a long time since I looked at the code), but it does depend on the format of the quote (having the username;uuserid, I think) so if the quote has something different, that would be why it's not working. The question is, is it a situation that I didn't account for, or did the user doing the quoting change it before posting?

DCD.RB
10-29-2017, 06:15 AM
Hi, any chance of a 3.8 release?

musik
03-07-2019, 02:52 PM
Just installed this on 4.2.3 and it seems to be working fine, however the template code change you suggested to completely remove "view quote" doesn't appear to be working.

It says "This quote is hidden because you are ignoring this member. Show Quote" inside the quote. Is there a way to solve this?