vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Stupid Question from New Guy (https://vborg.vbsupport.ru/showthread.php?t=46459)

JP11 12-07-2002 01:39 PM

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

Xenon 12-07-2002 03:00 PM

postbit

also next time post into right section: it's a template question, ...

gengar003 12-20-2002 07:11 PM

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.

Xenon 12-20-2002 07:12 PM

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

the templatename he asked for was postbit :)


All times are GMT. The time now is 10:03 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.01033 seconds
  • Memory Usage 1,718KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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