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)
-   -   Profile Enhancements - Ignored User Data (https://vborg.vbsupport.ru/showthread.php?t=319067)

MarkFL 06-13-2015 09:00 PM

Ignored User Data
 
1 Attachment(s)
This product allows you to choose which usergroups are allowed to view the ignored user data for users on their profile, under the "About Me" tab in the section labeled "Statistics." The information for the users that are being ignored by that user as well as the users who have chosen to ignore that user is diplayed. If there are no users in either list, then "None" is shown. You may also choose to allow your moderating staff to see a list of all ignored users, sorted by the number of users ignoring them, in the "What's Going On?" block on the home page.

This is what you will see on user profiles:

https://vborg.vbsupport.ru/attachmen...1&d=1438445511

This is what you will see in the "What's Going On?" block:

https://vborg.vbsupport.ru/attachmen...1&d=1438445511

Update version 1.1:
  • Force text within usergroup elements in AdminCP to be standard color for good contrast.

Update version 1.2:
  • Replaced checkboxes for usergroups chosen to see ignored user data on user profiles with select element.
  • You now have the option for your moderating staff to see a list of all ignored users, sorted by the number of users ignoring them, in the "What's Going On?" block on the home page.

Update version 1.3:
  • Username HTML markup is pulled from cache rather than database.
  • Added the option to limit the number of users displayed in WGO.

Update version 1.3a:
  • Fixed bug involving deleted users on ignored lists.

Update version 1.4:
  • Fixed bug caused by deleted users remaining in ignored userlists for user profiles.
  • Users listed in ignored lists on user profiles now link to their profile and use HTML markup for their usergroups.
  • WGO listing shows how many users are listed.

Update version 1.5:
  • The "can_moderate()" query is replaced with selected usergroup(s) in the product settings to determine if a user can view the ignored users in the WGO element.
  • The "user" table is now queried only once rather than for each ignored user.

Update version 1.6:
  • The ignored users displayed in the WGO block are now stored in a datafile (./ignoredusers.txt) that is updated once an hour (if applicable) rather than querying the database. When the product is installed/updated (ver. 1.6 or higher) the datafile is initially built, and if the product is uninstalled the datafile is deleted.

Update version 1.7:
  • Replaced db query for retrieval of ignored users on profile page with manipulation of string already in memory.

Update version 1.8:
  • Fixed faulty db query issue when there are no ignored users to report.

To Install:

Download and extract the attached .zip file.

Follow:

AdminCP ► Plugins & Products ► Manage Products ► Add/Import Product

Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.

Click "Import"

You MUST set your settings to enable the mod. Each setting has an explanation of its use.

https://vborg.vbsupport.ru/attachmen...1&d=1438671627

Support for this product can be found here:

BrettC Frontier 07-05-2015 02:58 PM

1 Attachment(s)
Hi Mark,

Very nice addon, my moderators do enjoy this little tool addition!

I was about to request for it being moved into it's own tab, along with the date/time that said user was ignored. However when i looked up the SQL table information, the userlist SQL table doesn't have log for a date/time field.

Maybe a future addition at some point? :)


---

Edit;

Slight issue with the coloring of your addon in the Admin CP.

Attachment 152839

Possible to set the color of the yellow bubbles to something that flows to the currently-selected AdminCP theme?

MarkFL 07-06-2015 02:01 AM

I have added a color to the style attribute of the label elements so that the text within will be the standard color for better contrast for those who are using a custom them in their AdminCP.

I will consider adding the code for tracking the date/time when users are ignored for a future update.

MarkFL 07-24-2015 03:30 AM

Update version 1.2:
  • Replaced checkboxes for usergroups chosen to see ignored user data on user profiles with select element.
  • You now have the option for your moderating staff to see a list of all ignored users, sorted by the number of users ignoring them, in the "What's Going On?" block on the home page.

BrettC Frontier 07-27-2015 09:25 AM

Slight issue to report of: It would appear that this addon and Previous Usernames in about me are conflicting with one another. It's either or on which addon can be active at any given time. Changing execution order does not change the outcome.

MarkFL 07-28-2015 04:17 PM

Quote:

Originally Posted by BrettC Frontier (Post 2551468)
Slight issue to report of: It would appear that this addon and Previous Usernames in about me are conflicting with one another. It's either or on which addon can be active at any given time. Changing execution order does not change the outcome.

I suspect both add-ons are using a template replacement. I will see if I can change this add-on such that a template replacement is not used and post an update soon. :D

edit: I was wrong...my add-on is not using a template replacement. It is simply rendering a custom template at a hook location within the "memberinfo_block_statistics" template." I will download the other add-on and see if I can get them to play nicely with one another.

edit 2: Okay, I found the issue...change the hook location for the plugin of the other product to "member_build_blocks_start".

BrettC Frontier 08-01-2015 01:33 AM

One small QOL request. While I disabled the setting on my rather active discussion board... could a value setting be added in on how many usernames are listed on the WGO block? Text input probably would work out best rather a drop down, default to 50 or something. :)

I enabled it the other day and ended up with about 10 screens of ignored user data on the forums index - chrome didn't like that massive amount of text. :p

MarkFL 08-01-2015 02:25 AM

Update version 1.3:
  • Username HTML markup is pulled from cache rather than database.
  • Added the option to limit the number of users displayed in WGO.

Quote:

Originally Posted by BrettC Frontier (Post 2551829)
One small QOL request. While I disabled the setting on my rather active discussion board... could a value setting be added in on how many usernames are listed on the WGO block? Text input probably would work out best rather a drop down, default to 50 or something. :)

I enabled it the other day and ended up with about 10 screens of ignored user data on the forums index - chrome didn't like that massive amount of text. :p

Thank you once again for finding an issue/circumstance I simply did not think of and letting me know about it, thereby allowing me to make this add-on more robust. :up:

MrD 08-01-2015 10:53 AM

1 Attachment(s)
Hi,
i have following Errors.
1. There are many entries after the username (x). eg Name (2),(1,),(5)
i see, that this Entries from deleted User came, there are in the Tabele Userlist too after deleting
2. only the first User have the Ignored Information on the Profil. All other have nothing.

its VB 4.2.3

MarkFL 08-01-2015 12:03 PM

Quote:

Originally Posted by MrD (Post 2551855)
Hi,
i have following Errors.
1. There are many entries after the username (x). eg Name (2),(1,),(5)
i see, that this Entries from deleted User came, there are in the Tabele Userlist too after deleting
2. only the first User have the Ignored Information on the Profil. All other have nothing.

its VB 4.2.3

This first issue should be resolved now with version 1.3a. I'm not clear on what the second issue is. :D

MarkFL 08-01-2015 02:13 PM

Update version 1.4:
  • Fixed bug caused by deleted users remaining in ignored userlists for user profiles.
  • Users listed in ignored lists on user profiles now link to their profile and use HTML markup for their usergroups.
  • WGO listing shows how many users are listed.

MrD 08-01-2015 02:52 PM

Hi Mark,
the Second Issue is the User profile.
The first Image here in the Addondescription.
Only th First User in the WGO List have the Entry in the User Profile

MarkFL 08-01-2015 02:59 PM

Quote:

Originally Posted by MrD (Post 2551870)
Hi Mark,
the Second Issue is the User profile.
The first Image here in the Addondescription.
Only th First User in the WGO List have the Entry in the User Profile

Do you happen to have any plugins hooked at "member_profileblock_fetch_unwrapped"?

MrD 08-02-2015 02:54 PM

Hi,
Downloads II
Vb Project Tools
VB Blog (i use the VB Suite)
VbYellowPages
vbglossary
vblinklist

are the Addons that use the hook

Zachery 08-02-2015 03:23 PM

Taking a quick look at your code, this could really send the query count up. It would be a very good idea to cache the data for 15-60 min at least. Each time you call can moderate (every page load) it also adds a query's worth of overhead. Plus on a forum with a lot of ignored users you'd really rack up a huge query list.

Additionally, it would be a good idea to query for all of the users in one shot. Then let php or the template system deal with formatting the users data from the array that got returned.

You should still cache that data some how though.

MarkFL 08-04-2015 05:03 AM

Quote:

Originally Posted by Zachery (Post 2551956)
Taking a quick look at your code, this could really send the query count up. It would be a very good idea to cache the data for 15-60 min at least. Each time you call can moderate (every page load) it also adds a query's worth of overhead. Plus on a forum with a lot of ignored users you'd really rack up a huge query list.

Additionally, it would be a good idea to query for all of the users in one shot. Then let php or the template system deal with formatting the users data from the array that got returned.

You should still cache that data some how though.

Thank you for you useful suggestions! :up:

Update version 1.5:
  • The "can_moderate()" query is replaced with selected usergroup(s) in the product settings to determine if a user can view the ignored users in the WGO element.
  • The "user" table is now queried only once rather than for each ignored user.

Once I learn how to cache data, I will implement it for this product. :)

MarkFL 08-07-2015 02:59 AM

Update version 1.6:
  • The ignored users displayed in the WGO block are now stored in a datafile (./ignoredusers.txt) that is updated once an hour rather than querying the database. When the product is installed/updated (ver. 1.6 or higher) the datafile is initially built, and if the product is uninstalled the datafile is deleted.

akz645 08-19-2015 05:57 PM

Quote:

Originally Posted by MarkFL (Post 2552056)
Update version 1.5:

https://vborg.vbsupport.ru/external/2015/08/19.png
^That entire section no longer appears (it's supposed to appear on the 'about me' tab, right?).
I'm using version 1.6

The WGO appears correctly though.

MarkFL 08-19-2015 09:47 PM

Yes, under the "About Me" tab. It still works for me...you must have some other add-on interfering.

akz645 08-19-2015 09:58 PM

Quote:

Originally Posted by MarkFL (Post 2553262)
Yes, under the "About Me" tab. It still works for me...you must have some other add-on interfering.

The only recent mod I installed was thumbs up (which also adds something to the about me tab), however I disabled that and this mod still didn't display it.

Could you add an option in the admin CP, so users can see those stats elsewhere (like on another tab/create another tab on a users profile)?

MarkFL 08-19-2015 11:52 PM

Quote:

Originally Posted by akz645 (Post 2553264)
The only recent mod I installed was thumbs up (which also adds something to the about me tab), however I disabled that and this mod still didn't display it.

Could you add an option in the admin CP, so users can see those stats elsewhere (like on another tab/create another tab on a users profile)?

I really don't want to create a separate tab for just that small amount of data. It best belongs under the "About Me" tab in my opinion.

I do want to get to the bottom of why it is not working for you, so if you want, please PM to me the login credentials for a temporary admin account so I can come to your site and attempt to get it to work. :)

MarkFL 08-21-2015 12:56 AM

Quote:

Originally Posted by akz645 (Post 2553264)
The only recent mod I installed was thumbs up (which also adds something to the about me tab), however I disabled that and this mod still didn't display it.

Could you add an option in the admin CP, so users can see those stats elsewhere (like on another tab/create another tab on a users profile)?

I got it to work by making a manual template edit rather than using the template hook system, because for some reason that is not working on your site. :)

MarkFL 09-24-2015 11:49 PM

Update version 1.7:
  • Replaced db query for retrieval of ignored users on profile page with manipulation of string already in memory.

MarkFL 10-01-2015 01:04 PM

Update version 1.8:
  • Fixed faulty db query issue when there are no ignored users to report.

WxP 02-05-2018 10:34 AM

Is this mod like user block user ?


All times are GMT. The time now is 04:07 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.02208 seconds
  • Memory Usage 1,803KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete