7
Quote:
dwhitten wrote:
Under the 'group' field, you can pick Anonymous Users or Webmasters. I only want Rider and Show Organizer to appear.
I'm off to the pub, but you could experiment with this idea. (Delete this post if it's bollox).
In modules/profile/register.php at about line 100:
le="color: #000000"><?php $value = $newuser->getVar($fieldname); if (is_array($value)) { $values = array(); $options = $fields[$i]->getVar('field_options'); foreach ($value as $thisvalue) { $values = $options[$thisvalue]; } $value = implode(', ', $values); } echo $fields[$i]->getVar('field_title').": ".$value."<br />";
You could try something like
le="color: #000000"><?php foreach ($value as $thisvalue) { if ( ($value!="Anonymous Users") && ($value!="Webmasters") ) { $values = $options[$thisvalue]; } } $value = implode(', ',$values);
I've probably got the wrong end of the stick entirely, in which case I'll feel a bit stupid, but what I'm *trying* to do is only add the options to the list if they're neither Webmasters nor Anonymous Users.
Hope this spurs someone on to correct me (& therefore help you) !!!