vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Added extra field to 'user' table, can't get variable to show on 'memberinfo' templat (https://vborg.vbsupport.ru/showthread.php?t=156361)

criscokid 08-27-2007 09:26 AM

Added extra field to 'user' table, can't get variable to show on 'memberinfo' templat
 
I've added an extra database field to the 'user' table that I'd like to use on the 'memberinfo' template but I just can't get the variable to display. I suspect I'm either going about it the wrong way or using the wrong variable.

Andreas 08-27-2007 09:34 AM

$userinfo[whatever]

criscokid 08-27-2007 09:37 AM

Do I need to create a plugin or anything to tell vB to read that value from the databse for that user or does it automatically retreive all fields in the 'user'table when showing the 'memberinfo' template for a user?

Andreas 08-27-2007 09:49 AM

It is being read automatically.

criscokid 09-01-2007 06:21 PM

How do I go about this if the table I want to query is in a different database?

Paul M 09-01-2007 09:33 PM

Do you really mean a different database, or just a different table ?

criscokid 09-02-2007 05:35 AM

A different table (it was originally going to be a different database but giving my idea more thought I think the best way forward is to create an extra tables in the forum database rather than a seperate database).

Dismounted 09-02-2007 07:23 AM

You'll have to query the database in a plugin.

Paul M 09-02-2007 09:23 AM

There is little point in creating a new table unless you are adding a lot of fields, your original post seemed to suggest just one, you could simply add that to the user table, the usertextfield table, or even just create a custom userfield via the ACP.


All times are GMT. The time now is 06:40 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.02962 seconds
  • Memory Usage 1,715KB
  • 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
  • (9)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