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
 problem with topic.asp maybe because of POLL mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

brujo
Average Member

USA
602 Posts

Posted - 29 May 2003 :  18:13:02  Show Profile  Visit brujo's Homepage
In the first post on any thread - users are not getting an edit icon for posts they have done....

I have narrowed down the code to this part of topic.asp I think :


' ### Poll Mod - Replaces original if (AdminAllowed = 1 or TMember_ID = MemberID) then ..... end if block ###
if Poll_IsPoll = 1 and trim(strActivePoll) = Topic_ID and AdminAllowed <> 1 then
' Do nothing
elseif Poll_IsPoll = 1 then
if (AdminAllowed = 1 or TMember_ID = Member_ID) or (strNoCookies = "1") then
if ((Cat_Status <> 0) and (Forum_Status <> 0) and (Topic_Status <> 0)) or (AdminAllowed = 1) then
Response.Write "  <a href=""post.asp?poll=1&method=EditTopic&REPLY_ID=" & Topic_ID & "&TOPIC_ID=" & Topic_ID & "&FORUM_ID=" & Forum_ID & """>" & getCurrentIcon(strIconEditTopic,"Edit Topic","align=""absmiddle"" hspace=""6""") & "</a>" & vbNewLine
end if
end if
else
if (AdminAllowed = 1 or TMember_ID = MemberID) then
if (Cat_Status <> 0 and Forum_Status <> 0 and Topic_Status <> 0) or (AdminAllowed = 1) then
Response.Write "  <a href=""post.asp?" & ArchiveLink & "method=EditTopic&REPLY_ID=" & Topic_ID & "&TOPIC_ID=" & Topic_ID & "&FORUM_ID=" & Forum_ID & """>" & getCurrentIcon(strIconEditTopic,"Edit Topic","align=""absmiddle"" hspace=""6""") & "</a>" & vbNewLine
end if
end if
end if
' ############################################################################################################



has anyone got any suggestions what maybe wrong with this section ???

thanks for any help at all on this one.....

regards

brujo
Average Member

USA
602 Posts

Posted - 29 May 2003 :  18:52:38  Show Profile  Visit brujo's Homepage
ok - I don't think this is actually the problem now....

I think the problem is that the poster of a thread does not seem to have a valid Member ID.

When I click on the link of the poster in the first post - it states Invalid Member ID.

Hence - the edit topic icon is not coming up since

TMember_ID = MemberID

will not therefore be true.....

so - why is the member ID for the first post in a thread missing ???

best regards

Go to Top of Page

Dave.
Senior Member

USA
1037 Posts

Posted - 29 May 2003 :  19:13:21  Show Profile
I'm not saying I can help you, but you should post a link to a text version of topic.asp.
Go to Top of Page

brujo
Average Member

USA
602 Posts

Posted - 29 May 2003 :  19:28:20  Show Profile  Visit brujo's Homepage
here is

My topic.asp file

as a text file if anyone can help.... - thanks Dave




Go to Top of Page

brujo
Average Member

USA
602 Posts

Posted - 29 May 2003 :  20:42:28  Show Profile  Visit brujo's Homepage
Can anyone in the know tell me if I did ok.....

I have sorted the problem by doing the following :

please see above code in red.... and the parts in blue I changed to Topic_Author


can anyone tell me if this is ok to do ??

it has worked anyway - but I did not want to do something that may haunt me later.....

best regards,
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.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07