I would like to have users tag them selves when they sign up for the website. By default it has just name and email fields to fill out. I would like to add user tags so that the users could tag them selves on the registration form instead of the "my account" page.

The reason for this is I believe not many people even edit their accounts after they sign up, but The way I developed the site i run is to make heavy use of the user tags, so users should define their tag at signup (registration)

Comments

flk’s picture

Version: 5.x-1.x-dev » master
markDrupal’s picture

Status: Active » Needs review

I figured it out. rather easy fix you have to add 2 lines of code in the module (around line 130, and 195)

. 
.
.
   case 'form':
      if ($category != 'tags') {
		return;
      }
  //Add 1 line only
+	case 'register':   
	
	 if (!isset($account->taxonomy)) {
           if ($account->uid) {
.
.
.
    case 'submit':
      if ($category != 'tags') {
        return;
      }
  //ADD 1 line only
+	case 'insert':
      user_tags_delete($account->uid);
      if (is_array($edit['taxonomy'])) {
        if (isset($edit['taxonomy']['freetags'])) {
          foreach ($edit['taxonomy']['freetags'] as $key => $value){
            $vid = $key; 
.
.
.