Author |
Topic |
|
Jorrit787
Average Member
Netherlands
681 Posts |
Posted - 22 February 2005 : 17:04:14
|
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
|
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
|
|
|
Jorrit787
Average Member
Netherlands
681 Posts |
Posted - 22 February 2005 : 20:38:21
|
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 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 22 February 2005 : 23:58:05
|
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
|
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 23 February 2005 : 00:00:30
|
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
|
|
|
Jorrit787
Average Member
Netherlands
681 Posts |
Posted - 23 February 2005 : 00:45:23
|
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 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 23 February 2005 : 10:07:54
|
Post a link to a txt version of the admin page you are working on. |
Support Snitz Forums
|
|
|
Jorrit787
Average Member
Netherlands
681 Posts |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 23 February 2005 : 13:38:16
|
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
|
|
|
Jorrit787
Average Member
Netherlands
681 Posts |
Posted - 23 February 2005 : 22:06:44
|
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 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 24 February 2005 : 00:20:34
|
Is this correct Jorrit?
strWMShow = Application(strCookieULR & "STRWMSHOW") |
Support Snitz Forums
|
|
|
Jorrit787
Average Member
Netherlands
681 Posts |
Posted - 24 February 2005 : 00:24:50
|
I can NOT believe it |
eXtremeGossip |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 24 February 2005 : 00:41:20
|
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 |
|
|
|
Topic |
|