vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Adding information under users Avatar (https://vborg.vbsupport.ru/showthread.php?t=232173)

shane943 01-04-2010 08:48 PM

Adding information under users Avatar
 
1 Attachment(s)
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?

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

1 Attachment(s)
I want the information they enter here:
Attachment 109110

To be displayed here:
Attachment 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?
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>


Lynne 01-05-2010 02:59 PM

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.)

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

1 Attachment(s)
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


All times are GMT. The time now is 12:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01911 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete