PDA

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


MarkFL
02-28-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.

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=154329&stc=1&d=1456762427

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

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

The phrases for the error messages are found here:

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

Updates:

At the suggestion of Stratis (https://vborg.vbsupport.ru/member.php?u=369554) (who has always been a great supporter of my mods), I have made the following updates:

Version 1.1:


Added a setting that allows you to give affected users a set number of "grace posts" that they can make before being required to define an avatar.


Version 1.2:


Changed execution order of main plugin so it executes before "Force Users to Read a Thread" product.
Added setting to allow for chosen scripts to be excluded from the actions of this product.


Version 1.3:


Added setting to allow excluding Tapatalk users from the product.


Compatibility:

Tested and working on VB 4.2.x and may work on all 4.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=156380&stc=1&d=1494607908

Support for this product can be found here:


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

blind-eddie
02-29-2016, 02:21 PM
Mark, you are on fire!

Great idea, I am working on a site with over 100000 members with MANY missing avatar images.
Drives me nuts seeing the missing image X on postbit.
This will force them to add an avatar before continuing right?

MarkFL
02-29-2016, 02:28 PM
Mark, you are on fire!

Great idea, I am working on a site with over 100000 members with MANY missing avatar images.
Drives me nuts seeing the missing image X on postbit.
This will force them to add an avatar before continuing right?

Yes, they will not be allowed to do anything (except log out) without defining an avatar.

I think this will work on vB 3.8.x too without any changes, and I am going to check that out soon, and either way I will be releasing a vB 3.8.x version (hopefully) sometime today. :)

blind-eddie
02-29-2016, 02:35 PM
https://vborg.vbsupport.ru/external/2016/02/1.jpg

Thank you and nominated.

MarkFL
02-29-2016, 03:47 PM
Update - Version 1.1:

At the suggestion of Stratis (https://vborg.vbsupport.ru/member.php?u=369554) (who has always been a great supporter of my mods), I have made the following update:


Added a setting that allows you to give affected users a set number of "grace posts" that they can make before being required to define an avatar.

Stratis
02-29-2016, 05:14 PM
Very nice, works perfect in 4.2.0pl4

Thank you :)

Max Taxable
02-29-2016, 05:21 PM
I think this will work on vB 3.8.x too without any changes, and I am going to check that out soon, and either way I will be releasing a vB 3.8.x version (hopefully) sometime today. :)vBulletin Message


The following dependencies were not met:

This product is not compatible with version 3.8.7 of vBulletin. (Compatible starting with 4.0.0 / Incompatible with 5.0.0 and greater)
On install attempt at a 3.8

MarkFL
02-29-2016, 06:47 PM
Well...what I meant was it might work with vB 3.8.x without any plugin code changes. Obviously the dependencies would have to be altered. :)

Max Taxable
02-29-2016, 07:06 PM
Well...what I meant was it might work with vB 3.8.x without any plugin code changes. Obviously the dependencies would have to be altered. :)Yeah I assumed you were saying you made this version-agnostic, so tried it.:D

Stratis
03-03-2016, 03:14 PM
Question, I use mod "Force Reading of PMs"

If member login in to site and has a private message at the same time with the announcement to define an avatar, we have a problem.
Define avatar mod does not let user to read PM. He can put avatar but for some reason, two members took time to guess , they keep pressing to read PM (I have a big image for that.)

Is there a way to block some scripts? maybe an option to insert what we want to exclude.
private, usercp, or what else. :p
Maybe it has problem with other forcing mods to, I did not try mod "force users to read thread"

Mark, every day members willing or not put there avatars, this changed the appearance of forum. Very nice :)

MarkFL
03-03-2016, 05:38 PM
Question, I use mod "Force Reading of PMs"

If member login in to site and has a private message at the same time with the announcement to define an avatar, we have a problem.
Define avatar mod does not let user to read PM. He can put avatar but for some reason, two members took time to guess , they keep pressing to read PM (I have a big image for that.)

Is there a way to block some scripts? maybe an option to insert what we want to exclude.
private, usercp, or what else. :p
Maybe it has problem with other forcing mods to, I did not try mod "force users to read thread"

Mark, every day members willing or not put there avatars, this changed the appearance of forum. Very nice :)

When I force a thread to be read, then a member without an avatar first sees that he must read a thread, and then when he clicks the provided link, he sees that he must define an avatar. Once he defines an avatar, he is done, but he has not actually seen the thread he was supposed to read.

I will soon investigate how to make this work with "Force Reading of PMs" as well...I will have to install it and run some tests. :)

Stratis
03-03-2016, 05:55 PM
When I force a thread to be read, then a member without an avatar first sees that he must read a thread, and then when he clicks the provided link, he sees that he must define an avatar. Once he defines an avatar, he is done, but he has not actually seen the thread he was supposed to read.

You and me and many others will have no problem, they will insert first the avatar, we have in forum many "dummies" users that even to register is hard for them. (like me in coding) :D

They press what comes first or what they thinks that time. Any way same situation is with force PMs. Maybe their are more forcing mods out there, or other function
that I cannot remember now. If it has an option for us to exclude what we want it would be the best. neither than excluding something specific, today is PM, tomorrow maybe something else.

P.S If it is no hard to make it. Otherwise its ok as it is.

MarkFL
03-03-2016, 06:50 PM
Update - Version 1.2:


Changed execution order of main plugin so it executes before "Force Users to Read a Thread" product.
Added setting to allow for chosen scripts to be excluded from the actions of this product.

Stratis
03-03-2016, 07:57 PM
Yep, this makes the difference, excellent for another time :)
In my case I put this (private,usercp).


Some Scripts for non coders like me.
activity
album
blog
calendar
forumdisplay
group
member
newreply
newthread
picture
private
search
showthread
usercp
vbcms

Thank you Mark

Stratis
11-12-2016, 08:45 AM
Mark today I log in as a test user that has no avatar, mod forces me to insert an avatar. If I press in tabs I have for forums I realized that all images at the left side don't show up next to the thread title. it is not problem of this mode, but I use this to show those images https://vborg.vbsupport.ru/showthread.php?t=270794


For some reason, until member puts an avatar all forums don't show images and instaed of it shows the X


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



Any idea?

MarkFL
11-12-2016, 02:45 PM
What do you mean by "If I press in tabs I have for forums?"

Stratis
11-13-2016, 01:17 PM
What do you mean by "If I press in tabs I have for forums?"
On Navbar I have buttons from the basic forum categories. So when they press it they redirect to the specific forum, all threads there.... images are missing as I describe in previous message. :)

MarkFL
11-13-2016, 01:32 PM
Okay, just so I'm clear on what's happening...

You have a test account without an avatar, and using this account you see the error message stating an avatar must be defined.

Instead of following the link given in the error message to the UserCP to define an avatar, you click a navtab which directs you to one of your forums.

You are taken to the forum, and images that should display, do not.

Is that correct?

Stratis
11-13-2016, 01:38 PM
Yes that is correct, actually I have seen some users in who is "on line" that they was surfing in forums with out putting an avatar, good thing is that they cannot read threads because they get the error again. So this made me to login with test user to see when they get the error and accidently I saw this issue .

Ok its not a big deal, but thought just to tell you.

MarkFL
11-13-2016, 01:41 PM
What are your excluded scripts?

Stratis
11-13-2016, 01:52 PM
What are your excluded scripts?
private,usercp,forumdisplay


:)

MarkFL
11-13-2016, 01:54 PM
Okay, remove forumdisplay from that list, and the issue should be resolved. :)

Stratis
11-13-2016, 02:22 PM
Yes it will, actually I put forumdisplay for one reason.
Many members that did not log in forum after I installed modification and meet the settings, they will be forced for the avatar, they will not have a chance to see any thing else, I do not like this behavior to members that they come back to forum after 8 months and up :)


Any way I will see if I delete that script or let it as it is.


Thanks for info and conversation.

markoroots
05-12-2017, 01:57 PM
Hi Mark,
great plugin, but is there a big problem.
The users that sign up to the forum by Tapatalk (really many) cannot define the avatar inside Tapatalk becouse Tapatalk don't let you make this and them reamin blocked.
Do you know if is there a way to resolve this problem?
Maybe exluding the Tapatalk users from the plugin. Is it possible?
Thanks in advance

MarkFL
05-12-2017, 02:54 PM
Update - Version 1.3:


Added setting to allow excluding Tapatalk users from the product.


Hi Mark,
great plugin, but is there a big problem.
The users that sign up to the forum by Tapatalk (really many) cannot define the avatar inside Tapatalk becouse Tapatalk don't let you make this and them reamin blocked.
Do you know if is there a way to resolve this problem?
Maybe exluding the Tapatalk users from the plugin. Is it possible?
Thanks in advance

Please let me know if version 1.3 works correctly for you and your Tapatalk users, as I do not use Tapatalk. :)

markoroots
05-12-2017, 03:40 PM
You are great. :)

Too me I don't use it but in the end today half of the traffic come from mobiles.
I will let you know if I will found problems.
For now, really many thanks.