vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   mini-profile on the side? (https://vborg.vbsupport.ru/showthread.php?t=99274)

SupermanInNY 10-25-2005 11:06 AM

mini-profile on the side?
 
Hello,

I'm new to vb, so bare with me on this probably silly question.
When I view a thread here, I see a mini-profile showing on the side of each post.
How can I make this in vb3.5.0?
Is this a hack or a built-in function?
If you could point me in the right direction it would be great.
I've searched the forum for Profile, User profile, but didn't find anything.
Thanks,

-Alon.

Chris M 10-25-2005 01:01 PM

It isn't actually a mini-profile - There is an option in the vBulletin Options to select the "Legacy Postbit" - This will display the similar style of postbit layout that is used here on vBulletin.org, and was the main layout in vBulletin 2 :)

The new postbit layout displays the same information but at the top of the post as opposed to the side :)

Chris

SupermanInNY 10-25-2005 01:38 PM

Thank you for letting me know about this.
I've been searching for this till I had to post the question.
What a relief :))

I knew it was a silly question :)

Thank you.
Now,. the next step:

How I customize it to include and display certain fields?

-Alon.

Chris M 10-25-2005 02:16 PM

Fields such as profile fields? Or database entered fields?:)

Chris

SupermanInNY 10-25-2005 02:29 PM

Quote:

Originally Posted by Chris M
Fields such as profile fields? Or database entered fields?:)

Chris

Fields like these:

Join Date: Jan 2002 (got that one!)
Posts: 4,652 (got that one!)

Anything below is items I'd like to add (do they look familar :rolleyes: ):

Real name: Chris Murphy, BSc
Location: Northampton, England

vB Version: 4.0.7
Style: Smooth Blue

-Alon

Chris M 10-25-2005 02:45 PM

Heh :)

They are profile fields; You will need to add a new profile field to record user's names ;)

Via the Profile Field Manager, you will add a "Real Name" field, using the settings you wish, then when you goto the Manager screen it will have "fieldX" by it, where X is the number of the field (it varies depending on how many fields you have)...

Then to include them in a post, you add to the postbit_legacy template:

HTML Code:

<if condition="$post['fieldX']"><div>Real Name: $post[fieldX]</div></if>
(replace X with the number from the Profile Field Manager)

Chris

SupermanInNY 10-25-2005 06:48 PM

That was sweet and simple :) yey :).

I even moved the Online/Offline lines a bit up closer to the User info as user complained they don't want to scroll down to see it.

Thanks for the help.

-Alon.


All times are GMT. The time now is 11:07 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.02749 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete