vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Shared user database (https://vborg.vbsupport.ru/showthread.php?t=75307)

Dean C 01-28-2005 02:26 PM

Shared user database
 
Okie dokie, well I'm too lazy to sit down and write all the regexps myself so I say we form a community collboration on this one :)

How we'll do this
There are several different types of SQL queries which are passed to the database driver in db_mysql.php. These are (off the top of my head):
  • SELECT FROM / DELETE FROM
  • UPDATE
  • INSERT INTO / REPLACE INTO
  • JOIN

So we're probably looking at 4 regexps and a possibly a few more (that I've forgot).

The idea is one person from the community volunteers to take part of a query and rewrite it :) As we're going to have 4+ different people writing different pieces of code I think all we need to post up for now is an example query taken from vB3 and an example of your regexp fixing your part of the query and echoing it before and after.

My Contribution:

I'll do the FROM part of SELECT and DELETE :)

Xenon 01-28-2005 02:47 PM

the from part of SELECT and DELETE might be the same ;)

as well as replace and insert are actually the same thing, so can both be handled by one person ;)

Dean C 01-28-2005 02:48 PM

You're right, we only have 3 left then ;)

Dean C 01-28-2005 05:10 PM

Ok just an update, I've got this sorted out by myself in the end. I wrote all the regexps and it all works.

But I've just been speaking to 'RoyalRidge' in the #vBorg chatroom and we came up with some forseeable problems:

- Forum permissions (what happens if the forumids are the same?)
- Usergroups (usergroupids = the same could be a problem)

Xenon 01-28-2005 06:53 PM

now you see, why i haven't finished my work on that hack ;)

basically you have to rewrite the usergroup system as well, and design it in a way, that the registred ug has the sam id on both forums, and all other usergroups will just be added as additional usergroups, with distinct ids (and dummy usergroups for those on the other board...)

AN-net 01-28-2005 06:57 PM

yeah for complications!


All times are GMT. The time now is 06:25 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.00933 seconds
  • Memory Usage 1,716KB
  • 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