PDA

View Full Version : Miscellaneous Hacks - Force Users To Define Avatars


MarkFL
02-29-2016, 10:00 PM
Overview:

This product simply allows you to select usergroups which will be required to define an avatar before being allowed to browse the forums. For affected users, an error message will be displayed with a link to define an avatar. You may choose to allow affected users to post a certain number of "Grace Posts" before requiring them to define an avatar.

If you require users to define an avatar regardless of the number of posts they have made, they will see the following:

https://vborg.vbsupport.ru/attachment.php?attachmentid=154344&stc=1&d=1456809843

If you have given your affected users "grace posts", then once they have made that number of posts, they will see something like:

https://vborg.vbsupport.ru/attachment.php?attachmentid=154345&stc=1&d=1456809843

The phrases for the error messages are found here:

https://vborg.vbsupport.ru/attachment.php?attachmentid=154346&stc=1&d=1456809843

Updates:

Version 1.2:


Added setting to allow for chosen scripts to be excluded from the actions of this product.


Compatibility:

Tested and working on vB 3.8.9 and may work on earlier 3.x versions of vBulletin.

Backup/Warning:

This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

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 enable the product in the settings before it will function.
Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.


https://vborg.vbsupport.ru/attachment.php?attachmentid=154389&stc=1&d=1457061878

Support for this product can be found here:


MHB - Force Users To Define Avatars (vB3) (http://mathhelpboards.com/vbulletin-products-61/force-users-define-avatars-vb3-22049.html)
TAZ - Force Users To Define Avatars (vB3) (https://theadminzone.com/threads/force-users-to-define-avatars-vb3.145248/)

blind-eddie
03-01-2016, 03:56 AM
Thank you Mark, I will install this in the morning.

MarkFL
03-01-2016, 04:01 AM
Thank you Mark, I will install this in the morning.

Okay, let me know how it goes! :up:

The only changes I had to make to port this was choose another hook (the one I used for the vB4 version doesn't exist in vB3), and wrap the error messages in eval(). Piece of cake. :cool:

blind-eddie
03-01-2016, 08:16 PM
I have Default Avatar (https://vborg.vbsupport.ru/showthread.php?t=223078&highlight=default+avatar) installed, just to fill in the blanks for those without an avatar.
Though they have an avatar, create by addon, your addon says they don't have an avatar, any way to only get this to only show message for those with dead avatar image links?

blind-eddie
03-01-2016, 08:18 PM
or to work with this (https://vborg.vbsupport.ru/showthread.php?t=262583&highlight=default+avatar) addon as well.

Never mind on this one.

MarkFL
03-02-2016, 04:31 AM
I have Default Avatar (https://vborg.vbsupport.ru/showthread.php?t=223078&highlight=default+avatar) installed, just to fill in the blanks for those without an avatar.
Though they have an avatar, create by addon, your addon says they don't have an avatar, any way to only get this to only show message for those with dead avatar image links?

Although I haven't looked at the code for that product, I suspect it displays an image after the fact, when none is to be found in the traditional manner. This product checks to see if a user actually has an avatar associated with their account (but not an image shown if not). I'm thinking one would use either product, but not both.

blind-eddie
03-02-2016, 11:25 AM
Ok, Thank you.

MarkFL
03-04-2016, 01:26 AM
Update - Version 1.2:


Added setting to allow for chosen scripts to be excluded from the actions of this product.