Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2010, 08:48 PM
shane943's Avatar
shane943 shane943 is offline
 
Join Date: Oct 2009
Location: Clovis, Ca
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 01-04-2010, 10:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-04-2010, 10:12 PM
shane943's Avatar
shane943 shane943 is offline
 
Join Date: Oct 2009
Location: Clovis, Ca
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want the information they enter here:
Attachment 109110

To be displayed here:
Attachment 109111

Location:
Interests:

^Under the users avatar
Reply With Quote
  #4  
Old 01-04-2010, 10:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 01-04-2010, 11:23 PM
shane943's Avatar
shane943 shane943 is offline
 
Join Date: Oct 2009
Location: Clovis, Ca
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 01-04-2010, 11:38 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #7  
Old 01-05-2010, 04:50 AM
shane943's Avatar
shane943 shane943 is offline
 
Join Date: Oct 2009
Location: Clovis, Ca
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #8  
Old 01-05-2010, 02:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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> 
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.)
Reply With Quote
  #9  
Old 01-06-2010, 11:56 AM
derfelix derfelix is offline
 
Join Date: Nov 2001
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 01-06-2010, 08:54 PM
shane943's Avatar
shane943 shane943 is offline
 
Join Date: Oct 2009
Location: Clovis, Ca
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 01:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04372 seconds
  • Memory Usage 2,277KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete