Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 Aug 2020, 20:27
Hawk7173 Hawk7173 is offline
 
Join Date: Dec 2004
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
Reply With Quote
  #2  
Old 26 Aug 2020, 21:15
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Real name: Anthony
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.

Last edited by snakes1100; 30 Aug 2020 at 09:35.
Reply With Quote
  #3  
Old 26 Aug 2020, 23:23
Hawk7173 Hawk7173 is offline
 
Join Date: Dec 2004
When I open up style manager, I get a list of styles. Does this need to be done on each style?

--------------- Added 26 Aug 2020 at 23:58 ---------------

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 27 Aug 2020 at 00:34 ---------------

Just to be clear, this needs to show at the left below the avatar on each post the members make
Reply With Quote
  #4  
Old 28 Aug 2020, 09:10
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Real name: Anthony
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.
Reply With Quote
  #5  
Old 28 Aug 2020, 16:35
Hawk7173 Hawk7173 is offline
 
Join Date: Dec 2004
I placed the code as directed. Does not show on each post.

--------------- Added 28 Aug 2020 at 17:28 ---------------

This is the code I used:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by Hawk7173; 28 Aug 2020 at 17:32.
Reply With Quote
  #6  
Old 28 Aug 2020, 22:06
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Real name: Anthony
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.
Reply With Quote
  #7  
Old 28 Aug 2020, 22:39
Hawk7173 Hawk7173 is offline
 
Join Date: Dec 2004
Just ran rebuild threads...no joy!
Reply With Quote
  #8  
Old 29 Aug 2020, 06:46
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Location: Lancashire, UK
Originally Posted by Hawk7173 View Post
I placed the code as directed. Does not show on each post.
Does it show on any posts? if so does it show in every post of certain members but not others?
__________________
Better VB.org search
Reply With Quote
  #9  
Old 29 Aug 2020, 16:27
Hawk7173 Hawk7173 is offline
 
Join Date: Dec 2004
Does not show on any posts.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 17:59.

Layout Options | Width: Wide Color: