Author |
Topic |
|
Loyola05
Starting Member
24 Posts |
Posted - 23 August 2007 : 09:41:12
|
I had originally started this post: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=65196
and I'm hoping I found an adequate solution.
Basically, I modified the code in setup.asp and saved a new file: always_setup.asp - you can download a ZIP containing the file here > http://www.whyilovechicago.com/forum/always_setup.zip
I then included this file on: - default.asp - forum.asp - topic.asp
and had to remove references to "config.asp" and "inc_sha256.asp" which are included in my "always_setup.asp" (and were also included in the original setup.asp file)
While this doesn't autmatically run the "setup" on every page, it at least hits the most frequently used pages of the forum. I was hoping someone could look to see if this works the way I think it does... if so, then I would add to the rest of the forum pages.
Is my headache with GoDaddy finally at an end? |
Art http://www.whyilovechicago.com |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
Loyola05
Starting Member
24 Posts |
Posted - 23 August 2007 : 13:33:08
|
In the previous post I started (look above for link), I mention that the server is constantly being reset by GoDaddy. I have no explanation as to why, but every time they do it some of my variables are wiped clean. This severely effects the layout of my forum... thus the drastic solution on my part.
Also in my previous post, I mention that I had to hard-code some of the application variables... I'd rather be able to change them dynamically in the database instead of hard-coding every one. I think this is the best solution I could come up with. |
Art http://www.whyilovechicago.com |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
Loyola05
Starting Member
24 Posts |
Posted - 23 August 2007 : 14:24:23
|
Oh, gotcha... yea, I don't know if I fully understand what happens in the code I selected from setup.asp, but it seems to do the trick.
Think it's worth placing on my other pages, be it overkill or not? I'm just concerned that it works, not necessarily that it's the most efficient. |
Art http://www.whyilovechicago.com |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 24 August 2007 : 04:57:54
|
Simplest way is just to hard code all the application variables in config.asp as, I believe, we suggested before.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
Edited by - Shaggy on 24 August 2007 04:58:15 |
|
|
|
Topic |
|