vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   where are the sql queries (https://vborg.vbsupport.ru/showthread.php?t=57554)

joeydood 10-02-2003 08:06 PM

where are the sql queries
 
help a newb...
where are the sql queries? let's say u want to include users.field2 in the 'welcome back' text...

all i see is $username so i can understand the necessity for an inner join with the userfield table on userid=userid.

but where are the queries???

joeydood 10-02-2003 08:24 PM

well i seem to have found them!

index.php, global.php... so where is the $bbuserinfo being populated with the fields in its array? i'm trying to find this in the global.php file.

seems to me that all i'd have to do is inner join it with the userfield table on userid and it would get inserted in the array automatically.

i'm concerned if i populate this array with another field that i may effect something else in the software.

any comments/suggestions?

Logician 10-03-2003 10:03 AM

The $bbuserinfo array is populated inside admin/sessions.php..

But you don't need to hack it to achieve your aim because what you are trying to achieve is already built-in in default vb code.

You can use $bbuserinfo[fieldX] variable to access visitor's userfield values like
$bbuserinfo[field1] $bbuserinfo[field2] etc.

joeydood 10-03-2003 12:04 PM

you rock, thanks man!

i was well-geared up for an assualt on the code!

irons down!


All times are GMT. The time now is 07:19 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.00953 seconds
  • Memory Usage 1,706KB
  • 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