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)
 Signup Mod For New Events Calendar BETA (11/9/03)
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 10

RichardE
Starting Member

United Kingdom
20 Posts

Posted - 30 November 2003 :  14:23:27  Show Profile
Mike

Thanks for the fix - it all works fine now.

Really good MOD.

Richard
Go to Top of Page

JMT
Starting Member

17 Posts

Posted - 09 December 2003 :  10:40:11  Show Profile
Yes, only after I installed the signup mod. Not sure why still, so I gave up until I saw some more folks using it with a mySQL back end. Do you use mySQL on IIS/Win2K?
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 09 December 2003 :  20:22:23  Show Profile  Visit n8pbm's Homepage
JMT - The signup mod does not modify the cal_post_info2.asp. I would need to see the lines before Line 66. If you want to send me the file i'll take a look at it (If you still have it). My email is in the readme file or send a email through my profile here.

I am running Access currently on Win2K/IIS but others have installed this mod on mySQL.

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 28 December 2003 :  00:31:37  Show Profile  Send StephenD a Yahoo! Message
I made a modification to how the signup link appears in topic.asp. See pic below:


The buttons open both pages in the same window. To do this find this section in topic.asp @line 1250:
'##### Signup Mod ######
	if is_event = "1" and strList = "1" then
		Response.Write	"                   <tr>" & vbNewLine & _
				" <td valign=""bottom""><hr noshade size=""" & strFooterFontSize & """><font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><span class=""spnMessageText"">To sign up for this event or to see who it attending click below:<br><a href=""" & strForumURL & "eventlist.asp?Event=" & TopicID & "&B1=Submit"">" & strForumURL & "eventlist.asp?Event=" & TopicID & "&B1=Submit</a> </span></font></td>" & vbNewLine & _ 
				"                    </tr>" & vbNewLine
	end if
if CanShowSignature = 1 and Topic_Sig = 1 and Topic_MemberSig <> "" then
		Response.Write	"                    <tr>" & vbNewLine & _
				"                      <td valign=""bottom""><hr noshade size=""" & strFooterFontSize & """><font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><span class=""spnMessageText"">" & formatStr(Topic_MemberSig) & "</span></font></td>" & vbNewLine & _
				"                    </tr>" & vbNewLine
	end if


Replace the code in red with the following:
if is_event = "1" and strList = "1" then
		Response.Write	"                   <tr>" & vbNewLine & _
				" <td valign=""bottom""><hr noshade size=""" & """>" & vbNewLine & _ 
			        "<input type=""button"" value=""View Attendees"" onClick=""eventattendees(this)"">" & vbNewLine & _
			        " " & vbNewline & _
			        "<input type=""button"" value=""Signup Now!"" onClick=""eventsignup(this)"">" & vbNewLine & _
			        " </td></tr>" & vbNewLine
	end if	


In inc_header.asp, add the following javascript functions:
"function eventsignup(url,w,h) { var MainWindow = window.open('eventlist.asp?SignUp=" & Topic_ID & "&B1=Submit""','_self','width='+w+',height='+h+',scrollbars=yes');" & vbNewLine & _
		"}" & vbNewLine & _
		"function eventattendees(url,w,h) { var MainWindow = window.open('eventlist.asp?Event=" & Topic_ID & "&B1=Submit""','_self','width='+w+',height='+h+',scrollbars=yes');" & vbNewLine & _
		"}" & vbNewLine & _


That should be it.

Edited by - StephenD on 03 March 2004 20:19:01
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 30 December 2003 :  21:32:23  Show Profile  Visit n8pbm's Homepage
Thanks StephenD, I may add that to the next release if you do not mind. However not sure when the next release will be.

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

Gargoyle
Junior Member

USA
280 Posts

Posted - 01 January 2004 :  15:29:36  Show Profile  Visit Gargoyle's Homepage
Very cool! Thanks for updating the code n8pbm!
And thanks for sharing StephenD !

Here is a link to my Snitz powered Drag Racing site.
Go to Top of Page

JMT
Starting Member

17 Posts

Posted - 08 February 2004 :  01:17:52  Show Profile
MySQL errors:

Trying to get this going again (I'd REALLY like to use this). and I get these errors:

Clicking on the To sign up for this event or to see who it attending click below: link gets me this error:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-4.0.15-nt]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'E.EVENT_DATE >= '20040207000000' GROUP BY T.TOPIC_ID, T.FORUM_I

/EMSR/Interviews/eventlist.asp, line 163


Clicking on Event List Maintenance in the Admin panel gets me:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[MySQL][ODBC 3.51 Driver][mysqld-4.0.15-nt]Invalid use of group function

/EMSR/Interviews/admin_signup.asp, line 52


What can I do to get this to work?

Thanks,
Joe
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 08 February 2004 :  10:18:45  Show Profile  Visit n8pbm's Homepage
My first thought is that it has something to do with MySql. I have tried this with Access and MS SQl but not mySQL. I will have to investigate a little to see what is different in MySQL.

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

JMT
Starting Member

17 Posts

Posted - 12 February 2004 :  08:01:55  Show Profile
Thanks. I wonder if there is a mySQL guru we could ask from here somewhere. Do you know what the procedure / feelings would be about maybe putting some of this thread on the mySQL support forum to see if anyone in there could help?
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 13 February 2004 :  15:07:39  Show Profile  Visit n8pbm's Homepage
Might want to watch this thread: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=51290. That is basically the same code in the sign up mod.

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

JMT
Starting Member

17 Posts

Posted - 13 February 2004 :  16:58:49  Show Profile
Thanks. I'll give it a try tonight. I'll let you know if it works too.
Go to Top of Page

JMT
Starting Member

17 Posts

Posted - 13 February 2004 :  23:12:07  Show Profile
No deal on the fix. Here are the latest errors after modifying the code as instructed in the post you found:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-4.0.15-nt]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'E.EVENT_DATE >= '20040213000000' ORDER BY min(E2.EVENT_DATE) As

Can't make the error in that area go away...




Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 14 February 2004 :  10:11:35  Show Profile  Visit n8pbm's Homepage
The latest information from that post claim it is the min statement in MySQL. If you remove it the code should work but it will give you the wrong results. However it might be worth trying just to see if the Min() is the problem.

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 14 February 2004 :  10:20:38  Show Profile  Visit n8pbm's Homepage
In the admin_signup.asp page you might try this code to replace Line 31 - 44:

	StrSQL = "SELECT T.FORUM_ID, Min(E.EVENT_DATE), T.T_SUBJECT, T.TOPIC_ID " & _
        "FROM (" & _
            strTablePrefix & "TOPICS AS T " & _
        "INNER JOIN " & _ 
            strTablePrefix & "CAL_EVENTS AS E ON T.TOPIC_ID = E.TOPIC_ID) " & _
        "INNER JOIN " & _
            strTablePrefix & "CAL_EVENTS AS E2 ON E.TOPIC_ID = E2.TOPIC_ID " & _
        "WHERE T.T_ISEVENT = 1 AND T_LIST_INCLUDE = 1 " & _
        "AND   E.EVENT_DATE < '" & datetostr(DateValue(strForumTimeAdjust)) & "' "
        
        strSql = strSql & _
    	" GROUP BY T.TOPIC_ID, T.FORUM_ID, T.T_SUBJECT, T.TOPIC_ID, " & _
             "E.EVENT_DATE " & _
    	"ORDER BY E2.EVENT_DATE Asc, T.TOPIC_ID Asc, E.EVENT_DATE Asc "


I have no way of testing it - If it works for the admin screen then we can move to the signup.asp one.

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

JMT
Starting Member

17 Posts

Posted - 20 February 2004 :  16:05:53  Show Profile
Thanks n8pbm. I'll try it tonight. Sure wish they had subscriptions turned on for these forums...

I'll let you know how it turns out.
Go to Top of Page
Page: of 10 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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