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: MOD Implementation
 Help Adding a New Field
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MikeBernardo
Starting Member

Canada
33 Posts

Posted - 26 July 2001 :  22:54:38  Show Profile  Visit MikeBernardo's Homepage
I need help in adding a new field in the FORUM_CONFIG table. I thought I had done it right but the variable won't show up!

1. I manually added a new text field in the table using Access. I called it C_MICHAEL.
2. I filled the new text field with the word "red" without quotes and closed the database.
3. From FrontPage, I opened the /forum/config.asp file in my favorite text editor (EditPad) and added the following lines at the end of where they belong:

---< snip >---

dim strMichael ' ########## My Mod ##########

---< snip >---

' ########## My Mod ##########
strSql = strSql & ", C_MICHAEL"
' ############################

---< snip >---

' ########## My Mod ##########
Application(strCookieURL & "strMichael") = rsConfig("C_MICHAEL")
' ############################

---< snip >---

' ########## My Mod ##########
strMichael = Application(strCookieURL & "strMichael")
' ############################


4. I saved the file, put FrontPage in the foreground so it could update the file.
5. I modified another file with an <!--#INCLUDE FILE="../forum/config.asp" --> and <!--#INCLUDE FILE="../forum/inc_functions.asp" --> in them. I also added my new field in the following format:

<%=strMichael%>

but it will not show up! The field <%=strDefaultFont%> works (it returns the value "Verdana") eventhough I can find the field where my new field was added. Did I miss a step here? Please advise.


MikeBernardo
Starting Member

Canada
33 Posts

Posted - 26 July 2001 :  23:28:28  Show Profile  Visit MikeBernardo's Homepage
I tried adding the fields using the mod_dbsetup.asp way. Still the same thing.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 27 July 2001 :  06:06:14  Show Profile  Visit HuwR's Homepage
In order to use your new config variable, you will need to reload the application variables.

Just go to admin_home, select main forum config, then just hit the submit button. This should force the app variables to load again.

Go to Top of Page

MikeBernardo
Starting Member

Canada
33 Posts

Posted - 27 July 2001 :  12:47:43  Show Profile  Visit MikeBernardo's Homepage
Weird! I moved the file to the same folder as the forum and changed the include file to this:

<!--#INCLUDE FILE="config.asp" -->

...and it worked!

I just noticed something... is it my INCLUDE line? Does the INCLUDE line allow for relative paths like this:

<!--#INCLUDE FILE="../forum/config.asp" -->

No wonder a lot of the site-wide vars don't work outside of the forum!

Go to Top of Page

MikeBernardo
Starting Member

Canada
33 Posts

Posted - 27 July 2001 :  13:06:52  Show Profile  Visit MikeBernardo's Homepage
Okay, I just found a good site for the INCLUDE FILE syntax. I have been using the wrong slash (/) instead of (\).

But still... some vars are still not working! I don't really have to copy the config.asp and inc_functions.asp to all my directories.... right?

Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 30 July 2001 :  10:51:39  Show Profile
Yeah. You just need one copy of these files in your forum directory.

Share A Square at forumSquare


gauravbhabu

There is only one miracle...That is LIFE!
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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07