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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Simple config mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jglazer
New Member

52 Posts

Posted - 07 October 2002 :  12:27:42  Show Profile  Visit jglazer's Homepage  Send jglazer an ICQ Message
I have 3 web sites that all share the same forum system. The issue is that each has a different name to the forum area, and different colors. To accomplish this, I went through the code and changed all references to CONFIG_NEW to a variable that I can control from a central location. I have to think that there are others out there that have had to do the same thing. It would be nice if the names of the tables could be held in global variables that can easily be adjusted if, for some reason, you need to direct a particular site to a particular table instead of the normal ones.

Just a suggestion.

Thanks!
Jon

GauravBhabu
Advanced Member

4288 Posts

Posted - 07 October 2002 :  12:59:37  Show Profile
You could use that by using different themes for each forum. What do you mean by changed the variable CONFIG_NEW? That is a table name.
Go to Top of Page

jglazer
New Member

52 Posts

Posted - 08 October 2002 :  11:56:37  Show Profile  Visit jglazer's Homepage  Send jglazer an ICQ Message
Yes, change the name of the CONFIG table in the database so that you could adjust the colors, name of the forum (base name) home page location etc... and still have each site maintain a "pool" of forums and topics that are accessable from every web site. See

www.dawgsfootball.com
www.cometsfootball.com
www.grovecityohio.com

for examples. Each of these have different colors and names but the content of the forums are the same.

Jon
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 08 October 2002 :  13:06:14  Show Profile
So you have a differently named Config table for each forum?
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 08 October 2002 :  15:31:00  Show Profile
Remember the config settings are copied to Application variables, so just changing the table names won't work unless all the forums are in their own web application folder.

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

jglazer
New Member

52 Posts

Posted - 10 October 2002 :  11:24:43  Show Profile  Visit jglazer's Homepage  Send jglazer an ICQ Message
Yes a different named config table for each forum (usually CONFIG_forumname). So that the name of the forum, colors and various other settings can be manipulated on a site-by-site basis. Each web site is it's own fully-qualified site. They do not share application variables. I have been running (with my own mods to change the config table name) for a couple years now. Just upgraded to the latest version (been a little reluctant to do so because of my mods so I was a few versions behind) so I thought I'd post this idea so that mayber, in future releases, I would not have to go through and re-apply my mods.

Get the picture?

Thanks!
Jon
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 10 October 2002 :  13:31:48  Show Profile
You could also do that by adding another column or columns in config table.
C_Variable -Variable Name
C_Value -Default
C_Value_Forum1 -Forum1 Values
C_Value_Forum2 -Forum2 Values

I have not done this though, so cannot tell how complicated or easy it will be.

Go to Top of Page

jglazer
New Member

52 Posts

Posted - 11 October 2002 :  11:10:05  Show Profile  Visit jglazer's Homepage  Send jglazer an ICQ Message
I tried to do this. It's a little complex especially when dealing with newe versions of Snitz. In my solution, I just rename the various config tables back to CONFIG_NEW when it comes time to upgrade. Then run SETUP.ASP each time and and let it upgrade the tables with the various new rows and values.

Jon
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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07