vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need a couple of conditionals regarding profile fields. (https://vborg.vbsupport.ru/showthread.php?t=202437)

GHC Webmaster 01-20-2009 07:35 AM

Need a couple of conditionals regarding profile fields.
 
Hello,

I need condtionals for four similar purposes, related to custom profile fields, if these conditionals exist:
  1. A conditional to indicate a specific custom profilefield on the memberlist page.
    For example: I have fields gender, country and region on my memberlist. I would like to add a condition (probably to the memberlist_resultsbit_field template) which allows me to style the field country different from the other two fields.
  2. The same thing, but now for the Advanced Search page. A way to indicate a specific custom field using a conditional, probably in the memberlist_search_ template for the relevant field type.
  3. And once more for the user profile page. Again the same thing, a way to style a specific custom profile field different from the rest.
  4. Edit: and one more: the same thing on the Edit Profile page.
Any help with one or all of these would be great.

(I wouldn't be surprised if it turns out to be the same conditional for all four questions, or at least the first two.)

Regards,

Walrick

--------------- Added [DATE]1232530220[/DATE] at [TIME]1232530220[/TIME] ---------------

One down, three to go.

1. (memberlist) Solved:

The trick is to compare the contents of the field you want to edit with the $customfield variable which is already used in the template:

Code:

<if condition="$userinfo[fieldXX] == $customfield">
Of course you have to set it to show on the memberlist first in the profile field manager.

TEC-0 05-04-2010 03:41 AM

.. or what you are looking for, but I wanted to put specific information in the postbit that was gathered at registration, such as gender.

I found this link and it worked great for me


All times are GMT. The time now is 08:04 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.00928 seconds
  • Memory Usage 1,713KB
  • 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
  • (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