PDA

View Full Version : How to make profile field link in postbit?


OurCouponHome
11-12-2010, 11:55 PM
I know how to add a profile field in the postbit but what if I want to make it a link?

I added this but I want to direct it to another page when it is clicked on:

<vb:if condition="$post['field8']"><dt>Wishlist</dt> <dd>{vb:raw post.field8}</dd></vb:if>


Thanks in advance! :)

Lynne
11-13-2010, 03:18 AM
<vb:if condition="$post['field8']"><dt>Wishlist</dt> <dd><a href="page.php">{vb:raw post.field8}</a></dd></vb:if>

OurCouponHome
11-14-2010, 06:49 PM
Sorry, I guess I should have said, how do I make it a hyperlink? Thanks Lynne! :) I need to make it a hyperlink.

Lynne
11-14-2010, 08:52 PM
I made the field a hyperlink in the code above.

OurCouponHome
11-14-2010, 10:50 PM
When I added it, it showed this Wishlist and then the thread link. I want just Wishlist and when you click on it, it goes to the link.

Lynne
11-14-2010, 10:53 PM
Then put the link code around the word Wishlist?

<vb:if condition="$post['field8']"><dt><a href="page.php">Wishlist</a></dt> <dd></dd></vb:if>

OurCouponHome
11-14-2010, 10:58 PM
YAY! That one worked!! Thanks so much!!

--------------- Added 1289782963 at 1289782963 ---------------

Ok, dumb question...how do I get it on its own line and in bold? And maybe another color? It is next to another field right now.

Lynne
11-15-2010, 03:21 AM
Put a non-breaking space in between the <dd></dd> - (I have to put spaces between it or it gets 'blanked' out - & n b s p ;

Then just change <dt> to <dt style="font-weight: bold; color: green">

OurCouponHome
11-15-2010, 11:28 AM
OK, lynne...I'm sorry, you must think I am a complete moron at this point but you are so great! :)

I entered the code above and it put the link in but then it just comes up as a non-existent page of page.php not the link that I put in my User Profile Field.

Lynne
11-15-2010, 01:31 PM
So you want it to link to field8? And is that a full URL? You can try:

<a href="{vb:raw post.field8}">

OurCouponHome
11-15-2010, 01:34 PM
That's it!!! Awesome!