PDA

View Full Version : How to add postbit link?


I.G.O.T.A.
04-20-2013, 12:45 PM
Here is what I want to do. Under your avatar I want to add say "My Journal" with a link that people can click that and be taken to his journal page. How would I go about doing that? I'm on vB 4.2.

Lynne
04-20-2013, 02:54 PM
Add a user profile field and have users enter a URL in it and then just add the field to the postbit. (There is an article in the articles area on how to add the field to the postbit. There have also beena couple of threads lately about doing exactly what you want to do - turn the profile field into a link - so try a search.)

I.G.O.T.A.
04-20-2013, 03:19 PM
I will search for that now. Thank you.

--------------- Added 1366477474 at 1366477474 ---------------

OK well I did a search and really didn't get the answer I was looking for.

I first created a profile field call Journal. After I did that I went to postbit and came up with this code, but its not working once I enter the link. What am I missing?

<vb:if condition="$post['field19']"><div><a href="$post[field19]">Journal</a></div></vb:if>

I.G.O.T.A.
04-21-2013, 03:48 PM
Anyone?

Lynne
04-21-2013, 07:55 PM
And what is the result of your code? And *exactly* where did you add it and into what template (post the five lines above your added code so we can tell where it is). And exactly what had you entered into the Journal field on your settings page.

I.G.O.T.A.
04-22-2013, 12:03 AM
First I created a new user profile name called Journal. I set that all up. Next I went to the postbit legacy and posted the code there alone with some other codes I have done. It didn't work, lol.

Lynne
04-22-2013, 01:36 AM
Sorry, but unless you tell me exactly what you did, which is what I asked for, I cannot help.

I.G.O.T.A.
04-22-2013, 08:46 PM
Sorry that is all I did.

Lynne
04-23-2013, 01:18 AM
I cannot help without you telling me exactly what you did. If you can't tell me, per my response in post 5, then I cannot help.

blind-eddie
04-24-2013, 12:08 AM
Try this.

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

Source (https://vborg.vbsupport.ru/showthread.php?p=1953221#post1953221)