Author |
Topic  |
Trippnology
Starting Member
United Kingdom
12 Posts |
Posted - 26 January 2006 : 15:53:59
|
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
|
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. |
 |
|
Trippnology
Starting Member
United Kingdom
12 Posts |
Posted - 26 January 2006 : 17:32:45
|
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 |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
flashriver
Starting Member
USA
1 Posts |
Posted - 26 January 2006 : 18:58:04
|
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 |
 |
|
Trippnology
Starting Member
United Kingdom
12 Posts |
Posted - 27 January 2006 : 07:13:34
|
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 |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 27 January 2006 : 11:44:12
|
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 |
 |
|
Trippnology
Starting Member
United Kingdom
12 Posts |
Posted - 27 January 2006 : 11:50:55
|
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 |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
|
Trippnology
Starting Member
United Kingdom
12 Posts |
Posted - 27 January 2006 : 13:53:31
|
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 |
 |
|
-gary
Development Team Member
 
406 Posts |
Posted - 27 January 2006 : 14:43:28
|
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 |
 |
|
Trippnology
Starting Member
United Kingdom
12 Posts |
Posted - 27 January 2006 : 15:40:36
|
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 |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 27 January 2006 : 19:10:08
|
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... |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
Trippnology
Starting Member
United Kingdom
12 Posts |
Posted - 27 January 2006 : 20:35:08
|
Yep, already tried that ruirib. No joy. |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 28 January 2006 : 03:18:43
|
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 |
 |
|
Topic  |
|