vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   2 forums share 1 database (https://vborg.vbsupport.ru/showthread.php?t=203947)

Chunky Monkey 02-02-2009 02:03 PM

2 forums share 1 database
 
How can 2 installations of vbulletin at separate domains on the same server share the same database so that all users, posts, etc., exist at both vbulletin installations?

Using the same config.php file at both domains seems to work because all forums and threads are available at both domains, and I can even log in to both using the same username and password, but it breaks if you try to post or send a pm from one of them.

And yes, I know 2 licenses are necessary.

Please help!

Max Kwiatkowski 02-02-2009 02:54 PM

You need to use different prefixes for each forum in a database.
To configure domains go to:
Admin CP -> vB Options -> vB Options -> Cookies and HTTP Header Options

Chunky Monkey 02-02-2009 05:32 PM

Hi, wouldn't having different prefixes for each forum make them function like separate forums when what I am trying to do is allow them to share all of the same users, forums, threads, posts, etc.?

Antivirus 02-02-2009 06:18 PM

I thin it's likely to do with your cookie prefix in config file. Try having same db info but different cookie prefix in each cfg file and see if that helps.

Chunky Monkey 02-02-2009 08:28 PM

I will give that a try, thanks. Have you managed to get two vb installations at two different domains to share a database, Antivirus?

--------------- Added [DATE]1233613866[/DATE] at [TIME]1233613866[/TIME] ---------------

EDIT: No good. I tried adding a cookie prefix but I still got a white page with no source code when I tried to create a new thread. I wonder why I can log in but not post or send a pm?

Antivirus 02-03-2009 03:07 AM

Hmm, afraid I am all out of suggestions. I haven't tried, no.

Dismounted 02-03-2009 04:56 AM

You need to add the other domain onto the POST referrer whitelist (vBulletin Options).

Chunky Monkey 02-03-2009 02:29 PM

Thank you, Dismounted. I have added the other domain to the POST referrer whitelist and am now able to send private messages from the "secondary" domain, but it still goes to a white screen when I try to create a thread or post a reply. Any ideas?

Dismounted 02-04-2009 07:12 AM

The URL set in vBulletin Options (Site URL Options) must be changed for each domain. This can be done through plugins.

Chunky Monkey 02-04-2009 12:43 PM

I changed the URL by adding

PHP Code:

$vbulletin->options['bburl'] = <my domain

to the top of global.php. It appears to work in so far as links at the "slave" forum lead to the proper URLs. However, I still get blank white pages when I try to post. Any ideas?

--------------- Added [DATE]1233795774[/DATE] at [TIME]1233795774[/TIME] ---------------

Anyone?


All times are GMT. The time now is 06:19 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.00939 seconds
  • Memory Usage 1,727KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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