vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adding users remotely? (Touches on integration) (https://vborg.vbsupport.ru/showthread.php?t=176400)

TJFweb 04-17-2008 04:04 AM

Adding users remotely? (Touches on integration)
 
Hi everyone,

The challenge I face is as follows:
  • We aim to run a Members Only vBulletin forum for students of our academic institution.
  • All of our student details are stored in a database on an off-site server. We cannot remotely query that database for security reasons.
  • Students can logon to a 'Student Resource Center' on the off-site server with their credentials.
  • We aim to provide a link to students in the 'Student Resource Center' which will create an account for them on our vBulletin installation.

Does anyone have any suggestions as to how we can achieve this?

I thought that the absolute simplest way would be to develop a script within the 'Student Resource Center' which would connect to our vBulletin database and insert a row in the user table, thus directly creating a user in the vBulletin database. How feasible is this?

The script could also pull fields from the student database to determine what groupid to give the user in vBulletin, what username to assign them, etc.

The last challenge is that we will need to verify and update all forum accounts on a regular basis (i.e. every week or every few days). This is for the following reasons:
  • To make sure that un-enrolled students no longer have Members Only forum access.
  • To update the groupid of forum users, which will change as the student progresses through their course.
  • To update basic details such as email address, which might be changed by the user in the 'Student Resource Center' or by our student administration.

The above could most likely be done via a script which runs on the off-side server (triggered via cron or something similar).

Any suggestions would be most welcome!

Thank you.

Dismounted 04-17-2008 05:36 AM

If both scripts are coded in PHP, it would just require using the vBulletin User Datamanager to add a user and update them. You could code a script that runs through the database, verifying details (as a cron task), or alternatively, update the vBulletin live when changes happen.

TJFweb 04-17-2008 05:48 AM

Hi and thanks for your reply.

I did consider the datamanager option, but wouldn't it matter that the 'Student Resource Center' and the vBulletin are on two completely separate servers?

Dismounted 04-17-2008 09:40 AM

In that case, you will need to replicate what the datamanager does and I assure you, it does more than just adding a row in the user table.


All times are GMT. The time now is 01:12 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.01081 seconds
  • Memory Usage 1,715KB
  • 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
  • (4)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