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
 need help recoding parts of the events mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jburris
Starting Member

40 Posts

Posted - 31 July 2001 :  07:28:50  Show Profile  Visit jburris's Homepage  Send jburris an ICQ Message  Send jburris a Yahoo! Message
I'm working my way through recoding some parts of the events mod to make them use forum values instead of hardcoded color codes (like the white background in the day view event table).

I can't seem to fix this one tho.

If Rs("Start_Date") <> Rs("End_Date") Then
Response.Write "<FONT FACE='Verdana, Arial' SIZE=1 color='gray' >Starts: " & strToDate(Rs("Start_Date")) & vbCrLf
Response.Write "<BR>Ends: " & strToDate(Rs("End_Date")) & vbCrLf
Response.Write "</FONT><P>"
else

anyone have any ideas on how to replace the gray color code above with a forum value like "strlinkcolor"?


HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 31 July 2001 :  08:38:33  Show Profile  Visit HuwR's Homepage
I would change it to strDefaultFontColor

Go to Top of Page

jburris
Starting Member

40 Posts

Posted - 31 July 2001 :  10:09:12  Show Profile  Visit jburris's Homepage  Send jburris an ICQ Message  Send jburris a Yahoo! Message
hmm no let me explain my problem more

<a HREF="<%= sScript %>?mode=add&date=<%if myDate= "" then Response.Write(date()) else Response.Write(myDate)%>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strDefaultFontColor%>">add an event for this day</font></a>

the above code works but when I try using it like this...

Response.Write "<FONT FACE='Verdana, Arial' SIZE=1 color='<% =strDefaultFontColor%> ' >Starts: " & strToDate(Rs("Start_Date")) & vbCrLf

I get this error msg:

Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/content/events_functions.asp, line 841

Response.Write "<FONT FACE='Verdana, Arial' SIZE=1 color='<% =strDefaultFontColor
---------------------------------------------------------------------------------^

I've tried a few different ways to add this variable in with no success any help accepted


Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 31 July 2001 :  13:09:57  Show Profile
The tag is already open. so error
Not like this:

Response.Write "<FONT FACE='Verdana, Arial' SIZE=1 color='<% =strDefaultFontColor%> ' >




Write it Like this:

 
Response.write "<FONT FACE=""" & strDefaultFontFace & """ & SIZE=""1"" color=""" & strDefaultFontColor & """>Starts: " & strToDate(Rs("Start_Date")) & vbCrLf



I missed one &
Share A Square at forumSquare


gauravbhabu

There is only one miracle...That is LIFE!

Edited by - gauravbhabu on 31 July 2001 13:13:24

Edited by - gauravbhabu on 31 July 2001 13:27:44

Edited by - gauravbhabu on 31 July 2001 13:28:18
Go to Top of Page

jburris
Starting Member

40 Posts

Posted - 31 July 2001 :  13:19:03  Show Profile  Visit jburris's Homepage  Send jburris an ICQ Message  Send jburris a Yahoo! Message
when i use that i get this error msg..

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/content/events_functions.asp, line 841

Response.write "<FONT FACE=""" & strDefaultFontFace """ & SIZE=""1"" color=""" & strDefaultFontColor & """>Starts: " & strToDate(Rs("Start_Date")) & vbCrLf
----------------------------------------------------^


Go to Top of Page

jburris
Starting Member

40 Posts

Posted - 31 July 2001 :  13:21:22  Show Profile  Visit jburris's Homepage  Send jburris an ICQ Message  Send jburris a Yahoo! Message
nm ya left out a & but I fixed it thx alot GauravBhabu

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 1.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07