| View previous topic :: View next topic |
| Author |
Message |
Hypnocraze Newbie


Joined: May 04, 2008 Posts: 5
|
Posted: Sun May 04, 2008 4:08 pm Post subject: Multiple forums |
|
|
Since you guys released there latest bb2nuke. I wanted to toss this question at you.
I am trying to get multiple nuke sites using the same user info by using the user prefix.
What I run into is.
Site 1 - $user_prefix = "nuke1";
Forums are working for this site
Site 2 - $user_prefix = "nuke2";
Forums are working fine
Now separately All is fine.
I export the users and create a Single new table and try to use this prefix
$user_prefix = "nukeall";
I get a blank screen.
Through my testing. If say I set Site 2 to $user_prefix = "nuke1";
Doing so I would recieve the forums of Site 1.
Any idea of how to get multiple nuke instances to not share the same forum info. I have been lookign all over the place. Thanks for any insight.
Almost forgot to put the proper info. Using phpnuke 8.1 patched with sentinal and that is it. Using the bbtonuke 2.0.23 full |
|
| Back to top |
|
 |
Evaders99

Joined: Jan 11, 2002 Posts: 3063 Location: USA
|
Posted: Mon May 05, 2008 11:53 pm Post subject: Re: Multiple forums |
|
|
If you set the user_prefix
| Code: |
$user_prefix = "nukeall";
|
you should have the table nukeall_users
If the prefix values are different, you should not have shared forums, only shared users.
ala, you would have different forums such as
| Code: |
nuke1_bbconfig
nuke2_bbconfig
etc.
|
_________________ Evaders99
Webmaster
Administrator
Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -
The cake is a lie. |
|
| Back to top |
|
 |
Hypnocraze Newbie


Joined: May 04, 2008 Posts: 5
|
Posted: Tue May 06, 2008 4:39 am Post subject: |
|
|
That is what I thought as well. But for some unknown reason. Whatever user table I try to use it sets the forums based on that. i.e.
I have 3 tables for users. Nuke1, Nuke2, nukeall.
If I use nuke1 I get the forums set for nuke1 on both sites.
If I use nuke2 I get the forums set for nuke2 on both sites.
What i did was took Nuke1 table and exported it and imported it as nukeall.
When I use the nukeall table I get only the forums for nuke1.
Maybe I did soemthing wrong. When i did the install of nuke. Each site I edited the nuke.sql file and enamed the table and imported the table into the database. set the config.php to the proper variable.
So needless to say, I am a bit confused as how or why it is maintiang the forum info across the sites. I said, i wonder if it is a cookie issue. So I changed the cookie name to a different one for each site using a cookie module I found. Still no go.
I know you have your set to use one login for multiple sites and they have separate forums that is where I am really confused. LOL |
|
| Back to top |
|
 |
Evaders99

Joined: Jan 11, 2002 Posts: 3063 Location: USA
|
Posted: Wed May 07, 2008 1:00 am Post subject: |
|
|
I don't know about your specific version, but you should have the forums tables defined in includes/constants.php
i.e.
| Code: |
define('CONFIRM_TABLE', $prefix.'_bbconfirm');
|
Those use the $prefix value to differentiate between the tables used _________________ Evaders99
Webmaster
Administrator
Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -
The cake is a lie. |
|
| Back to top |
|
 |
Hypnocraze Newbie


Joined: May 04, 2008 Posts: 5
|
Posted: Wed May 07, 2008 9:59 am Post subject: |
|
|
phpBB : Critical Error
Could not query config information
DEBUG MODE
SQL Error : 1146 Table 'nukecommon_bbconfig' doesn't exist
SELECT * FROM nukecommon_bbconfig
Line : 223
File : common.php
Note $prefix=nuke1
$user_prefix=nukecommon
using phpnuke 8.1 patched with 3.5 update. beyond that just the bb2nuke upgrade.
This error occurs whe accessing Forums/admin/index.php
In the index.php they are making referance to $board_config rather than CONFIG_TABLE
Last edited by Hypnocraze on Wed May 07, 2008 10:45 am; edited 2 times in total |
|
| Back to top |
|
 |
Hypnocraze Newbie


Joined: May 04, 2008 Posts: 5
|
Posted: Wed May 07, 2008 10:08 am Post subject: |
|
|
| Code: |
$sql = "SELECT *
FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}
|
Should that be calling on
| Code: |
define('CONFIG_TABLE', $prefix.'_bbconfig');
|
And that is there. so somewhere the config_table has to be calling on $user_prefix rather than just prefix. |
|
| Back to top |
|
 |
Evaders99

Joined: Jan 11, 2002 Posts: 3063 Location: USA
|
Posted: Thu May 08, 2008 3:28 am Post subject: |
|
|
In your config.php, delete this line
| Code: |
$prefix = empty($user_prefix) ? $prefix : $user_prefix;
|
It is unnecessary and more of the dumb code we see in the latest, untested phpNuke versions _________________ Evaders99
Webmaster
Administrator
Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -
The cake is a lie. |
|
| Back to top |
|
 |
Hypnocraze Newbie


Joined: May 04, 2008 Posts: 5
|
Posted: Mon May 12, 2008 12:20 pm Post subject: |
|
|
Worked like a champ. Thank you so much for your help. Still learning. . Sorry I did not get back sooner. I started churning and burning on the sites.  |
|
| Back to top |
|
 |
|