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 12-07-2002, 01:39 PM
JP11 JP11 is offline
 
Join Date: Dec 2002
Location: Maine
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Stupid Question from New Guy

Im very new at this, so please be kind.

I have just started to customize my application.

Which template do i make changes to if i want to show different user info on every post.

Current setting has it showing when the user registered, and how many posts they have.. I want to use more/different user fields.

thanks

JP
Reply With Quote
  #2  
Old 12-07-2002, 03:00 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

postbit

also next time post into right section: it's a template question, ...
Reply With Quote
  #3  
Old 12-20-2002, 07:11 PM
gengar003's Avatar
gengar003 gengar003 is offline
 
Join Date: Apr 2002
Location: .::|The Matrix|::.
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jeez, he asked u to be nice.

I'm inexperienced, but I've been hacking for a while.

Seems to me you are asking about custom user fields; additional things people can enter when they're registering, and edit afterwards.


If that sounds right, do this:

Go to your admin cp
(http://yoursite.com/vb/admin/)
edit: that's not a link, i'm just showin where the cp is, relative to ur site

and scroll down on the left until you see

User Profile Fields
Add Modify

Click on Add, and you'll be given the option to add a new profile field (wow, duh)

Once there, chose a title, which will label the field for users.

Then, you can enter a description, with any suggestions for the field, limits, restirictions, warnings, etc.

Maximum input is the total number of characters in the field, so if you put "8" then "the cat " would be all you could type; 2 would yield "th" Generally, set this around 100 for things like biographies (short ones) addresses, favorite things, and shorter, maybe 25-50 for short answers, like, "number of fingers" (lol.. bad example)

The last three things are pretty self-explanatory.

Hope that helps.

edit: Just re-read your post, and realized that all of the above may not be pertinent.

in which case, Xenon's right, the postbit:

Go to your templates, and scroll until you find the bold title "Postbit Templates" and choose the one that's called "Postbit"

You'll have to know the php variable names of the stuff you want to show, but that's not too hard. Here's how:

Keep this in mind: $post[fieldX]

You'll replace the fieldX with the corresponding number for the field.

So, in simple terms, go to the user profile fields page in the admin cp, (choose modify) and hold the mouse over the "edit" link for the field you want to stick in.

PC: Right-click, and choose "properties" and note the number at the end of the address shown.

Mac: Outta luck

then, go to the postbit template, find where you want to stick that in, and put

$post[fieldX] where X is the number you just spotted.

edit: Sorry, Xenon, I didn't mean to insult or offend you.
Reply With Quote
  #4  
Old 12-20-2002, 07:12 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

gengar i was nice, i gave him the information he needed

the templatename he asked for was postbit
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 06:56 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.03661 seconds
  • Memory Usage 2,187KB
  • Queries Executed 11 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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_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