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

n8pbm
Junior Member

USA
212 Posts

Posted - 05 September 2003 :  22:15:17  Show Profile  Visit n8pbm's Homepage
I had the wrong admin_signup.asp file in the zip file. I have corrected it but if you downloaded the file before I updated it you may have to re-download it.

Sorry about that

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

Gargoyle
Junior Member

USA
280 Posts

Posted - 07 September 2003 :  13:50:06  Show Profile  Visit Gargoyle's Homepage
The event sign-up link will not show for me ???

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

n8pbm
Junior Member

USA
212 Posts

Posted - 07 September 2003 :  14:45:28  Show Profile  Visit n8pbm's Homepage
When you created the event there is a checkbox to include the signup form with the event (with make this topic a sticky), make sure you chech that box otherwise you will not see the link. You can edit the event to click on the box as well.

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

Gargoyle
Junior Member

USA
280 Posts

Posted - 07 September 2003 :  15:23:47  Show Profile  Visit Gargoyle's Homepage
quote:
Originally posted by n8pbm

When you created the event there is a checkbox to include the signup form with the event (with make this topic a sticky), make sure you chech that box otherwise you will not see the link. You can edit the event to click on the box as well.



I did that. I even checked to make sure my database had the correct settings and all looks well. But for some reason the link in topic.asp will not show ?? I don't get it. According to the code all I need is a "1" value for two database values and it should show. I have the correct values but still no link..

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

n8pbm
Junior Member

USA
212 Posts

Posted - 07 September 2003 :  18:54:42  Show Profile  Visit n8pbm's Homepage
Ok try this:

On Line 887 you should have this in Topic.asp

	Response.Write	"</span id=""msg""></font></td>" & vbNewLine
	'##### Signup Mod ######
	if isevent = "1" and strList = "1" then
		Response.Write	"                   <tr>" & vbNewLine & _

replace
if isevent = "1" and strList = "1" then
with
if isevent = "False" and strList = "1" then

Let me know if that works.

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

Gargoyle
Junior Member

USA
280 Posts

Posted - 10 September 2003 :  11:28:36  Show Profile  Visit Gargoyle's Homepage
So far the only way the link will show is if I remove the if statment from the code. I even tried making it so just isevent was a part of the statment and it still says no. I don't get it... I added the info to my sql so it should be getting the correct info. I even double checked to see if it needed to be added in more areas but the topic post should be the only one that needs it.

Oh well...

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

n8pbm
Junior Member

USA
212 Posts

Posted - 10 September 2003 :  14:25:46  Show Profile  Visit n8pbm's Homepage
Can you post a text link to your topic.asp file?

By removing the if statement the link will show up on every message.

Thanks

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

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 11 September 2003 :  23:38:36  Show Profile
n8pbm, you are using the variable isevent in the cal_functions.asp file. In that file you use it to store the values false and true. The variable in cal_functions.asp overwrites the value that is stored in the isevent variable in topic.asp.

So when you try to do if isevent=1 then in topic.asp, it won't work because the isevent value has changed to true or false.

I changed the all occurences of the variable isevent in cal_functions.asp to blnIsEvent. Everything works after that.

Support Snitz Forums

Edited by - Davio on 11 September 2003 23:54:11
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 12 September 2003 :  10:52:12  Show Profile  Visit n8pbm's Homepage
interesting. I'll take a look at that. That is why I am only a novice!

Mike
Great Lakes Pop Up Club Camping

Edited by - n8pbm on 12 September 2003 10:52:56
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 12 September 2003 :  19:23:10  Show Profile  Visit n8pbm's Homepage
OK trying to undersand Davio. First I did not create the cal_functions.asp file. But it sounds like you modified that file to get my mod to work correctly?

It sounds like you changed all isevent variables to blnisevent in cal_functions.asp? I would rather not change that file and find a better way to implement the mod. I'll look at it more but just wanted a clarification.

Go easy on me however - this is my first attempt at this mod stuff . It workd fine on my forum so that is part of the problem.

Thanks

Mike
Great Lakes Pop Up Club Camping

Edited by - n8pbm on 12 September 2003 19:23:39
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 12 September 2003 :  23:59:56  Show Profile
Ok, I didn't know that. Well, you need to change the variable you use isevent in the topic.asp file. Change it to something like is_event.

I ran into the same problem installing this mod for a client, and the reason was isevent was returning "false" (because of the variable being used in cal_functions.asp), when it should be 1, which prevented the link from showing.

Support Snitz Forums
Go to Top of Page

Gargoyle
Junior Member

USA
280 Posts

Posted - 13 September 2003 :  18:39:36  Show Profile  Visit Gargoyle's Homepage
Been gone for a bit but that sounds like a great idea to fix this!! Thanks Davio!!

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

n8pbm
Junior Member

USA
212 Posts

Posted - 14 September 2003 :  11:29:30  Show Profile  Visit n8pbm's Homepage
Here is the change I have made to correct the problem Davio pointd out. I do not want to change anything related to the original Current Events mod otherwise you could change all occurences of isevent in the topic.asp file to is_event. Instead I created another variable called is_event.

So in Topic.asp find line 146:

	isevent = rsTopic("T_ISEVENT") 

add below it:

	is_event = rsTopic("T_ISEVENT")

Find around line 891:

	if isevent = "1" and strList = "1" then

Replace with this:

	if is_event = "1" and strList = "1" then

That should take care of it.

I could not duplicate the problem on my end so let me know if anyone has problems.
Thanks

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

Gargoyle
Junior Member

USA
280 Posts

Posted - 15 September 2003 :  20:12:06  Show Profile  Visit Gargoyle's Homepage
I will be trying this hopefully some time this week...

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

StephenD
Senior Member

Australia
1044 Posts

Posted - 17 September 2003 :  21:13:58  Show Profile  Send StephenD a Yahoo! Message
Gargoyle, I had the same problem as you and I solved it by moving that piece of code:
'##### 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


to just before the next instance of:
if CanShowSignature = 1 and Topic_Sig = 1 and Topic_MemberSig <> "" then


which was @ line 1246 on my topic.asp
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.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07