vb.org Archive

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

hobbybox 06-17-2008 05:50 PM

Help Please
 
I offer my members the ability to select from a list in the profile fields. Whatever they select shows in the post bit...

One of the items they can choose from is 'other' - I then have a 2nd profile field that allows them to type the name of the item if it doesnt appear on the list.

what im looking to do is somehow each day be able to get a list of the members that have 'other' selected so I can add what they typed to the list and change their profile.

Can this be done by a cron job? If so can someone help me create it? im trying to avoid having to manually check each new registration to see if they selected 'Other' and to see what they added.

Dismounted 06-18-2008 06:22 AM

[sql]SELECT userid, fieldX
FROM userfield
WHERE fieldY = 'Other'[/sql]
Where fieldX is the field you want to see and fieldY is the field with "other".

hobbybox 06-18-2008 12:26 PM

thank you - works great.


All times are GMT. The time now is 01:05 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.02013 seconds
  • Memory Usage 1,703KB
  • 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
  • (3)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