View Full Version : Profile Enhancements - Ignored User Data
MarkFL
06-13-2015, 09:00 PM
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/attachment.php?attachmentid=153056&stc=1&d=1438445511
This is what you will see in the "What's Going On?" block:
https://vborg.vbsupport.ru/attachment.php?attachmentid=153057&stc=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/attachment.php?attachmentid=153068&stc=1&d=1438671627
Support for this product can be found here:
MHB - Ignored User Data (http://mathhelpboards.com/vbulletin-products-61/ignored-user-data-22020.html)
TAZ - Ignored User Data (https://theadminzone.com/threads/ignored-user-data.145194/)
BrettC Frontier
07-05-2015, 02:58 PM
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.
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 (https://vborg.vbsupport.ru/showthread.php?t=318427) 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
Slight issue to report of: It would appear that this addon and Previous Usernames in about me (https://vborg.vbsupport.ru/showthread.php?t=318427) 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.
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:
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
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.
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
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"?
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
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
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
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
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
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.
Is this mod like user block user ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.