SW:Rebellion NetworkHosted by the SW:Rebellion Network
Welcome to Evaders Squadron Coding [ESC]
We host quality Star Wars sites - inquire at The Star Wars Rebellion Network
Home Forums Nuke Patched Core Coding Services Webmaster Services Personal
  Login/Create an Account    

Forums
· Forums FAQ
· Search
· Usergroups
· Profile
· Private Messages

Support Us
This site runs with your support. Please donate:

User Info/Login
Welcome, Anonymous
Nickname
Password
Security Code: Security Code
Type Security Code

(Register)
Membership:
Latest: audai
New Today: 1
New Yesterday: 0
Overall: 9109

People Online:
Visitors: 22
Members: 1
Total: 23

Online Now:
 audai

Link to Us

Affliates
RPG Boards Hosting

Evaders Squadron Coding [ESC] :: View topic - Multiple forums
Multiple forums

 
Post new topic   Reply to topic    Evaders Squadron Coding [ESC] Forum Index -> Coding Services
View previous topic :: View next topic  
Author Message
Hypnocraze
Newbie
Newbie


Joined: May 04, 2008
Posts: 5

PostPosted: Sun May 04, 2008 4:08 pm    Post subject: Multiple forums Reply with quote

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
View user's profile Send private message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Mon May 05, 2008 11:53 pm    Post subject: Re: Multiple forums Reply with quote

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
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! 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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Hypnocraze
Newbie
Newbie


Joined: May 04, 2008
Posts: 5

PostPosted: Tue May 06, 2008 4:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Wed May 07, 2008 1:00 am    Post subject: Reply with quote

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
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! 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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Hypnocraze
Newbie
Newbie


Joined: May 04, 2008
Posts: 5

PostPosted: Wed May 07, 2008 9:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Hypnocraze
Newbie
Newbie


Joined: May 04, 2008
Posts: 5

PostPosted: Wed May 07, 2008 10:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Thu May 08, 2008 3:28 am    Post subject: Reply with quote

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
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! 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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Hypnocraze
Newbie
Newbie


Joined: May 04, 2008
Posts: 5

PostPosted: Mon May 12, 2008 12:20 pm    Post subject: Reply with quote

Worked like a champ. Thank you so much for your help. Still learning. Smile. Sorry I did not get back sooner. I started churning and burning on the sites. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Evaders Squadron Coding [ESC] Forum Index -> Coding Services All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

^Top
Home Your Account Forums Downloads F.A.Q. Submit News Hosting Contact Us

© 2005 - 2007 by Evaders99. All Rights Reserved.
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters.
You can syndicate our news using the file backend.php
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL.
PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 10.4 Seconds