vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Hide Quoting of Ignored Members (https://vborg.vbsupport.ru/showthread.php?t=268202)

kh99 08-08-2011 10:00 PM

Hide Quoting of Ignored Members
 
1 Attachment(s)
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

Quote:

Originally Posted by Raul7 (Post 2240164)
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

Quote:

Originally Posted by kh99 (Post 2240907)
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.

PHP Code:

            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

Quote:

Originally Posted by SpankMe (Post 2241420)
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. :)


All times are GMT. The time now is 11:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05479 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete