vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How do I import from CSV to an existing Profile field (https://vborg.vbsupport.ru/showthread.php?t=312853)

ukcobra 07-09-2014 11:13 AM

How do I import from CSV to an existing Profile field
 
My Vbulletin forum has a field in the Profile to store a Club Membership number. It's a freeform text field , however, I would like to take the details stored in the Club's separate Membership database and periodically update the field.

Our CSV file would contain the new details and have the VB Forum ID name / number.

How do I go about merging this automatically on a regular basis ?

I have spent some time searching this forum and google, and not found anything suitable.

Thanks in advance

Mark

Dave 07-09-2014 11:19 AM

There are multiple ways you can do this.
For example, one way to do this is to make a new script in the ACP which allows you to upload a CSV file. Then you just parse it with PHP its CSV parsing functions and update the profile fields.

ukcobra 07-09-2014 11:51 AM

Thanks for that, I've had a look in the ACP, but cannot see anything where I could do this.
Are you aware of any online guide or manual I can refer to ?
Thanks
Mark

Dave 07-09-2014 12:04 PM

Well obviously you have to create the script yourself and to create a menu item in the ACP, you have to create a cpnav_*.xml file which can be found in the includes/xml/ folder on your server.

If you can't do this yourself, you should create a thread here or here.

ukcobra 07-09-2014 12:46 PM

Thanks, I feel confident to create the script when following some instructions, just find it strange that it's not out there and documented.

I don't believe I am the first person to want to do this. So I need to dig a bit deeper with my searching I guess.

tbworld 07-09-2014 01:21 PM

This might help you out:

http://www.vbulletin.com/forum/forum...into-vbulletin

Read through the thread, as the original poster is requesting something similar.

:)


All times are GMT. The time now is 08:42 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.01128 seconds
  • Memory Usage 1,719KB
  • 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
  • (6)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