Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Force Current Members To Fill Out Required Profile Field Details »»
Force Current Members To Fill Out Required Profile Field
Version: 2.0.0, by calorie calorie is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 09-09-2004 Last Update: 06-08-2005 Installs: 31
 
No support by the author.

So you add a new required profile field, and members who join afterwards are forced to fill out the field, but you want your current members to fill out that field too. Well unless your current members go edit their profile, the new field sits and waits for them to take action. This mini hack will force your current members to fill out the field by prompting them for action before allowing them to return to normal site use. Here are some further details:
  • Credit is given to Revan from this post.
  • Credit is given to Locutus2999 from this thread.
  • Related vB 2.2.x from roxics in this thread.
  • Here based off the vB 2.3.x hack by Locutus2999.
  • This is for vB 3.0.7 though rather similar indeed.
  • Add one phrase, edit one file, set profile field.
  • Support only if/as time available, no guarantees.
  • Should you install, say thanks by clicking install.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 12-18-2004, 02:05 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:::bump:::
Reply With Quote
  #23  
Old 01-06-2005, 03:41 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uninstall to the extream
Reply With Quote
  #24  
Old 02-28-2005, 11:46 AM
mkdevo mkdevo is offline
 
Join Date: May 2004
Location: CT, USA
Posts: 269
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work in 3.07?

i tried installing, wanting to make 'birthday' a required field.. but when i go to the user profile field manager, there's nothing there..

??
Reply With Quote
  #25  
Old 03-13-2005, 11:06 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow see this is how you know this site isnt moderated properly. hacks listed with no support, coder disapears.... and its here like the sunshine for a next poor sap to use.

that was my negitive post.
now my question...

anyone bothered with this? Would love to hear how people got this baby to work.
Reply With Quote
  #26  
Old 03-14-2005, 03:38 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by T3MEDIA
wow see this is how you know this site isnt moderated properly. hacks listed with no support, coder disapears.... and its here like the sunshine for a next poor sap to use.

that was my negitive post.
now my question...

anyone bothered with this? Would love to hear how people got this baby to work.
Well the coder indicated that no support will be given, so i don't see your problem.
Reply With Quote
  #27  
Old 03-15-2005, 06:26 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, if no support is given, I will post my clean, optimised code when I get home.
The main issue that made my stomach turn about this hack is that it is loop querying the profilefield table to check if it is set, when everybody knows that all this info is contained in the $bbuserinfo variable
I got it down to adding 1 query (the one to check whether or not a field is required, if Im not too much mistaken)
Reply With Quote
  #28  
Old 03-15-2005, 06:35 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is my revised code, and it seems to work OK. It goes in place of the original global.php edit:
PHP Code:
if ($bbuserinfo['userid'] AND $bbuserinfo['userid'] > 1
{
    
$regex "(profile\.php|usercp\.php)";
    if (!
eregi($regex$_SERVER['REQUEST_URI'])) 
    {
        
$reqfields $DB_site->query("SELECT * FROM " TABLE_PREFIX "profilefield WHERE required = 1");
        if (
$DB_site->num_rows($reqfields))
        {
            while (
$reqfield $DB_site->fetch_array($reqfields)) 
            {
                
$fieldname "field$reqfield[profilefieldid]";
                
$field $bbuserinfo["$fieldname"];
                if (empty(
$field))
                {
                    eval(
'print_output("' fetch_template('STANDARD_ERROR_PROFILEFIELD') . '");');
                    die;
                }
            }
        }
    }

STANDARD_ERROR_PROFILEFIELD is in place of "zzzz_emptyreqfields", I just thought that was a stupid name so I made something more vBish.
Reply With Quote
  #29  
Old 03-15-2005, 09:52 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
Well the coder indicated that no support will be given, so i don't see your problem.
Thats good! I am glad you dont see any problems I have enough as it is.
Reply With Quote
  #30  
Old 03-15-2005, 09:54 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Revan
This is my revised code, and it seems to work OK. It goes in place of the original global.php edit:
Finally a man to step up to the plate. I will test it first and let you know.
if you can do magic with zero tols mass PM that would be a god send as well.
dam thing just stopped working.
Yeah I know its not in this thread but who IS in this thread?

checkin your stuff now bro.
Reply With Quote
  #31  
Old 03-15-2005, 10:14 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works. may sound crazy but how can you have this exclude the year of birth or birday entirely? thanks. but it works I personallly just need a slight mod
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:11 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04560 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete