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 |
#112
|
||||
|
||||
Well if you named your CMPS page that displays all of Vbulletins pages to "forum" then you are ok with this part. You can check by going into Admin Control Panel > vBa CMPS > Edit Pages and look for "forum" if you don't see it then this is your problem and change that to what you do see there and see if that works. IF you do see it, then I'm getting at a loss for why its doing this for you...
-John Quote:
|
#113
|
|||
|
|||
ok... what should be named what?
it was named default, I renamed it to forum, still not work but the identifier is still default... what where do I need to check? |
#114
|
|||
|
|||
So you have to change it manualy, every time I add a new profile field I go there and change in the text what I added, that a good idea.
Tks a lot, now plz ppl, anwser is questions :P |
#115
|
||||
|
||||
Quote:
http://www.vbadvanced.com/membersare...tid=4&pageid=6 Then you just have to make sure that the : <?php define('VBA_PORTAL', true); define('VBA_PAGE', 'include'); is the same as the module's identifier you created. |
#116
|
||||
|
||||
Quote:
Code:
eval(standard_error(fetch_error('zzz_update_profile',$vbulletin->options['bburl'],$vbulletin->session->vars['sessionurl']))); Code:
eval(standard_error(fetch_error('zzz_update_profile',$vbulletin->options['bburl'],$vbulletin->session->vars['sessionurl'],$vbulletin->userinfo['username']))); change to Code:
Dear {3}, there are new required profile field(s) since your last visit: click <a href="{1}/profile.php?{2}do=editprofile">Edit Profile</a> to update. -John EDIT: see next post for combined features: https://vborg.vbsupport.ru/showthrea...554#post847554 |
#117
|
||||
|
||||
Quote:
Code:
Dear {3} there are new required profile field(s) since your last visit: {4}. Click <a href="{1}/profile.php?{2}do=editprofile">Edit Profile</a> to update. Code:
// #### Force Current Members To Fill Out Required Profile Field #### $zzz_showmessage = false; $zzz_multiplefields = false; if ($vbulletin->userinfo['userid'] > 1) { if (THIS_SCRIPT != 'profile' AND THIS_SCRIPT != 'usercp') { $zzz_reqfields = $db->query_read("SELECT profilefieldid, title ". "FROM ".TABLE_PREFIX."profilefield ". "WHERE required = 1 AND editable = 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") { $zzz_multiplefields ? $zzz_fieldnamelist .= ", " . $zzz_reqfield['title'] : $zzz_fieldnamelist .= $zzz_reqfield['title'] ; $zzz_multiplefields = true; $zzz_showmessage = true; } } } if ($zzz_showmessage) { eval('$gobutton = "' . fetch_template('gobutton') . '";'); eval('$spacer_open = "' . fetch_template('spacer_open') . '";'); eval('$spacer_close = "' . fetch_template('spacer_close') . '";'); $show['pmstats'] = true; if ($vbulletin->options['usepopups'] != 0) { $show['popups'] = true; } $show['member'] = true; $show['searchbuttons'] = true; $pmbox['lastvisitdate'] = vbdate($vbulletin->options['dateformat'], $vbulletin->userinfo['lastvisit'], 1); $pmbox['lastvisittime'] = vbdate($vbulletin->options['timeformat'], $vbulletin->userinfo['lastvisit']); $pmunread_html = iif($vbulletin->userinfo['pmunread'], '<strong>' . $vbulletin->userinfo['pmunread'] . '</strong>', $vbulletin->userinfo['pmunread']); $vbphrase['unread_x_nav_compiled'] = construct_phrase($vbphrase['unread_x_nav'], $pmunread_html); $vbphrase['total_x_nav_compiled'] = construct_phrase($vbphrase['total_x_nav'], $vbulletin->userinfo['pmtotal']); eval('$headinclude = "' . fetch_template('headinclude') . '";'); eval('$header = "' . fetch_template('header') . '";'); eval('$footer = "' . fetch_template('footer') . '";'); eval(standard_error(fetch_error('zzz_update_profile',$vbulletin->options['bburl'],$vbulletin->session->vars['sessionurl'],$vbulletin->userinfo['username'],$zzz_fieldnamelist))); } } } // #### Force Current Members To Fill Out Required Profile Field #### |
#118
|
||||
|
||||
Quote:
http://www.vbadvanced.com/forum/showthread.php?p=74589 But here's the quick fix: add: PHP Code:
PHP Code:
|
#119
|
|||
|
|||
Im sad to say I wish I could get it to work but I cant, I named the part in the index.php file the same as the identifier and all else checks out.. I guess I cant use this
|
#120
|
||||
|
||||
Quote:
|
#121
|
|||
|
|||
Is there a way to force users to pick their avatar OR upload their profile's picture?
*Click Install* |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|