Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Where is strPageSize defined?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Astralis
Senior Member

USA
1218 Posts

Posted - 20 September 2005 :  16:05:51  Show Profile  Send Astralis a Yahoo! Message  Reply with Quote
Where is strPageSize defined within the code?

UPDATE
I found it in config.asp.

I'm going to expand this question. Would a moderator please move this to the "Mods w/o code" forum?

I have a topic.asp hack that is outside the forum directory. One strange thing that is happening is the variables in the config.asp file are not being refreshed when I update them in the admin menu.

For example, when I change the number of posts per topic from 15 to 5, within the forum directory it changes, but outside the forum directory it does not change.

I did a response.write on strCookieURL and saw that outside the forum it is giving me the external file. So, it appears there are two application variables:

1) strCookieURL = /forum/ strPageSize = 5
2) strCookieURL = /site/ strPageSize = 15 <<- This one is not getting updated for obvious reasons. But, I'm not sure how to isolate this.

Any advice?

Moved from Help: General / Current Version (v3.4.xx) - OneWayMule<

Edited by - OneWayMule on 20 September 2005 16:29:25

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 20 September 2005 :  16:27:41  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message  Reply with Quote
The variable is stored in the table CONFIG_NEW in the database, you can change its value via Admin Options -> Feature Configuration.

Like all other configuration variables, strPageSize is loaded from the Application Object in config.asp.

(The configuration variables are stored in the Application Object)
<

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 20 September 2005 :  16:33:04  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message  Reply with Quote
quote:
Originally posted by Astralis

I have a topic.asp hack that is outside the forum directory. One strange thing that is happening is the variables in the config.asp file are not being refreshed when I update them in the admin menu.

For example, when I change the number of posts per topic from 15 to 5, within the forum directory it changes, but outside the forum directory it does not change.

I did a response.write on strCookieURL and saw that outside the forum it is giving me the external file. So, it appears there are two application variables:

1) strCookieURL = /forum/ strPageSize = 5
2) strCookieURL = /site/ strPageSize = 15 <<- This one is not getting updated for obvious reasons. But, I'm not sure how to isolate this.

Any advice?

Have you tried setting cookies to website (Admin Options -> Main Forum Configuration)?<

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 20 September 2005 :  16:39:26  Show Profile  Send Astralis a Yahoo! Message  Reply with Quote
Yes. It's been set to website for a while.

I logged-in via the Universal Login mod within the /site/ directory. That shouldn't affect this, though, right?

Where does strCookieURL get defined?<

Edited by - Astralis on 20 September 2005 16:40:44
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 20 September 2005 :  16:45:15  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Astralis,

I think your problem may be solved by replacing all instances of .path to .domain in the forum code

e.g. change this

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

to this

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

Do you have more than one forum hosted on the same domain?<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 20 September 2005 :  17:39:27  Show Profile  Send Astralis a Yahoo! Message  Reply with Quote
Podge,

If I can avoid changing that, I'd like to because upgrading will be horrendous. I saw this quote from Richard Kinser in the upgrade topic:
quote:

This problem actually happens each time we update the version # of the forum. The value is taken from the Application Variable, but since that page is outside of the forum directory, there are actually 2 sets of Application Variables. For now I have just hard-coded the correct version, it will usually fix itself in a day or two.


It looks like I'm having a similar issue. Besides editing/creating a global asa file, is there another way to refresh the Application variables?<
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 20 September 2005 :  17:43:31  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Restart IIS.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Astralis
Senior Member

USA
1218 Posts

Posted - 20 September 2005 :  18:08:21  Show Profile  Send Astralis a Yahoo! Message  Reply with Quote
Thanks Podge. It will restart this evening. I think that's the best way.

OneWayMule, I only have one forum on the server although it's a shared host.<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07