The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adding information under users Avatar
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.
Attachment 109106 Attachment 109105 i am also using Legacy (Vertical) Postbit. Any ideas? |
#2
|
||||
|
||||
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.
|
#3
|
||||
|
||||
I want the information they enter here:
Attachment 109110 To be displayed here: Attachment 109111 Location: Interests: ^Under the users avatar |
#4
|
||||
|
||||
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.
|
#5
|
||||
|
||||
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? |
#6
|
||||
|
||||
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.)
|
#7
|
||||
|
||||
This is the area, what do i need to add to show it?
HTML Code:
<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> |
#8
|
||||
|
||||
To put it with the rest of the stuff (joindate, location, age):
HTML Code:
<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> |
#9
|
|||
|
|||
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. |
#10
|
||||
|
||||
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. Attachment 109324 this is the exact thing im trying to do but for 4.0 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|