I'm having problems modifying the code for the Poll mod in my topic.asp page. I'm not sure if this is going to be the only problem - but as of now its the one thing that seems to prevent me from using the forums.
When I insert the following code as directed (I've done this several times to make sure I did it right) I get a page cant be displayed error when accessing a topic. When I undo the code insert and resave the page it works fine again. So...what is it about this section of code thats causing me problems?
Here is the code - all previous inserted code in topic.asp (above this code) seems to be working fine - as I've put each section in one at a time and saved then tested and had no problems up until this part:
<a href="JavaScript:openWindow('pop_mail.asp?id=<% =rsTopic("MEMBER_ID") %>')"><img src="icon_email.gif" height=15 width=15 alt="Email Poster" border="0" align="absmiddle" hspace="6"></a> <% end if %> <% if (strHomepage = "1") then %> <% if rsTopic("M_Homepage") <> " " then %> <a href="<% =rsTopic("M_Homepage") %>" target="_blank"><img src="icon_homepage.gif" height=15 width=15 alt="Visit <% =ChkString(rsTopic("M_NAME"),"display") %>'s Homepage" border="0" align="absmiddle" hspace="6"></a> <% end if %> <% end if %> <%' ############### Poll Mod ############## if rsTopic("T_ISPOLL") = 1 and trim(strActivePoll) = Topic_ID and AdminAllowed <> 1 then ' Do nothing elseif rsTopic("T_ISPOLL") = 1 then if (AdminAllowed = 1 or rsTopic("MEMBER_ID") = Member_ID) or (strNoCookies = "1") then if ((Cat_Status <> 0) and (Forum_Status <> 0) and (Topic_Status <> 0)) or (AdminAllowed = 1) then %> <a href="post.asp?poll=1&method=EditTopic&REPLY_ID=<% =Topic_ID %>&TOPIC_ID=<% =Topic_ID %>&FORUM_ID=<% =Forum_ID %>&CAT_ID=<% =Cat_ID %>&auth=<% =rsTopic("T_AUTHOR") %>&Forum_Title=<% =ChkString(Forum_Subject,"urlpath") %>&Topic_Title=<% =ChkString(Topic_Subject,"urlpath") %>"><img src="icon_edit_topic.gif" height=15 width=15 alt="Edit Message" border="0" align="absmiddle" hspace="6"></a> <% end if end if else ' ########################################### %> <% if (AdminAllowed = 1 or rsTopic("MEMBER_ID") = Member_ID) or (strNoCookies = "1") then %> <% if ((Cat_Status <> 0) and (Forum_Status <> 0) and (Topic_Status <> 0)) or (AdminAllowed = 1) then %> <a href="post.asp?<%= ArchiveLink %>method=EditTopic&REPLY_ID=<% = Topic_ID %>&TOPIC_ID=<% =Topic_ID %>&FORUM_ID=<% =Forum_ID %>&CAT_ID=<% =Cat_ID %>&Author=<% =rsTopic("T_AUTHOR") %>&Forum_Title=<% =ChkString(Forum_Subject,"urlpath") %>&Topic_Title=<% =ChkString(Topic_Subject,"urlpath") %>"><img src="icon_edit_topic.gif" height=15 width=15 alt="Edit Message" border="0" align="absmiddle" hspace="6"></a> <% end if %>
Honestly, I have NO clue what I did to fix it. I think it had something to do with spacing and having one line of code broken apart on seperate line (I think).