The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Force Current Members To Fill Out Required Profile Field Details »» | |||||||||||||||||||||||||||
Force Current Members To Fill Out Required Profile Field
Developer Last Online: Nov 2023
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:
Mod Update (03 September 2005): - changed mod from plugin/hack to product Mod Update (01 October 2005): - changed mod to have better output display Mod Update (10 October 2005): - changed mod to use required, editable fields Mod Update (02 February 2006): - added vB v.3.5.3 force profile update mod Show Your Support
|
Благодарность от: | ||
b00k |
Comments |
#12
|
|||
|
|||
That worked very nice.
Thank you, this is a much needed addition. |
#13
|
|||
|
|||
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.
|
#15
|
|||
|
|||
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"
|
#16
|
|||
|
|||
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 #### |
#17
|
|||
|
|||
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.
|
#18
|
|||
|
|||
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.
|
#19
|
|||
|
|||
What does the HTML look like (just around the message)?
|
#20
|
|||
|
|||
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 --> 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! |
#21
|
|||
|
|||
Try moving the plugin from global_start to global_complete.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|