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/Code)
 Mod of a MOD : TV Program Guide
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

laser
Advanced Member

Australia
3859 Posts

Posted - 05 January 2003 :  22:27:16  Show Profile
I have had a few requests for this lately so here it is, I'm pretty sure I've covered everything here, but let me know if you need more :

Firstly, I had been wanting a simple to use TV Guide on the site for while. It didn't need to be Snitz based, but had to be easy to use and alter. When red1 released his beta Events Calendar MOD I could see that this was near perfect for what I needed and a little bit of tweaking would have it working fine.

THe biggest change was to post.asp, I won't quote line numbers because almost everyone will have different ones, but look for the INCLUDE statement and you'll know where I am (the red code should be added) :


<!--#INCLUDE FILE="inc_smilies.asp" -->
<%
		end if
	end if
	Response.Write	"                      </font></td>" & vbNewLine & _
			"                    </tr>" & vbNewLine & _
			"                  </table>" & vbNewLine & _
			"                </font></td>" & vbNewLine & _
			"                <td bgColor=""" & strPopUpTableColor & """><textarea cols=""" & intCols & """ name=""Message"" rows=""" & intRows & """ wrap=""VIRTUAL"" onselect=""storeCaret(this);"" onclick=""storeCaret(this);"" onkeyup=""storeCaret(this);"" onchange=""storeCaret(this);"">" & Trim(CleanCode(TxtMsg))
	If Trim(CleanCode(TxtMsg)) = "" and (Request.QueryString("event")=1 or isevent=1) then 
		Response.Write "Channel : " & vbNewLine & _
			"Time : xx:xx AM - xx:xx PM AEST" & vbNewLine & _
			"Repeat : Y/N" & vbNewLine & _
			"Location : " & vbNewLine & _
			"Description : "& vbNewLine & vbNewLine & vbNewLine & _
			"All information is correct at time of posting, and is kept as updated as possible"
	end if	Response.Write "</textarea><br /></td>" & vbNewLine & _
			"              </tr>" & vbNewLine
end if
select case strRqMethod


then in cal_constants.asp, lines 19-62 should be :


'### Text Strings for Internationalization ###
Const strCalEventsCalendar = "Motor Racing TV program guide"
Const strCalDaily          = "Daily"
Const strCalWeekly         = "Weekly"
Const strCalMonthly        = "Monthly"
Const strCalYearly         = "Yearly"
Const strCalEventsList     = "Events List"
Const strCalTodayIs        = "Today is "
Const strCalEventsFor      = "TV Program for "
Const strCalPostedBy       = "Posted by "
Const strCalAddEvent       = "Add a TV Program : "
Const strCalGo             = "Go"
Const strCalUpcoming       = "Upcoming TV programs"
Const strCalRecent         = "Recent TV programs "
Const strCalNewEvent       = "New TV Program"
Const strCalNoUpcoming     = "There are no Upcoming TV Program. "
Const strCalNoRecent       = "There are no Recent TV Programs. "
Const strCalNoEvents       = "There are no TV programs for this date. "
Const strCalEvent          = "TV program : "
Const strCalEventTitle     = "Program Title: "
Const strCalEventDate      = "Program Date"
Const strCalEventDetails   = "Program Details: "
Const strCalPastEvents     = "Past Programs"
Const strCalFutureEvents   = "Future Programs"
Const strCalDisplay        = "Display: "
Const strCalNotAllowed     = "You are not allowed to post a TV program. "
Const strCalInvalidDate    = "Invalid Date. "
Const strCalNoFutureEvents = "There are no future TV programs. "
Const strCalNoPastEvents   = "There are no past TV programs"
Const strCalDate           = "Date"
Const strCalTitle          = "Title"
Const strCalJumptoMonth    = "Jump to Month:"
Const strCalJumptoYear     = "Jump to Year:"
Const strCalJumpToPage     = "Jump to Page:"
Const strCalPrevWeek       = "Previous Week"
Const strCalNextWeek       = "Next Week"
Const strCalPrevMonth      = "Previous Month"
Const strCalNextMonth      = "Next Month"
Const strCalPrevYear       = "Previous Year"
Const strCalNextYear       = "Next Year"
Const strCalReply          = "Reply to Topic"
Const strCalLockTopic      = "Lock Topic"
Const strCalUnLockTopic    = "UnLock Topic"
Const strCalDelete         = "Delete Topic"


I'm pretty sure that was it. I did make one other change to the date display because us Aussies prefer d/m/y rather than m/d/y.

Reply here if you need help, or I've missed anything.

Steve D.
Average Member

USA
640 Posts

Posted - 05 January 2003 :  23:34:54  Show Profile  Visit Steve D.'s Homepage  Send Steve D. a Yahoo! Message
So Channel, Time, Location & Description are not actual values stored in the DB, it's just pre-formatted for the user to fill out?

Was there any modifications to Topics.asp? It looks like there is a table with two columns, one for the info, one for the monthly calendar.

Thanks for posting the info and replying to my email.

Swing Dancing Video Clips - It's All Swing! Forum
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 06 January 2003 :  00:09:07  Show Profile
quote:

Was there any modifications to Topics.asp?


Sorry, you're right ....

From way down the end of topic.asp :

	' End of Code added for Full Moderation
	Response.Write	"                      <hr noshade size=""" & strFooterFontSize & """></td>" & vbNewLine & _
			"                    </tr>" & vbNewLine & _
			"                    <tr>" & vbNewLine & _
			"                      <td valign=""top"" height=""100%""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><span class=""spnMessageText"" id=""msg"">"

	If isevent = 1 then 
		Response.Write "<table width='100%'><tr><td valign=top><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><span class=""spnMessageText"" id=""msg"">"
	end if

	if Request.QueryString("SearchTerms") <> "" then
		Response.Write	SearchHiLite(formatStr(Topic_Message))
	else
		Response.Write	formatStr(Topic_Message)
	end if

	If isevent = 1 then 
		Response.Write "</td><td>"
		DrawMonth dateHolder, 1, 1, 1
		Response.Write "</td></tr></table>"
	end if



That should help
Go to Top of Page

Steve D.
Average Member

USA
640 Posts

Posted - 06 January 2003 :  00:53:28  Show Profile  Visit Steve D.'s Homepage  Send Steve D. a Yahoo! Message
Awesome, I can't wait to play with this tomorrow! Thanks again.

Swing Dancing Video Clips - It's All Swing! Forum
Go to Top of Page

sy
Average Member

United Kingdom
638 Posts

Posted - 07 January 2003 :  08:40:02  Show Profile  Visit sy's Homepage  Send sy a Yahoo! Message
Thats a great idea laser, looks great over at your site.

Sy

The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails

Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 07 January 2003 :  09:45:14  Show Profile
Thanks mate, when I get time I have to add the same thing again - to act as the REAL Events Calendar ... that will take longer though
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.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07