vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   User Fields (https://vborg.vbsupport.ru/showthread.php?t=73749)

Adrian Schneider 01-04-2005 06:13 AM

User Fields
 
How do I add a field to the user table? Ex: Posts, Avatar, ID, name, newone.

Reminder 01-04-2005 06:18 AM

Find : Template: postbit_legacy
USER NUMBeR :

<div>User Number : $post[userid] </div>

OTHER USER OPTIONS

<if condition="$post['field6']"><div>XXXXXX: $post[field6]</div></if>

Adrian Schneider 01-05-2005 12:44 AM

I could be mistaken, but I think I got the wrong idea across.

I mean like you can go $userinfo[id] or however it is, how would you add another thing you can edit, like a league rating or something. Making it in the database would be much easier than manually editing tons of files.

Dean C 01-05-2005 01:22 PM

Can you explain exactly what you're trying to do here. Your description leaves a lot to the imagination ;) Thanks

Adrian Schneider 01-06-2005 05:04 AM

I want to have another variable I can call up to see/set/change a users league rating (or any numerical value). So something like this: $bbuserinfo[leaguerating].

So I'm assuming I have to add it to the database, and set up the variable.

Dean C 01-06-2005 10:21 AM

But why can't you do this with a profile field?

uReside.com 01-21-2005 06:27 AM

I'm interested in this same thing, i think i need a field because i need a specific search, that searches that field ONLY. LIke if you have the fields:

|Forum |Last Post|Threads|Posts|
===================================
i need
_______________________________________
|Forum | City |Zip Code|Last Post|Threads|Posts|

Where i can search city and/or zip code from an html page outside of my forums. (i guess it could be in the /forums directory on my bored

How hard is that to do?

Adrian Schneider 01-22-2005 01:39 AM

I added it to the database, then it is easily called with (in my case) $bbuserinfo[fieldname]. $foruminfo[newfield] perhaps. You'd probably have to add the extra fields to the newthread template, along with some more php coding in that file (to add it automatically each time).


All times are GMT. The time now is 06:58 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.00958 seconds
  • Memory Usage 1,721KB
  • 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
  • (8)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