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)
 Odd server error... fixed?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Loyola05
Starting Member

24 Posts

Posted - 23 August 2007 :  09:41:12  Show Profile  Visit Loyola05's Homepage
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

Posted - 23 August 2007 :  10:22:06  Show Profile  Send ruirib a Yahoo! Message
It definitely looks like overkill to me. Why do into such a "complex" alternative when all you had to do was setting application variables?


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

Loyola05
Starting Member

24 Posts

Posted - 23 August 2007 :  13:33:08  Show Profile  Visit Loyola05's Homepage
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
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 August 2007 :  13:57:21  Show Profile  Send ruirib a Yahoo! Message
What I meant was that your code does much more than just reload the value for the application variables.


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

Loyola05
Starting Member

24 Posts

Posted - 23 August 2007 :  14:24:23  Show Profile  Visit Loyola05's Homepage
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
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 August 2007 :  15:13:44  Show Profile  Send ruirib a Yahoo! Message
Your code has quite a few database calls, which are avoidable, IMO. If it works for you, go ahead and include it. I still think it can be made simpler.


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

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 24 August 2007 :  04:57:54  Show Profile
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
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.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07