Added extras to user profile fields. This field can be accessed using the
profile.form.element.extras template variable when editing a profile and the profile.extras field when viewing a template.
This commit is contained in:
parent
ddd1c27305
commit
ebd2309104
8 changed files with 337 additions and 271 deletions
|
|
@ -34,6 +34,7 @@ addPreTextToThingyFields($session);
|
|||
updateAddressBook($session);
|
||||
changeDefaultPaginationInSearch($session);
|
||||
addUsersOnlineMacro($session);
|
||||
addProfileExtrasField($session);
|
||||
finish($session); # this line required
|
||||
|
||||
|
||||
|
|
@ -84,6 +85,15 @@ sub addPreTextToThingyFields {
|
|||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub addProfileExtrasField {
|
||||
my $session = shift;
|
||||
print "\tAdding the Extras field for profile fields... " unless $quiet;
|
||||
my $db = $session->db;
|
||||
$db->write('alter table userProfileField add extras text default NULL');
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
|
||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue