Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-22-2006, 08:41 PM
dagummit dagummit is offline
 
Join Date: Aug 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I add profile categories to the avatar area of a post?

I have been searching the method to add profile categories to the post area (the area that also shows the members avatar)... By default, it looks like only the profile category "Location" show up. I have added several new categories and would like these to be able to be displayed in that area I am talking about...

The pic below can better describe the area that I am talking about... (I circled, in read, the Location category)

Attachment 53782

Is there any mod for this? Or a way to do it in the AdminCP?

Thanks!

I forgot to add that I am running vB 3.6
Reply With Quote
  #2  
Old 09-22-2006, 09:25 PM
Move-Along Move-Along is offline
 
Join Date: May 2006
Location: Cambridge (U.K)
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to the template postbit_legacy and find this code:
PHP Code:
                <div>
                    
$vbphrase[posts]: $post[posts]
                </
div
After add:

PHP Code:
                <if condition="$post['field2']"><div>Text here$post[field2]</div></if> 
Change field2 to the field number what was given when create the new field and change Text here: to what you would like to call it like it is called Loaction in your screenshot.

Dan
Reply With Quote
  #3  
Old 09-22-2006, 11:21 PM
dagummit dagummit is offline
 
Join Date: Aug 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for replying!

I opened the postbit_legacy template and found the area that talks to the categories, etc... it looks like:

Quote:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
I added in this below them:

Quote:
<if condition="$post['field6']"><div>Favorite Movie: $post[field6]</div></if>
Field6 is a single-line text box profile category. I entered in, say Star Wars for my favorite movie and on the post area, this is what is under the Location category:

Quote:
Favorite Movie: 2
Any idea on what I am doing wrong that it isn't taking the actual text and bringing it over? Also, I have a multiple drop down list category and I get similar results...just a number....

Thanks again for your help!
Reply With Quote
  #4  
Old 09-23-2006, 07:26 AM
Move-Along Move-Along is offline
 
Join Date: May 2006
Location: Cambridge (U.K)
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant see why unless you have the field numbers wrong. If you like i can do it myself for you?
Reply With Quote
  #5  
Old 09-24-2006, 03:11 AM
dagummit dagummit is offline
 
Join Date: Aug 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I double checked the fields...they are still coming back as numbers...but oh well, thanks for helping anyways...
Reply With Quote
  #6  
Old 09-24-2006, 03:35 AM
Kaasie's Avatar
Kaasie Kaasie is offline
 
Join Date: Nov 2001
Location: rotterdam
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the code seems alright to me, maybe you could check that you aren't pasting the line into an if function? if not are you sure you are using a Single Line textbox?
Reply With Quote
  #7  
Old 09-25-2006, 08:17 AM
dagummit dagummit is offline
 
Join Date: Aug 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I used the Single Line textbox and it worked...

Before, I was using the multiple line tb (I thought it was a single line) and the multiple selection menu...

Thanks you all...

Is there a way to get it to read the actual selection of the multiple selection menu?
Reply With Quote
  #8  
Old 09-26-2006, 06:53 AM
Move-Along Move-Along is offline
 
Join Date: May 2006
Location: Cambridge (U.K)
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this instead:

<if condition="$userinfo['field2']"><div>Text here: $userinfo[field2]</div></if>

And change to the correct field number
Reply With Quote
Reply


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 07:59 PM.


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.04024 seconds
  • Memory Usage 2,251KB
  • 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_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete