Make a Profile Field a link

Hi all.

I know this is just a general how-to question, but as I'm using D7RC2, I thought this might still be the best place for the question.

I'm trying to make a "Website" Profile Field.  I'd like to make it so that when the user profile is viewed, the user can click on the website as a link.  Is there an easy way to do this?  If not, is there a difficult way to do this?  :)

Any and all help is appreciated.

Thanks

Chris Robock

Quote · 7 Dec 2009

Well, Here is what you can do. Not really that hard. You can go into your Admin Panel click Builders>Profile Fields

- First add it to the Join Form. (you want members to be able to add this when they join too)

- Drag the NEW_ITEM from the inactive items and place it somewhere like under Email.

- Click the item to edit it. Name it Website_Address (system name) and Website Address (Caption). Change the Type to: HTMLTextArea (this will allow you to LINK the text/web address)

- From there

- Now you can click Edit Profile (top right). Look in the inactive items and you will see Website_Address that you created earlier, and drag it to where you want it to display. You may need to click it and enter the caption (Website Address)

- Now click View Profile (top right) and repeat the steps above. Make sure that you check the radio buttom for Member and Visitor if you want them to see this.

Your done..

If for some reason you do not see these changes after you have comepleted these steps, manually delete the content in the /cache folder and /cache_public EXCEPT for the .htaccess.

Chris

Edited - Made change to area in RED

Nothing to see here
Quote · 7 Dec 2009

I haven't tried this yet, but I don't completely get it.  If you entered the website address in an htmlTextArea field, wouldn't it have to be entered in a format like this: <a href="http://www.mysite.com">www.mysite.com</a> ?  Users would never be able to figure that out how to do that on the join form.   After all the hundreds of discussions we had about this in D6, I'm a little disappointed that Boonex didn't just put a "url field type" on the profile builder.    This mod is absolutely needed - and I might be wrong - but I don't see how this works.

Quote · 7 Dec 2009

Understandable Caltrade, what you would have to do in this instance is exactly how you would link in THIS forum.

Type the address you want, then highlight the address and click the LINK (chain) icon.

Not the most perfect way, but it should work.

Chris

Nothing to see here
Quote · 7 Dec 2009

Nah - not good enough.  We need to have one that really works.  Okweb did a mod for D6 that involved putting the website link in its own block and making it a php block.  You can see the basic approach here: http://www.boonex.com/unity/forums/?action=goto&topic_id=Render-as-HTML (remove the stuff for Skype and IMs and this should work).  I'd like to try this for D7 but am fighting other battles at the moment.  If anyone wants to try this and publish the procedure for just the website link, it would be a nice contributions.

Rob

Quote · 7 Dec 2009

Thanks Zarcon.

This works, but I'm trying to make things a little easier for my users.  As it stands, the member would enter "www.blah.com", select it, create a link with it using the Link button, and then save.

I'd like for them to be able to just enter the "www.blah.com", and have the system automatically use it as a link.  Maybe somehow have it take the value the member entered, and have it create a full link out of it.

No idea how I would do this, however.

Quote · 7 Dec 2009

Hey Caltrade and Crobock, I will look over that topic and see what I can come up with. Will post if someone else doesnt answer first.

Chris

Nothing to see here
Quote · 7 Dec 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.