View Single Post
  #6  
Old 06-09-2005, 06:34 PM
makaiguy's Avatar
makaiguy makaiguy is offline
 
Join Date: May 2004
Location: Aiken, SC, USA
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheSpecialist
You'd just have to create a field called newfieldname (or use your own, just be consistent) and make the changes. Whenever a user new field and profile field aren't equal, it will update them.
Thanks for trying to help this newbie to vBulletin. But I need you to back up a step or two. HOW do I go about creating the new field in the database? I'm a long time programmer but have never worked with databases. Once the field exists and can be referred to I understand the rest, thanks to your query code.

Quote:
Originally Posted by princeton
members can not view 'private fields' hence why it doesn't work properly for them

why don't you just upgrade the org members into their own USERGROUP?
from there, it would be easier to show their 'membership type'
This would be the ideal solution, but it would have to be done automatically. We're talking literally thousands of members here, with new ones joining and getting the org pwd all the time. And when the pwd changes periodically, they'd all have to automatically drop out of the usergroup until they entered the new pwd into their profiles. (I have no problem updating my vBphrase storing the password manually when the org pwd changes - it doesn't happen all that often.)

But having a special usergroup for org members was what I wanted in the first place as there is SO much you could do with it. See this thread that just sort of died on the vine: https://vborg.vbsupport.ru/showthread.php?t=80089

I'd guess this could be done with a query similar to TheSpecialist's that compares field5 to my org_password phrase then puts that user into or out of the usergroup accordingly. Can anybody help with the query code?

When is the php_include_start code run? When each user logs on, or every time a new page is created, or .... ?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01018 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete