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 - Force Users To Define Avatars (https://vborg.vbsupport.ru/showthread.php?t=321958)

MarkFL 02-28-2016 10:00 PM

Force Users To Define Avatars
 
1 Attachment(s)
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/attachmen...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/attachmen...1&d=1456767912

The phrases for the error messages are found here:

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

Updates:

At the suggestion of Stratis (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:

  1. Download and extract the attached .zip file.
  2. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  3. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  4. Click "Import."
  5. You MUST enable the product in the settings before it will function.
  6. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.

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

Support for this product can be found here:

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

Quote:

Originally Posted by blind-eddie (Post 2565868)
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 (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

Quote:

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

Quote:

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

Quote:

Originally Posted by MarkFL (Post 2565907)
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 :)


All times are GMT. The time now is 05:00 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.01100 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)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