View Full Version : Adding information under users Avatar
shane943
01-04-2010, 08:48 PM
I cant seem to get anything i try to work, but what im trying to do is link the users "Additional Information" section to display under the users avatar.
109106
109105
i am also using Legacy (Vertical) Postbit. Any ideas?
Lynne
01-04-2010, 10:07 PM
I don't understand what you mean by link it - you want a link to the page for them to edit their settings? Do you have an image of what you want? Can you post the code you have already tried cuz that may give us an idea of exactly what you are trying to do.
shane943
01-04-2010, 10:12 PM
I want the information they enter here:
109110
To be displayed here:
109111
Location:
Interests:
^Under the users avatar
Lynne
01-04-2010, 10:21 PM
Location already is there. They are just User Profile Fields. Just copy the code for displaying the location and change the field id according to the User Profile Field Manager.
shane943
01-04-2010, 11:23 PM
ok so what template do i edit under "User Profile Field"
i put location just to show where i wanted to display the interests: info
no how do i make the interests info also display with the location?
Lynne
01-04-2010, 11:38 PM
You would edit the postbit_legacy template to add in that information. (I thought you already knew that from what you said in your first post.)
shane943
01-05-2010, 04:50 AM
This is the area, what do i need to add to show it?
<hr />
<dl class="userinfo_extra">
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>
<vb:if condition="$show['infraction'] OR $show['reppower']">
<dl class="user_rep">
<vb:if condition="$show['infraction']">
<dt>{vb:rawphrase infractions}</dt>
<dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})
</dd>
Lynne
01-05-2010, 02:59 PM
To put it with the rest of the stuff (joindate, location, age):
<dl class="userinfo_extra">
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
<vb:if condition="$post['field1']"><dt>{vb:rawphrase field1_title}</dt> <dd>{vb:raw post.field1}</dd></vb:if>
<vb:if condition="$post['field3']"><dt>{vb:rawphrase field3_title}</dt> <dd>{vb:raw post.field3}</dd></vb:if>
<vb:if condition="$post['field4']"><dt>{vb:rawphrase field4_title}</dt> <dd>{vb:raw post.field4}</dd></vb:if>
<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>
Not Tested. (Personally, I'd use the template_hook, but this is probably easier for you if you don't know how to use them.)
derfelix
01-06-2010, 11:56 AM
the only problem with those fields is, that users for biography and occupation add either nothing.. or use the field to write at least 255 characters...
I dont know if that wont break the layout.. if you add 255x4 characters there...
F.
shane943
01-06-2010, 08:54 PM
Do you have a better code? or a better way?
Notice: in 3.8.4 they changed "interests" to "bikes" and then enabled it to show under the users avater along with join date, location & posts.
109324
this is the exact thing im trying to do but for 4.0
derfelix
01-06-2010, 09:29 PM
No, I thought you wanted the whole biography and job description in postbit...
(I was just saying that on my forum that would be far to much text.. as most users fill in the full 255 characters. - thats all)
Having only 1 expression is fine...
Stubbed
01-07-2010, 12:50 AM
shane943 - What you're asking wasn't a default feature in 3.8 afaik, you must have had a mod installed? Personally on 3.8 I used "Show Profile Fields In Postbit"
Giray
03-03-2010, 02:26 AM
shane943 - What you're asking wasn't a default feature in 3.8 afaik, you must have had a mod installed? Personally on 3.8 I used "Show Profile Fields In Postbit"
I wish the coder would port this mod to 4.x :o It was sooooo convenient.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.