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 / Classic ASP versions(v3.4.XX)
 Multiple separate forums - Settings crossing over?
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Trippnology
Starting Member

United Kingdom
12 Posts

Posted - 26 January 2006 :  15:53:59  Show Profile
OK, please bear with me if this is an incredibly long explanation of a simple problem. Here goes:

I have setup 2 entirely seperate forums (as in seperate sites altogether) on my host. Site1 was up and running fine when I installed Site2. When I accessed Site2 foe the first time I noticed that it had the same title and colour scheme as Site1 instead of the default. Both sites are the latest version and unmodified.

As soon as I updated the "Main forum config" with the correct title, it reverted to the default colours. On going to Site1, I was shocked to find it now in the default colours and with Site2's title in place. Change the settings at Site1 and Site2 now also shares these settings. The forum posts however, ARE NOT SHARED. Each forum maintains it's own content but shares settings from "Main forum config".

When I access Site2 via beta.domain1.com/site2 this does not happen.

The sites are arranged as follows:


Webroot         <- beta.domain1.com points here
   |
   |Site1       <- site1.domain2.com points here
    |
    |db         <- Site1 access database in here
   |
   |Site2       <- site2.domain1.com points here
    |
    |db2        <- Site2 access database in here

I've also tried moving the Site2 forum into webroot/site2/subfolder and pointing the domain there but the same thing happens.

It should be possible to have 2 installs on one host right?

I'm wondering if it's a server setting or some code I can change to fix this.

Many thanks in advance for your help. If anything is unclear, I will be watching this thread very closely so ask away.

EDIT: Obviously, these aren't the real domain names. The domains in use are totally different from each other.

Edited by - Trippnology on 26 January 2006 17:34:54

AnonJr
Moderator

United States
5768 Posts

Posted - 26 January 2006 :  17:16:24  Show Profile  Visit AnonJr's Homepage
This is not a new problem. I've had similar issues. I kinda worked around it by not putting all my forums in folders called "forum". (one is in "../forum/", another is in "../community/", and the third is in "../test/")

I'm sure there is a more elegant way to fix it, I'm just not sure what it is. I've got to run to a meeting or three and I'll try to clarify more when I get back if no one has said any more about it.
Go to Top of Page

Trippnology
Starting Member

United Kingdom
12 Posts

Posted - 26 January 2006 :  17:32:45  Show Profile
Yeah I figured this may have been a problem so I moved Site2 into a subfolder but no joy.
Just to clarify (?) I'm currently setup like this:

Site 1:            ../Site1/default.asp
Access db:         ../Site1/db/site1forum.mdb
Domain for site:   http://site1.domain2.com

Site 2:            ../Site2/forum/default.asp
Access db:         ../Site2/forum/anotherdb/site2.mdb
Domain for site:   http://site2.domain1.com

I also have beta.domain1.com which points to the webroot. When I access the site by going to beta/domain1.com/site1 (or beta.domain1.com/site2/forum for that matter) everything is how it should be.

Could this be a problem with the sub-domains?

Edited by - Trippnology on 26 January 2006 17:36:08
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 26 January 2006 :  18:19:14  Show Profile  Send ruirib a Yahoo! Message
Can you check the forum variables in Admin Options, in each of the forums? Can you post 3 or 4 of each forum here, so that I can see their names?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

flashriver
Starting Member

USA
1 Posts

Posted - 26 January 2006 :  18:58:04  Show Profile  Visit flashriver's Homepage  Send flashriver a Yahoo! Message
OK, this is a simular in nature to a problem I had in the past.I could not update a Poll Mod database. I kept getting and error stating the I needed an update qurey or something simular. Others in the formum say that this is due to not have the Internet User permission set to be able to write to the database... This may be true, but here is another reason why you can not update the database.
If you created more than one forum creating the first, and then you copied that forum to a new local location on a machine naming it something different, the database for the first forum is also the same for the second forum because it is actually pointing to the first forums database.
The Fix is, sign on into the second forum as the Admin of the forum, In the list of options to configure the forum, click on "Other Configuration Options and Features:" and click on "Server Information" and scroll down to the section "Database Connection Properties." Check the physical location of the database, it may be pointing to the wrong database. Be sure the forum you're in is point to the correct database because each time you change something in the forum, it is updating the other forum also with the same data. Good luck...
Go to the config.asp and correct the location of your database.
::.Flash.:: Below is a forum where I am testing the New Poll Mod...
Take me to Disney Kids ® e~Forum

Flash River
http://www.okcityusa.com

Edited by - flashriver on 26 January 2006 19:56:57
Go to Top of Page

Trippnology
Starting Member

United Kingdom
12 Posts

Posted - 27 January 2006 :  07:13:34  Show Profile
OK, I've double checked that the db folder has write access.

The actual db seems to be working ok. As I said, all posts etc remain seperate.

As for the forum variables, strangeness:

When access via site2.domain1.com STRVERSION through to ConfigLoaded are the same as Site1 then I get the same list under that but listed as Site1/forum/STRVERSION and so on with the correct info for this site.

When I access the site through beta.domain1.com/site2/forum, the variables are all listed correctly.

I've also checked "Server variables" and it shows the correct db in use. Are the site name etc not stored in the db?

I have noticed that if I do a "Check install" from admin options, the site reverts to it's true colours etc. but Site1 now also uses these settings. Same thing happens if you "Check install" from Site1.

I've also tried doing an "Upgrade database" on both sites with no effect.

Thanks for all your replies.

Edited by - Trippnology on 27 January 2006 07:14:40
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 January 2006 :  11:44:12  Show Profile  Send ruirib a Yahoo! Message
I would probably suggest that you change the value of strCookieURL, in config.asp, for one of the forums and then run setup.asp at each forum. Maybe that will allow each forum to "exist on its own".


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Trippnology
Starting Member

United Kingdom
12 Posts

Posted - 27 January 2006 :  11:50:55  Show Profile
Just tried what I think you suggested, but not exactly. I changed:

strUniqueID = "Snitz00"

into:

strUniqueID = "Other00"


I then deleted all cookies and ran setup.asp on each site. Still these settings cross over.

Did i in fact have to change

strCookieURL = Left(Request.ServerVariables("Path_Info"),

to something else? If so, what?

Can someone also please clarify if the settings for forum title, url, images folder etc are stored in the db?

Edited by - Trippnology on 27 January 2006 12:06:07
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 27 January 2006 :  12:21:31  Show Profile  Visit AnonJr's Homepage
I've had this problem with three sites, one at http://warsongrecords.waywardsondevelopers.com (the semi-live site) and the form is located in http://warsongrecords.waywardsondevelopers.com/forum/

The testing version of the site above is at http://testing.waywardsondevelopers.com/ and the forum is now in the same directory as the site. (for the record, I had originally had to put it in http://testing.waywardsondevelopers.com/msgbord/)

The third site is http://www.hopefellowship-nc.org and the forum is located at http://www.hopefellowship-nc.org/community/

I had problems with font/color/logo settings crossing over until I put each of the forums in a differently named sub-folder. I'm not entirely certain why that is... I'd tried playing with strCookieURL and several other things, but this is the only thing that really worked.

Oh, and before I forget, its a good idea to have strUniqueID different for all your forums.

HTH.
Go to Top of Page

Trippnology
Starting Member

United Kingdom
12 Posts

Posted - 27 January 2006 :  13:53:31  Show Profile
Ok this is getting really baffling now. If only i knew where these few settings were stored.

Currently setup as follows:

Webroot
   |
   |UniqueFolderName
      |UniqueSubfolder
         |UniqueDBfolder
   |
   |UniqueFolder2
      |UniqueSubfolder2
         |UniqueDBfolder2

Both sites have something different for strUniqueID.

I have cleared the cache and cookies and viewed this on multiple machines.

Why when I view either site by going to domain-that-points-to-root.com/pathto/forum are these settings unaffected?

Edited by - Trippnology on 27 January 2006 13:58:50
Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 27 January 2006 :  14:43:28  Show Profile
If the root of each domain is pointing directly at the forum directory and they both share the same application space (which is what I gather), no amount of directroy renaming will help.

In config.asp just underneath the
strUniqueID = "Snitz00"
line add
strCookieURL = strUniqueID
That should solve the problem as long as you have unique strUniqueID settings.

KawiForums.com



Edited by - -gary on 27 January 2006 14:45:10
Go to Top of Page

Trippnology
Starting Member

United Kingdom
12 Posts

Posted - 27 January 2006 :  15:40:36  Show Profile
You are exactly right Gary, that fixed the colour issue. However now once I login, I get login successful page then when directed to forum, I'm logged out.

Any ideas?

I have put your code like this:

Dim strShowPrinterFriendly, strShowTimer, strTimerPhrase, strShowFormatButtons, strShowSmiliesTable, strShowQuickReply
Dim SubCount, MySubCount

strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/"))
strUniqueID = "Site1ID"
strCookieURL = strUniqueID
If Application(strCookieURL & "ConfigLoaded")= "" Or IsNull(Application(strCookieURL & "ConfigLoaded")) Or blnSetup="Y" Then

Is that right? is it ok to have 2 strCookieURL = statements? I don't replace the first one?

Edited by - Trippnology on 27 January 2006 15:42:03
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 27 January 2006 :  19:10:08  Show Profile  Visit AnonJr's Homepage
quote:
Originally posted by -gary

If the root of each domain is pointing directly at the forum directory and they both share the same application space (which is what I gather), no amount of directroy renaming will help.

In config.asp just underneath the
strUniqueID = "Snitz00"
line add
strCookieURL = strUniqueID
That should solve the problem as long as you have unique strUniqueID settings.



I was wondering about the application space. For the record, in the example noted above, only one of the URLs points directly to the forum.

I'll have to play with that last bit...
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 January 2006 :  19:49:04  Show Profile  Send ruirib a Yahoo! Message
Trippnology, try deleting your cookies, close all browser windows and then try to login again.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Trippnology
Starting Member

United Kingdom
12 Posts

Posted - 27 January 2006 :  20:35:08  Show Profile
Yep, already tried that ruirib. No joy.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 January 2006 :  03:18:43  Show Profile  Send ruirib a Yahoo! Message
I think I know what is happening. strCookieURL is used to set the cookies path, so it can't be changed as we suggested. Of course, just change the DoCookies function in inc_func_common.asp, so that this line is (hard) coded to have the correct path:

Response.Cookies(strUniqueID & "User").Path = strCookieURL

Probably change it to have the value it have before the last change, here it won't be a problem.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.48 seconds. Powered By: Snitz Forums 2000 Version 3.4.07