Thread: mYvBindex v3.1
View Single Post
  #823  
Old 02-26-2003, 03:49 PM
MartynJ MartynJ is offline
 
Join Date: May 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by PlurPlanet
joeboo - I don't think it can unless that server has access to the same database. There *may* be a way to have it pull the info from the other server if it doesn't have access to the database, but I've never tried that and I'm not sure if it would even work or not. I can try to look into making a "mini-hack" if I can get that to work when I have some more time though.
I'm sure you can. It all has to do with the name of the database server in admin/config.php

For example, the myvbindex.php file is on Server A and the forums are on Server B.

You would need to mimic certain files such as global.php etc on the Server A, and then on server B in admin/config.php don't put "localhost" as teh servername. Hmm, actually, this is getting more complex as I think about it. In order to be included, the admin/config.php would need to be on the same server also as the myvbindex.php -

Hmm, I think then that you'd need to have it so that on Server A you had myvbindex.php, global.php and then all the contents of the admin folder. In the admin folder on Server A you'd specify the IP or full hostname of the MySQL server on Server B. Server B you would leave intact as a normal forum and use the term "localhost" in your admin/config.php

The problem though may be a question of "What constitutes two uses of one licence?"

EDIT
Oh, it gets worse. While securing a MySQL server I'm running at home, I found out that you also have to specify from which hosts any given user can access the server. I'm betting 100% of Hosting Co's will just have this set to "localhost" purely for security reasons. That means that no matter what, you'll not be able to *directly* connect to the remote database from another server unless it is specifically enabled (maybe a second MySQL account would allow it, but you'd need to speak to your host)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02367 seconds
  • Memory Usage 1,766KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete