vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Force Users To Define Avatars (https://vborg.vbsupport.ru/showthread.php?t=321966)

MarkFL 02-29-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. 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/attachmen...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/attachmen...1&d=1456809843

The phrases for the error messages are found here:

https://vborg.vbsupport.ru/attachmen...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:

  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=1457061878

Support for this product can be found here:

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

Quote:

Originally Posted by blind-eddie (Post 2565939)
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 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 addon as well.

Never mind on this one.

MarkFL 03-02-2016 04:31 AM

Quote:

Originally Posted by blind-eddie (Post 2565991)
I have 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.


All times are GMT. The time now is 12:38 PM.

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.01141 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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