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)
 Admin Pages - 1st Option defaults to Off
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 22 February 2005 :  17:04:14  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
I am working on an Admin page for a custom Welcome Message MOD I created (a small message displayed on default.asp to welcome visitors), but I keep having trouble with the first option on the form, which is Show Welcome Message: (yes/no)

The code to write that line is this (admin_welcomemessage):
			"              <tr valign=""middle"">" & vbNewLine & _
			"                <td bgColor=""" & strPopUpTableColor & """ align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Show Welcome Message:</b> </font></td>" & vbNewLine & _
			"                <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
			"                On:<input type=""radio"" class=""radio"" name=""strWMShow"" value=""1""" & chkRadio(strWMShow,0,false) & "> " & vbNewLine & _
			"                Off:<input type=""radio"" class=""radio"" name=""strWMShow"" value=""0""" & chkRadio(strWMShow,0,true) & ">" & vbNewLine & _
			"		 </font></td>" & vbNewLine & _
			"              </tr>" & vbNewLine & _

I can't seem to discover anything wrong with that. I double checked that the value was added to the DB right and that it being loaded right from config.asp .

I have noticed this bug on other Admin pages I created as well. Can anybody shed some light on this?

eXtremeGossip

Edited by - ruirib on 22 February 2005 21:16:28

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 22 February 2005 :  17:40:05  Show Profile
Have you checked what the value of strWMShow is?
Have you checked if strWMShow is even loaded as an application variable.

Go to your admin options --> Forum Variables Information and check to see if the variable is loaded and the correct value is contained in it.

Support Snitz Forums
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 22 February 2005 :  20:38:21  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
My Forum Variables page tells me strWMShow is loaded and set to 0.

Then I suppose the problem is with the admin_welcomemessage page, but I have no clue where to look for; the code I posted up there seems correct to me.

eXtremeGossip
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 22 February 2005 :  23:58:05  Show Profile
Yes your code is correct and it is doing exactly what it is meant to do.

If you want it to default to On, then change the:
On button code to: chkRadio(strWMShow,1,true)
Off button code to: chkRadio(strWMShow,1,false)

Support Snitz Forums
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 23 February 2005 :  00:00:30  Show Profile
Wait, what is the problem you are having exactly?

You try changing the option to On and submit it and it keeps coming back to Off?
Or is it you want it to default to On when the users first install the mod?

Support Snitz Forums
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 23 February 2005 :  00:45:23  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
quote:
Originally posted by Davio

Wait, what is the problem you are having exactly?
Sorry, I should have made myself more clear...
quote:
You try changing the option to On and submit it and it keeps coming back to Off?
That is my problem

eXtremeGossip
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 23 February 2005 :  10:07:54  Show Profile
Post a link to a txt version of the admin page you are working on.

Support Snitz Forums
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 23 February 2005 :  11:20:06  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
Here it is: www.ag-forum.com/admin_welcomemessage.txt

eXtremeGossip
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 23 February 2005 :  13:38:16  Show Profile
Hmm, did you Dim the variables in the config.asp file?
Did you make sure make the application variables are spelt correctly and are loaded?

Support Snitz Forums
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 23 February 2005 :  22:06:44  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
quote:
Originally posted by Davio

Hmm, did you Dim the variables in the config.asp file?
Did you make sure make the application variables are spelt correctly and are loaded?
Yes, yes and yes... These are the corresponding lines in config.asp:

Dim strWMShow, strWMText, strWMBold, strWMUnderline, strWMItalics, strWMTable, strWMTableWidth, strWMSize

strWMShow = Application(strCookieULR & "STRWMSHOW")
strWMText = Application(strCookieURL & "STRWMTEXT")
strWMBold = Application(strCookieURL & "STRWMBOLD")
strWMUnderline = Application(strCookieURL & "STRWMUNDERLINE")
strWMItalics = Application(strCookieURL & "STRWMITALICS")
strWMTable = Application(strCookieURL & "STRWMTABLE")
strWMTableWidth = Application(strCookieURL & "STRWMTABLEWIDTH")
strWMSize = Application(strCookieURL & "STRWMSIZE")

And my Forum Variables pages tells me the variables are all loaded

eXtremeGossip
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 February 2005 :  00:20:34  Show Profile
Is this correct Jorrit?

strWMShow = Application(strCookieULR & "STRWMSHOW")

Support Snitz Forums
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 24 February 2005 :  00:24:50  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
I can NOT believe it

eXtremeGossip
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 February 2005 :  00:41:20  Show Profile
hehe

Now you can check your other admin pages that you say giving trouble and see if they don't have the same problem.

Support Snitz Forums

Edited by - Davio on 24 February 2005 00:41:37
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.42 seconds. Powered By: Snitz Forums 2000 Version 3.4.07