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

Funkifeva
Starting Member

13 Posts

Posted - 28 May 2002 :  20:22:05  Show Profile
Hi all -

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 %>

Anyone have any ideas?

Funkifeva
Starting Member

13 Posts

Posted - 28 May 2002 :  20:28:41  Show Profile
Nevermind =)

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 28 May 2002 :  23:03:45  Show Profile
I presume you have solved your problem?

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

InDepthArts
New Member

77 Posts

Posted - 28 May 2002 :  23:11:36  Show Profile  Visit InDepthArts's Homepage
Davio,

I am having the same problem and I cant get it to work.

Eric

Go to Top of Page

InDepthArts
New Member

77 Posts

Posted - 28 May 2002 :  23:20:37  Show Profile  Visit InDepthArts's Homepage
And nevermind I think I found the same old thread that Funkifeva found lol

Eric

PS: Great MOD Davio! Thank you!

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 28 May 2002 :  23:28:39  Show Profile
You guys should do this more often (solving your own problems). So I don't have to do anything.

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

Funkifeva
Starting Member

13 Posts

Posted - 29 May 2002 :  10:00:31  Show Profile
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).

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.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07