vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Force Current Members To Fill Out Required Profile Field (https://vborg.vbsupport.ru/showthread.php?t=82756)

Brandon Sheley 10-10-2005 02:38 AM

so not sure.. this is names product and the start of the thread says its a plug,
where is the user can edit profile option at ?
do i just upload as product ?

*edit*
I've dl, and uploaded as a product.
set up a new profile field,, checked the field is in the profile options.. i had clicked require user to fill out, and user editable.
am i missing something ?
even shanged the plugin in acp from the fix that was posted on the bug tracker.
I must be missing something

PennylessZ28 10-10-2005 03:24 AM

This was a very helpful hack. Thats for the excellent work.

ConqSoft 10-10-2005 08:08 AM

This won't let the user log out until they fill in their information either. Is that by design? If so, how can we allow them to log out?

Thanks

calorie 10-10-2005 08:48 AM

@Loco Macheen: userid one is not affected by this mod.
@HR3rdGen: thanks, glad you like. :)
@ConqSoft: just edit the following line...
Code:

from: if (THIS_SCRIPT != 'profile' AND THIS_SCRIPT != 'usercp')
to: if (!in_array(THIS_SCRIPT,array('profile','usercp','login')))


Allan 10-10-2005 09:12 AM

I will like to use this hack to force the members to update their profiles that when it want to download some attach files (extensions)

is it possible ?

calorie 10-10-2005 03:16 PM

@Allan: change the hookname from global_start to attachment_start and then use the following as the inner most if block:
Code:

                                if (empty($zzz_userfield) && $zzz_userfield != "0")
                                {
                                        eval(standard_error(fetch_error('zzz_update_profile',$vbulletin->options['bburl'],$vbulletin->session->vars['sessionurl'])));
                                }

Those two changes should make it so a member needs to fill out required, editable profile fields to download any attachment.

Allan 10-10-2005 04:45 PM

Thank Calorie, but i'm sorry, I not understand or I have to put this code :(

Would there be a means to choose the extensions clarify for the consideration of this hack ?

calorie 10-11-2005 03:56 AM

@Allan: you could try attachment_display as the hookname instead, and use something like the following:
Code:

if ($vbulletin->userinfo['userid'] > 1 && $extension == 'txt')
{
// blah blah
}


Brandon Sheley 10-12-2005 06:01 AM

i tested with id#'s other then admin
where do i see the " edit your profile" box ?
and i see it added the querry, but i just don't see the profile request ?

calorie 10-12-2005 04:11 PM

@Loco Macheen: install the mod as a product from the ACP and, on the profile fields you want to have filled out by users with userid greater than one, set 'Field Required' to 'Yes' and 'Field Editable by User' to 'Yes' for the mod to kick in.


All times are GMT. The time now is 03:27 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.01137 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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