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
 Calendar Mod & Poll - post.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Beano_ie
Junior Member

Ireland
328 Posts

Posted - 18 January 2005 :  12:58:35  Show Profile  Visit Beano_ie's Homepage  Send Beano_ie an ICQ Message
Small detail required. I have Poll Mod installed and Calendar Mod installed. One of the If statements in the post.asp shows as follows:


	Response.Write	"              <tr>" & vbNewLine
	Response.Write	"                <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>" & vbNewLine
	if strRqMethod = "Topic" or strRqMethod = "EditTopic" then
		if Request.QueryString("poll") = "1" then
			Response.Write "Poll Question:"
		else if Request.QueryString("event")="1" or isevent="1" then
			Response.Write	"Event:"
		else
			Response.Write "Message:"
		end if
	else    '## line 958 ##
		Response.Write "Message:"
	end if
	Response.Write "</b><br />" & vbNewLine


The above code is giving me an error message:

Expected 'End' 

/forum/post.asp, line 958 

else


I can't see what the problem is because all statements are opened and closed properly.


if strRqMethod = "Topic" or strRqMethod = "EditTopic" then
		if Request.QueryString("poll") = "1" then
			Response.Write "Poll Question:"
		else if Request.QueryString("event")="1" or isevent="1" then
			Response.Write	"Event:"
		else
			Response.Write "Message:"
		end if
	else
		Response.Write "Message:"
	end if



Any help is greatly appreciated.

Ty

Steve
Drogheda, Ireland @ www.droghedatown.com

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 18 January 2005 :  13:11:58  Show Profile
When I get this error it's usually caused by a stray &_ further up in the file.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 January 2005 :  13:36:46  Show Profile
You can also post a link to a txt version of your file and I'll quickly find the problem for you with my trusty differencial program (Beyond Compare).

Support Snitz Forums
Go to Top of Page

Beano_ie
Junior Member

Ireland
328 Posts

Posted - 18 January 2005 :  14:04:11  Show Profile  Visit Beano_ie's Homepage  Send Beano_ie an ICQ Message
A chairde , thanks for your help, you can find the full text of post.asp here.

Steve
Drogheda, Ireland @ www.droghedatown.com
Go to Top of Page

DJGray
New Member

USA
68 Posts

Posted - 18 January 2005 :  14:04:26  Show Profile  Visit DJGray's Homepage
Ummmm, I may be way off base here because I'm fairly new to VBScript itself, but in some of the other languages I work with the proper syntax is

elseif

rather than

else if

The space between the else and if cause the compiler to believe the if loop ends after the first "else"

Worth a try, and if it works, that is an easy fix!
Go to Top of Page

Beano_ie
Junior Member

Ireland
328 Posts

Posted - 18 January 2005 :  14:15:08  Show Profile  Visit Beano_ie's Homepage  Send Beano_ie an ICQ Message
Not way off at all, in fact its perfect DJGray, page works perfect now, thanks

Steve
Drogheda, Ireland @ www.droghedatown.com
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 January 2005 :  14:39:21  Show Profile
Darn it DJGray. And here I was ready to whip out my trusty differencial program to help Beano.

Support Snitz Forums
Go to Top of Page

DJGray
New Member

USA
68 Posts

Posted - 18 January 2005 :  15:12:01  Show Profile  Visit DJGray's Homepage
LOL!! I think you should whip out the program anyway!

BTW, I have installed a few of your mods over the last week as well. Nice work!!
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.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07