vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Using default profile fields in templates (https://vborg.vbsupport.ru/showthread.php?t=131588)

Rawhide 11-14-2006 09:16 PM

Using default profile fields in templates
 
Is there a reference of all the existing profile field variables? My Google-fu and search-fu is inadequate.

I'll explain what I want to do. I have completely disabled avatars board wide, but I want something to appear when the user has selected "Show Avatars". The current code will only show information if avatars are enabled board wide, the user has selected Show Avatars and the user has uploaded an avatar using the now disabled code.
PHP Code:

<if condition="$show['avatar']"

I'm looking to modify that condition to only check the user editable option (not the board wide setting or if a user has uploaded an avatar using the internal avatar code), guests should always see it. As I was doing so I noticed a distinct lack of reference material and wasn't able to find the information I needed in the manual, vb.com, vb.org or via Google.

So, what I am looking for is a) information on how to do this and b) variable reference material.

Rawhide 11-16-2006 11:41 AM

Thanks to Jake Bunce who has pointed out the correct variable:
PHP Code:

$bbuserinfo[options] & 

From that I have extrapolated that the code I needed was:
PHP Code:

<if condition="$bbuserinfo[options] & 2 OR $bbuserinfo['userid'] == 0">

</if> 



All times are GMT. The time now is 03:17 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.00915 seconds
  • Memory Usage 1,714KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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