Back to vBulletin 3.0 Add-Ons

Force Current Members To Fill Out Required Profile Field
Mod Version: 2.0.0, by calorie

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 31
Released: 10 Sep 2004 Last Update: 09 Jun 2005 Downloads: 23
Not Supported  

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

    Spoiler (click to open)


    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.

    Close
    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.

Download

This modification is archived and cannot be downloaded.

Similar Mods

Force Current Members To Fill Out Required Profile Field vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024