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)
 Application Variables Not Loading
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

alex042
Average Member

USA
631 Posts

Posted - 13 May 2002 :  10:48:36  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
I'm having a problem with some, but not all, of my application variables loading. The only way so far I've been able to get the variables to load is through hardcoding numbers into the config.asp as shown below. In this post, I'm using the poll mod as an example.

Config.asp

'######### Poll Mod ###############
dim strAdminPolls, strUserPolls, strActivePoll, strWhoVotes
'##################################

'######### Poll Mod ###############
strAdminPolls = "1"
'Application(strCookieURL & "strAdminPolls")
strUserPolls = Application(strCookieURL & "strUserPolls")
strActivePoll = "57"
'Application(strCookieURL & "strActivePoll")
strWhoVotes = Application(strCookieURL & "strWhoVotes")

'##################################


This is what I'm getting in Admin Forum Variables Info:

/forums/STRADMINPOLLS 1
/forums/STRUSERPOLLS 1
/forums/STRACTIVEPOLL 57
/forums/STRWHOVOTES everyone

/forums/polls/STRADMINPOLLS 0
/forums/polls/STRUSERPOLLS 1
/forums/polls/STRACTIVEPOLL 0
/forums/polls/STRWHOVOTES everyone

When I uncomment the hard coded variables, my active poll doesn't set within the admin poll panel and I get a missing operator error when selecting a poll with a missing topic id.

A check within the Access database reveals that the values are there.

ID C_VARIABLE C_VALUE
119 strActivePoll 57
117 strAdminPolls 1
118 strUserPolls 1
120 strWhoVotes everyone

This happens with not only this mod, but some others as well so it doesn't seem specific to this particular mod. Within this mod in particular though, half of the variables seem to load ok, but the other half doesn't. I was also having problems pulling a FORUM_ID and had to eliminate it from the SELECT. I've modified several mods to integrate them into my website the way I want. Maybe I'm missing something. How and when exactly are application variables set? And how should they be pulled? Are they directory specific?






Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 13 May 2002 :  11:48:39  Show Profile  Visit Gremlin's Homepage
You could try setting your Cookies in the admin to Website instead of Forum. Changing this value though will force all of your users to log on again next visit.

The way it currently works if set to forum requires all the files to remain in the /forum folder otherwise some weird things will happen. Have you perhaps moved some files into other directories or subdirectories of the /forum folder ??

www.daoc-halo.com
Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 13 May 2002 :  13:14:18  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
You're right, I DO have several mods and other files outside of the forums directory. Some are in a subdirectory and others are on a parallel directory as I'm working on a portal and not just a forum.

I've changed the cookies from forum to website, but it didn't seem to work. I've deleted the cookies.txt file on my computer and some other cookies, I've relogged in and I get the same thing. Maybe I missed a cookie or something else. Surely this isn't going to require me to have all of my files in the forums directory to function properly.




Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 13 May 2002 :  13:56:11  Show Profile
You're going to have a lot of problems with using mods outside of your forum directory. I have helped 2 years setup the poll mod to work outside of the forum directory in the 2 and half years I have been here, and each time it was a pain to get it working.

So if the poll mod is hard to get working outside the forum folder, what about the other mods? All I say is good luck.

There are various bits of code that you need to change with the poll mod for it to read the application variables for your forum. Here's the topic on our most recent discussion http://forum.snitz.com/forum/topic.asp?TOPIC_ID=27059

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 13 May 2002 :  21:14:37  Show Profile  Visit Gremlin's Homepage
Well heres what I personally did to get around all those annoying problems with cookies and directories.

In config.asp I changed strCookieURL to = "/" Since doing that I've been able to shift everything aronud into different directories without experiencing any further problems.

www.daoc-halo.com

Edited by - Gremlin on 13 May 2002 21:15:08
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 13 May 2002 :  21:58:40  Show Profile
quote:
In config.asp I changed strCookieURL to = "/" Since doing that I've been able to shift everything aronud into different directories without experiencing any further problems.
hmm. Where were you when I was helping these users out?

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 13 May 2002 :  23:20:30  Show Profile  Visit Gremlin's Homepage
Sleeping probably

www.daoc-halo.com
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.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07