vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Renaming / Custom user fields (https://vborg.vbsupport.ru/showthread.php?t=162894)

vsforums 11-16-2007 07:40 PM

Renaming / Custom user fields
 
Hello,

Quick question: Need to have a user field on a number of forums (60+), and, as a lazy coder was wondering if there is a way to unify the field names across them all...

Simply put: can I rename or force a name into the userfield table so that is its consistent across multiple forums.

on abc1.com I set a user field, and it's auto assigned the name field1

on abc2.com I set a user field, and, since there is other info custom for the sit, it gets a name of field9

I want it to be "field99" or "display-options", for example, on multiple VB installs,.

Now, I'm trying to write a little adminCP product to globally set the option of my field, named "Display Ad Info" for all users, but it's much more complicated if the field name isnt the same across all sites, and a huge pain to modify my code for 60+ forums.

Can this be done? :confused:

Marco van Herwaarden 11-17-2007 06:26 AM

If you want to use userfields for this, then the answer is No.

vsforums 11-18-2007 06:24 PM

thanks,

back to the drawing board ;)


All times are GMT. The time now is 03:47 PM.

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.01421 seconds
  • Memory Usage 1,705KB
  • 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