Version: 1.0.0, by calorie
Developer Last Online: Nov 2023
Version: 3.5.3
Rating:
Released: 06-08-2005
Last Update: 02-01-2006
Installs: 233
Uses Plugins
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 mod 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:
Hmm. I installed this hack as a plugin, and I dont get the screen looking as you do. It appears out of format on a while screen with black text and a forum jump menu. It also does not allow you to log out until you edit your profile, which you should be able to do.
calorie, I just downloaded it a few minutes ago. Im not sure why it looks like it does in the screenshot. Any other ideas? I have the phrase as a "Front End Error Message"
When I go to the Plugin section and choose edit plugin, this is what I see:
Code:
// #### Force Current Members To Fill Out Required Profile Field ####
if ($vbulletin->userinfo['userid'] > 1)
{
$zzz_regex = "(profile|usercp).php";
if (isset($_SERVER['REQUEST_URI']) && !eregi($zzz_regex,$_SERVER['REQUEST_URI']))
{
$zzz_reqfields = $db->query_read("SELECT profilefieldid ".
"FROM ".TABLE_PREFIX."profilefield ".
"WHERE required = 1");
if ($db->num_rows($zzz_reqfields))
{
while ($zzz_reqfield = $db->fetch_array($zzz_reqfields))
{
$zzz_fieldname = "field".$zzz_reqfield['profilefieldid'];
$zzz_userfield = $vbulletin->userinfo["$zzz_fieldname"];
if (empty($zzz_userfield) && $zzz_userfield != "0")
{
eval(standard_error(fetch_error('zzz_update_profile',$vbulletin->options['bburl'],$vbulletin->session->vars['sessionurl'])));
}
}
}
}
}
// #### Force Current Members To Fill Out Required Profile Field ####
The plugin you are using looks good, except if you want to add login to the $zzz_regex variable. Try using "Error Messages" not "Front End Error Messages" as the Phrase Type.
I don't have Error Messages in my list? This is baffling. I want to be able to use the plugin but for some reason its just giving me the white screen instead of the error box.
After looking at the HTML of the page that loads, it appears that everything above the three <br /> does not appear. Ie. none of these sections of code that are in the showthread error message are in this plugin's error message.
Code:
<!-- CSS Stylesheet -->
<!-- logo -->
<!-- content table -->
<!-- open content container -->
Is there something I can include to get everything to appear correctly?
Or maybe I missed something...I downloaded the file and uploaded it through the "import plugin" part of the admin cp, and I made the phrase in the phrase manager "Front End Error Messages". There is no "Error Messages". Did I miss something?
Thanks Again!