Version: 2.0.0, by calorie
Developer Last Online: Nov 2023
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:
To do this, change the query in the hack to:
[sql]$DB_site->query("SELECT * FROM `" . TABLE_PREFIX . "profilefield` WHERE `required` = '1' AND `title` NOT LIKE 'Age'");[/sql]
Just replace "Age" with the title of whatever profilefield you want to exclude. Find these titles in the AdminCP Profile Field Manager.
To do this, change the query in the hack to:
[sql]$DB_site->query("SELECT * FROM `" . TABLE_PREFIX . "profilefield` WHERE `required` = '1' AND `title` NOT LIKE 'Age'");[/sql]
Just replace "Age" with the title of whatever profilefield you want to exclude. Find these titles in the AdminCP Profile Field Manager.
HEY! wow thanks! It didnt work though. See I dont have age in my Profile manager since its part of vb internally.
I dont even know where to look for the name of the birthday location.
Just so you know I am talking about the birthday users have to answer when they register.
It seems like the Birthday is not listed in the profilefield table, at which point what you are asking is impossible without adding further queries.
Not to mention me having no idea how it would be done.
And I also have to wonder, why would you want to exclude birthdays?
If you have it mandatory on register, then it will already be filled out, and wont trigger this mod.
It seems like the Birthday is not listed in the profilefield table, at which point what you are asking is impossible without adding further queries.
Not to mention me having no idea how it would be done.
And I also have to wonder, why would you want to exclude birthdays?
If you have it mandatory on register, then it will already be filled out, and wont trigger this mod.
Exactly. Previous users do not have it filled.
(I dont know why people on vb always doubt a question... but ok) so your looking at around 5000 users with this field blank. and around 7000 or so that do have it. But the profile page does not have it available. (next hack installed) But hey this hack is doing what it says.... awsome. so you have to do a db query to STOP the year result in this hack? maybe we are not hitting each other.
Jan 3rd 1980 <--- The year on the site I wanted to use your awsome hack with has the year un editable. so the field is there.
To do this, change the query in the hack to:
[sql]$DB_site->query("SELECT * FROM `" . TABLE_PREFIX . "profilefield` WHERE `required` = '1' AND `title` NOT LIKE 'Age'");[/sql]
Just replace "Age" with the title of whatever profilefield you want to exclude. Find these titles in the AdminCP Profile Field Manager.
Revan do to some asking around I found out The user's birthday is stored in the user.birthday field. How would I do this (ignore this area) with your hack?