vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   what is the FIELD variable for a user? (https://vborg.vbsupport.ru/showthread.php?t=171958)

abroad 03-03-2008 06:59 AM

what is the FIELD variable for a user?
 
Hi,

I need to know the variable to call a profile FIELD of a user e.g. Location or Interest

is it e.g. $userid[field3]?

snakes1100 03-03-2008 10:15 AM

Look in your postbit/legacy_postbit template for that code.

Opserty 03-03-2008 02:18 PM

Do a search in future this is asked some many times here. Anyway:

In Templates: $bbuserinfo[fieldX]

In PHP: $vbulletin->userinfo['fieldX']

X being the fieldid number.

abroad 03-03-2008 02:30 PM

I did some search but I was actually looking for this:

I have vBlog installed and I want to get a field of a member who is the owner of a Blog.

I know that $blog[userid] gives me the User ID number but how can I get from there to a Specific Field number of the Blog Owner?

Opserty 03-03-2008 02:44 PM

You have to post in the thread from which you downloaded the modification, for the best advice. You can try $blog[fieldX] but it might not work depending on vBlog. (vBlog might fetch the field or it might not, if it doesn't you will need to ask in that thread on how you can do fetch the field you need.)

abroad 03-03-2008 02:46 PM

Actually, I do not have any modification, I try to program something by myself, but I need to know how to call this field variable...

Boofo 03-03-2008 02:48 PM

In the postbit, you would use:

$post[fieldxx]

(xx being the fieldid number.)

abroad 03-03-2008 03:08 PM

$post[field1];

or

$blog[field1];

doesnt work :((((

Any other ideas???

Boofo 03-03-2008 04:01 PM

Location is $post[field2] and where exactly are you using this?

abroad 03-03-2008 04:30 PM

I want to use it in my Blog. If somebody is watching the blog of a member, I want to get e.g. field2 of the members profile which blog is currently viewed by somebody.

(The field entry of the blogger and not of the viewer)


All times are GMT. The time now is 03:09 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.01071 seconds
  • Memory Usage 1,722KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete