vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Profile fields (https://vborg.vbsupport.ru/showthread.php?t=94222)

vauge 08-13-2005 01:35 PM

Profile fields
 
Are profile field vars available everywhere or just postbit?

Kirk Y 08-13-2005 02:33 PM

I don't believe they're available everywhere... but I'm pretty sure that they're available in other areas besides the postbit.

vauge 08-13-2005 04:23 PM

I would like to do something like (dunno what var it needs):

<if condition= ($post[field8] == yes)>

Display or not display something on the main forum page.

</if>

Is this possible or do I need to create a query for it?

Kirk Y 08-13-2005 05:32 PM

Yeah, you can do that with a template edit. Just create a new profile field. (AdminCP -> User Profile Fields -> Add New User Profile Field) Make whatever kind of field you want. If you're going to have like a Yes, display the image or No, don't display the image kind of deal. Then I'd make Single-Selection Radio Buttons. Then after you fill out all the details and submit the field you need to find the Field Number. It's in the name column of the Profile Field Manager. Then just place this code wherever... in your case you said you wanted to display something on your index, so you need to put it in your FORUMHOME template. Just replace the xx with your field number.

Code:

<if condition="$bbuserinfo['fieldxx']==Yes">
If you selected "Yes", then you can see this message! Isn't that wonderful?
</if>


vauge 08-13-2005 06:12 PM

You rock! Thanks!

Kirk Y 08-13-2005 09:00 PM

You're welcome, happy to help.

Creed 09-28-2005 05:16 PM

$bbuserinfo is only going to take into account the person viewing the thread, not the poster though.

Kirk Y 09-28-2005 06:35 PM

Yeah... I assume he's using it to display something on the forumhome that's selectable in the UserCP. So, it'd be a user's option, not the poster...


All times are GMT. The time now is 05:43 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.00954 seconds
  • Memory Usage 1,717KB
  • 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)bbcode_code_printable
  • (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