Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-08-2005, 05:08 AM
bkbelew bkbelew is offline
 
Join Date: Aug 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How everything works?

Hello,

Anyone have or willing to type up a layout of exactly how the vb backend works, like what happens when you hit the index, ie, init.php is loaded etc. Im trying to make the install I have share a database with another. And I cant seem to find anything. I cant find where vb defines what $user is, I cant find where the database query it for the $user string. I need to change the the prefix for the $user string.. Since I have one installed with no prefix, and the other with testvb_ I know it will end up being alot of changes to vb, that I dont mind.. I have nothing better to do I just cant figure out how its layed out, where variables are stored.. etc etc.. Can anyone help? Also, just in case I dont end up figuring this out, does anyone have a script to copy any new content from one user db, to another?

Brandon
fraghard.com
Reply With Quote
  #2  
Old 01-08-2005, 05:09 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pay me 1 Million dollars and give me about a year I'll give you all the tech docs you want.

At the moment there is no intensive docs like what you want, best off to ask a question and someone will anwser.
Reply With Quote
  #3  
Old 01-08-2005, 03:02 PM
bkbelew bkbelew is offline
 
Join Date: Aug 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mainly all I want to know is where the $user variable is set. I could care less about a extensive tech doc, it would just make it easier I dont mind working, and searching.. this damn variable is being a real $#%$^ to find though.
Reply With Quote
  #4  
Old 01-08-2005, 04:29 PM
rake's Avatar
rake rake is offline
 
Join Date: Nov 2002
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The user variable is set 86 times all across the vbulletin files. Which file are you looking at?
Reply With Quote
  #5  
Old 01-08-2005, 04:31 PM
bkbelew bkbelew is offline
 
Join Date: Aug 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im just wanting to change the $user query to look at a different table prefix
Reply With Quote
  #6  
Old 01-08-2005, 06:11 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bkbelew
Im just wanting to change the $user query to look at a different table prefix
Still going to require you changing alot of files.
Reply With Quote
  #7  
Old 01-08-2005, 06:23 PM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bkbelew
Im trying to make the install I have share a database with another.
That's going to require a LOT of work. The user table is queried in probably about 80% of the files. I'm not really understanding how adding a prefix to the user table is going to help with sharing a database though...
Reply With Quote
  #8  
Old 01-08-2005, 06:28 PM
bkbelew bkbelew is offline
 
Join Date: Aug 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wouldnt mind changing the code in every file if i knew what code to change I know itll be alot of work.. doesnt bother me.. i have alot of time.

Quote:
That's going to require a LOT of work. The user table is queried in probably about 80% of the files. I'm not really understanding how adding a prefix to the user table is going to help with sharing a database though...
The two installs are in the same database, one has a prefix and one doesnt... to me, changing the prefix of the one with to a blank prefix, only on the user tables.. would make it read from the same table correct? Im new to all of this.. im just guessing with alot of it.. Im just looking for a little snippet of info that can help me My boss wants this done.. and doesnt want to pay.. so either I learn php.. and quick.. or i find someone to set me in the right direction :nervous: Any help would be greatly appreciated :ninja:
Reply With Quote
  #9  
Old 01-08-2005, 06:59 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bkbelew
I wouldnt mind changing the code in every file if i knew what code to change I know itll be alot of work.. doesnt bother me.. i have alot of time.



The two installs are in the same database, one has a prefix and one doesnt... to me, changing the prefix of the one with to a blank prefix, only on the user tables.. would make it read from the same table correct? Im new to all of this.. im just guessing with alot of it.. Im just looking for a little snippet of info that can help me My boss wants this done.. and doesnt want to pay.. so either I learn php.. and quick.. or i find someone to set me in the right direction :nervous: Any help would be greatly appreciated :ninja:
I've already done it, (setting up the successfull use of one user datbase for two forums) its not pretty work, and it requires alot of time.
Reply With Quote
  #10  
Old 01-08-2005, 07:02 PM
bkbelew bkbelew is offline
 
Join Date: Aug 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Give me some hints, lol.. please please.. I dont mind if its not pretty work.. and requires alot of time.. i need a challenge from time to time. But when you know nothing of how something works, it makes it near impossible to do anything with it.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:41 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.02127 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete