The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I add a line below user title beneath avatar?
Like the title says. I need to add another line beneath the user title line beneath the user's avatar.
Any help would be appreciated. I am running 4.2.5 |
#2
|
|||
|
|||
AdminCP -> Styles & Templates->Style Manger -> Modify -> [expand list] -> Postbit Templates -> [expand] -> postbit -> [edit]
You will see the 'registered' and 'location' parts towards the top of this template. Just add <vb:if condition="$post['fieldX']"><dt>Field Name</dt> <dd>{vb:raw post.fieldX}</dd></vb:if> after <vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if> where Field Name is your field name & X is the number of the custom field, to find out the custom field numbers go to: Admin CP -> User Profile Fields -> Modify Mouse-over the [edit] links for each field, the number is at the end of the url that shows in the bottom of your browser window. |
#3
|
|||
|
|||
When I open up style manager, I get a list of styles. Does this need to be done on each style?
--------------- Added [DATE]1598486306[/DATE] at [TIME]1598486306[/TIME] --------------- Tried this in one of my styles and while it adds a profile field, it doesnt show up under the user's avatar. What does show is: Username Title Avatar image Join date Location Post count I would like this field to show beneath the avatar. --------------- Added [DATE]1598488461[/DATE] at [TIME]1598488461[/TIME] --------------- Just to be clear, this needs to show at the left below the avatar on each post the members make |
#4
|
|||
|
|||
You have to pace the code in the correct place to get it to show up where you want it.
Yes, you have to do it in all styles that are available to be used on the site. |
#5
|
|||
|
|||
I placed the code as directed. Does not show on each post.
--------------- Added [DATE]1598635737[/DATE] at [TIME]1598635737[/TIME] --------------- This is the code I used: PHP Code:
|
#6
|
|||
|
|||
Thats a simple post field call, just like a users location, no reason it shouldnt show on every post for that user if its filled out in their usercp.
You can try running a rebuild on thread info if you like. |
#7
|
|||
|
|||
Just ran rebuild threads...no joy!
|
#8
|
||||
|
||||
Does it show on any posts? if so does it show in every post of certain members but not others?
|
#9
|
|||
|
|||
Does not show on any posts.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|