vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Make vbulletin use another table for users (https://vborg.vbsupport.ru/showthread.php?t=66685)

Lurk 07-05-2004 11:14 PM

that doc gonna be posted here? :) :p

Zachery 07-05-2004 11:42 PM

Quote:

Originally Posted by Lurk
that doc gonna be posted here? :) :p

I dunno lurk, its still alot of work, and you gaveup after 20 seconds :p

Lurk 07-06-2004 12:29 AM

lol :D, i wanna try it though. I'm going to try it if i got a doc to help me out :p

Lurk 07-07-2004 04:32 AM

So, Zachery, i hope you don't mind me asking this, but can you either post the doc here or send me a pm?

nicholas 07-07-2004 07:11 AM

Zachery, please post either the doc or your modified version. I'm interested in this and I'm sure a LOT of others are as well.

Lurk 07-07-2004 04:39 PM

yeah :)

Lurk 07-11-2004 10:05 PM

Zachery, you gonna release it?? I really wanna try it

nexialys 07-12-2004 12:38 AM

in includes/db_mysql.php
FIND:
PHP Code:

    function query($query_string$query_type 'mysql_query')
    {
        global 
$query_count$querytime

JUST AFTER, ADD:
PHP Code:

        global $yournewdatabase$yournewprefix;
        
$query_string ereg_replaceTABLE_PREFIX."user "$yournewdatabase.".".$yournewprefix."user "$query_string); 

$yournewdatabase = you share your users in a single database, so you need to switch from the vB database this forum use, to the one you want to share.

$yournewprefix = your new database have a different prefix i suppose... change it there...

you can add these new variables to your config.php file... but have to be added or the script is useless.

also, this hack is for sharing between different vB, and have not been tested for other purposes... and i will not release it, because you really have to own 2 different licenses to be able to deal with it - or it's illegal!

this can become a official hack btw!

Andreas 07-12-2004 01:05 AM

I think, except the legal issues, there are several problems:
  • post counter
  • last activity
  • used style
  • PMs
  • reputation
  • usergroup membership

Id' like to know how this problems can be avoided/fixed?

nexialys 07-12-2004 01:22 AM

for this list, just make the exact same change as for the user table... tables are precisely identified, so it's not a problem... the friend just asked for the users table, not the entire system...

some will tell this change make some overhead, but when you want to share your stuff like that, you have to deal with some problems... you can make a global change around the script and make it impossible to update later, or make this little quicky that will enable you a complete merge of users without changing more of the script...

i've done the same change for hivemail to use my own vb table instead of the regular vb integration ... job is cool!


All times are GMT. The time now is 05:42 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.01035 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete