Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 Multiple Forums/Same Database
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 May 2001 :  00:44:17  Show Profile  Visit dayve's Homepage
I've read through several open ended discussions on how to do this but I fail at every attempt to do it correctly. I would be extremely grateful if someone could layout specific directions (not suggestions please ) on how to have 2 forums using the same database for topics and user base BUT different color schemes. The Forum scripts will be on the same server so I need to ensure every detail is discussed including config script changes, table additions/changes, cookie setup, the works.

I've come close to accomplishing this only to blow it so I am giving up for now hoping someone can get me back on track.

I am available for chat at ICQ 4014050 if you can help. Thanks to all the help I've received so far. This community is a great place to be..

Dayve

Dayve

sr_erick
Senior Member

USA
1318 Posts

Posted - 24 May 2001 :  18:35:26  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
Try following this post. http://forum.snitz.com/forum/topic.asp?TOPIC_ID=7791&FORUM_ID=34&CAT_ID=10&Topic_Title=Please+help+us%21&Forum_Title=Help%3A++General It is something to go on for now. This is what we did mostly. I will set up one tonight mabye and then I can tell you exactly what I did. It isn't that hard once I think about it but I just don't rember every step. I will get back to you soon. The two we set up are at: http://www.snowmobilefanatics.com/snofans and http://www.snowmobilefanatics.com/polarisman

__________________________________


Snowmobile Fanatics
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 May 2001 :  19:12:13  Show Profile  Visit dayve's Homepage
I'm kind of getting a handle on this but I am taking it extremely slow...

What I did so far was for the second forum I created a variable in the config.asp like so

dim strDBType, strConnString, strTablePrefix, strMemberTablePrefix, strTableTwoPrefix '## Do Not Edit

then I added this:

strTableTwoPrefix = "FORUM2_"

Then I copied the CONFIG table and named it FORUM2_CONFIG

As for the admin files I started with the most important one admin_config_colors.asp and I removed and replaced all strTablePrefix with strTableTwoPrefix. I am presently doing the same for admin_config_system.asp

Things are going the way I want but I am still reviewing things closely. I really need to identify any criticial issues I should be aware of before I go LIVE. I would continue to appreciate any info you can offer me while I am working through this but after hours of reviewing snitz code I think I am getting the hang of it.

One burning question is... what is the importance of this variable:

strMemberTablePrefix = "FORUM_"

Thanks...

Dayve
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 May 2001 :  20:34:46  Show Profile
I thought that all you need to do is upload another set of the snitz forum into another folder, edit the config.asp file to point to the same database and then edit the values of strTablePrefix and strMemberTablePrefix to something like FORUM2_. That would be all you need to do. So you would have 2 different Members info and Forum Config in the same database. one will be starting with FORUM_CONFIG, FORUM_TOPICS, FORUM_MEMBERS for example and the other will have FORUM2_CONFIG, FORUM2_TOPICS, FORUM2_MEMBERS and so forth.

You would need to be aware of some of the mods that don't code thier SQL statements with the strTablePrefix or the strMemberTablePrefix. Some of them forget them.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 May 2001 :  22:52:43  Show Profile  Visit dayve's Homepage
quote:

I thought that all you need to do is upload another set of the snitz forum into another folder, edit the config.asp file to point to the same database and then edit the values of strTablePrefix and strMemberTablePrefix to something like FORUM2_. That would be all you need to do. So you would have 2 different Members info and Forum Config in the same database. one will be starting with FORUM_CONFIG, FORUM_TOPICS, FORUM_MEMBERS for example and the other will have FORUM2_CONFIG, FORUM2_TOPICS, FORUM2_MEMBERS and so forth.

You would need to be aware of some of the mods that don't code thier SQL statements with the strTablePrefix or the strMemberTablePrefix. Some of them forget them.





no I don't think so, I want to maintain the same exact user base and topics for both forums. this example would cause you to have double of ALL tables, I am pretty sure of this but by all means someone please correct me... I've successfully gotten on the right path for doing this. 2 forums, same members, same topics, different colors, different admin features... working good, should be done soon and I can document this for everyone because I know it will prove to be useful.

My intentions from the very beginning was to host a forum for someone on my server. He now has 300 members that I want to mirror on my website which is hosted on the same server so we will have www.burningsouls.com/forum with his red scheme and I will have www.nineinchnailz.com/forum with my color scheme. Then members can go to either site and utilize their accounts and see the same topics.

Dayve
Go to Top of Page

JGonier
Starting Member

USA
44 Posts

Posted - 25 May 2001 :  01:38:59  Show Profile  Visit JGonier's Homepage
I am just wondering, so don't mind me if I go off track here.

You want your members to see the same topic? Do you mean the main forum topics or the main forum topics and the posts inside them?

If its just the main forum topics and the users information, why don't you just use two databases, open up the empty one in Access and import the Forum_Members and Forum_Topics tables into it, overwriting the empty ones. This way both forums will have the same topics and users but different color scheme and topic posts.

It kinda seems reduntant to have two forums with everything the same, including the topic posts but just different color schemes. Your users would be seing the same posts in both forums. I don't think this is what you are trying to do, because it would be easier just to make one forum and both sites share it.

If what you are trying to do is what I think, I would just import the needed Tables from the one forum to the other and run two databases. Save you alot of time in re-writing the code....oh, I just thought about something. What I said wouldn't work. Your users would have to the register at both sites thereafter.

Like I said, I was just rambling.

I thought I had an idea, but it was just a brain fart. Sorry.

Keep working on it the way you are.

Sincerely,
JGonier

Edited by - JGonier on 25 May 2001 01:39:47
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 25 May 2001 :  03:29:07  Show Profile  Visit dayve's Homepage
quote:
Your users would have to the register at both sites thereafter


exactly what I don't want to do. I want registered members to be able to go to either forum without having 2 separate accounts. I pretty much have a handle on this. I just needed 1 new table with was a copy of FORUM_CONFIG so I can edit the color scheme. Everything appears to be working the way I want without as much file editing as I thought weeks ago. What I stated above should be able to help anyone else interested in doing this...

Here is what I've accomplished so far...


Burning Souls

Nine Inch Nailz



both forums use the same database for Categories, Topics, Replies, Members but have different SKINS...


Dayve

Edited by - dayve on 25 May 2001 03:40:25
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.59 seconds. Powered By: Snitz Forums 2000 Version 3.4.07