Author |
Topic |
n8pbm
Junior Member
USA
212 Posts |
Posted - 05 September 2003 : 22:15:17
|
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 |
|
|
Gargoyle
Junior Member
USA
280 Posts |
|
n8pbm
Junior Member
USA
212 Posts |
Posted - 07 September 2003 : 14:45:28
|
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 |
|
|
Gargoyle
Junior Member
USA
280 Posts |
Posted - 07 September 2003 : 15:23:47
|
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. |
|
|
n8pbm
Junior Member
USA
212 Posts |
Posted - 07 September 2003 : 18:54:42
|
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 |
|
|
Gargoyle
Junior Member
USA
280 Posts |
Posted - 10 September 2003 : 11:28:36
|
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. |
|
|
n8pbm
Junior Member
USA
212 Posts |
Posted - 10 September 2003 : 14:25:46
|
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 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 11 September 2003 : 23:38:36
|
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 |
|
|
n8pbm
Junior Member
USA
212 Posts |
Posted - 12 September 2003 : 10:52:12
|
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 |
|
|
n8pbm
Junior Member
USA
212 Posts |
Posted - 12 September 2003 : 19:23:10
|
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 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 12 September 2003 : 23:59:56
|
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
|
|
|
Gargoyle
Junior Member
USA
280 Posts |
|
n8pbm
Junior Member
USA
212 Posts |
Posted - 14 September 2003 : 11:29:30
|
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 |
|
|
Gargoyle
Junior Member
USA
280 Posts |
|
StephenD
Senior Member
Australia
1044 Posts |
Posted - 17 September 2003 : 21:13:58
|
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 |
|
|
Topic |
|