User login

Link to Custom Profile Content Type per Role

This provides a pretty good technique to give people a link to their special profile node, to either add a new one or edit an existing one.

In this case, I set up a profile node type available only to one role, judge.

The setup that allows this follows the directions for using usernode, nodefamily, and nodeprofile to allow each user to have only one of a content type.

I created a block "Judge Profile Edit Link" and gave it no title.

Put this in it:

<a href="/nodefamily/judge/<?php global $user; print $user->uid; ?>/add">Edit your Judge profile</a>

Said "Show block for specific roles:" - judge

And set visibility to:

user/*
judge/*
view/judges

Send the judges this message:

I just created a user account for you on http://internetbarcontest.org with a judge role. You can edit your Judge profile by clicking on the link that will appear in the right sidebar while visiting the judge or "my account" parts of the site, or you can get a bio and picture (or link to same) to me.

There must be a module that ties all this together, but I think we're using all of them already.

This provides a pretty good technique to give people a link to their special profile node, to either add a new one or edit an existing one.

In this case, I set up a profile node type available only to one role, judge.

The setup that allows this follows the directions for using usernode, nodefamily, and nodeprofile to allow each user to have only one of a content type.

I created a block "Judge Profile Edit Link" and gave it no title.

Put this in it:

<a href="/nodefamily/judge/<?php global $user; print $user->uid; ?>/add">Edit your Judge profile</a>

Said "Show block for specific roles:" - judge

And set visibility to:

user/*
judge/*
view/judges

Send the judges this message:

I just created a user account for you on http://internetbarcontest.org with a judge role. You can edit your Judge profile by clicking on the link that will appear in the right sidebar while visiting the judge or "my account" parts of the site, or you can get a bio and picture (or link to same) to me.

There must be a module that ties all this together, but I think we're using all of them already.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.