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 with two New Topic Folders
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

crazee
Starting Member

30 Posts

Posted - 28 October 2003 :  02:25:13  Show Profile  Visit crazee's Homepage
I have just installed a poll mod and everthing looks ok execpt I dont see a New Poll icon anywhere. However I see two "New Topic" folders instead. For a visual you may see what I am talking about http://www.fno.graphicwebs.com/forum/forum.asp?FORUM_ID=3 I have gone though all the codes twice and was wondering if anyone knew where the source of the problem may be.

I am always learning...

Edited by - crazee on 30 October 2003 02:36:51

crazee
Starting Member

30 Posts

Posted - 28 October 2003 :  04:08:41  Show Profile  Visit crazee's Homepage
This is one source of code that may have the problem. They seem to overlap and from the example, it looks like I'm missing some code. I have the latest vers. of Snitz and have a Smile Mgr. Mod already installed. It seems to conflict with the Poll Mod. Hope this helps.


post.asp with Smile Manager installed to be incorperated with Poll Mod
'############# SmileManager Plus MOD ################
if strRqMethod = "Edit" or strRqMethod = "URL" or strRqMethod = "EditURL" or _
strRqMethod = "Forum" or strRqMethod = "EditForum" or _
strRqMethod = "Reply" or strRqMethod = "ReplyQuote" or _
strRqMethod = "EditTopic" or strRqMethod = "Topic" or strRqMethod = "TopicQuote" then
Response.Write " <tr>" & vbNewLine
if Request.QueryString("event")="1" or isevent="1" then
Response.Write " <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>" & strCalEventDetails & "</b><br />" & vbNewLine
else
Response.Write " <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""middle"" height=""40"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Message:</b><br />" & vbNewLine
end if
Response.Write " <br /><table border=""0"" cellpadding=0 cellspacing=0 width=""100%"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td align=""left"" nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine


if strIcons = "1" and strShowSmiliesTable = "1" then
if strRqMethod = "Edit" or strRqMethod = "EditTopic" or _
strRqMethod = "Reply" or strRqMethod = "ReplyQuote" or _
strRqMethod = "Topic" or strRqMethod = "TopicQuote" then
%>
<!--#INCLUDE FILE="inc_smilies.asp" -->
<%
'####################################################

end if
end if
Response.Write " </font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><textarea cols=""" & intCols & """ name=""Message"" rows=""" & intRows & """ wrap=""VIRTUAL"" onselect=""storeCaret(this);"" onclick=""storeCaret(this);"" onkeyup=""storeCaret(this);"" onchange=""storeCaret(this);"">" & Trim(CleanCode(TxtMsg)) & "</textarea><br /></td>" & vbNewLine & _
" </tr>" & vbNewLine
'############# SmileManager Plus MOD ################
Response.Write " <tr>" & vbnewline &_
" <td bgColor=""" & strPopUpTableColor & """> </td>" & vbNewline &_
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>"
if strAllowHTML = "1" then
Response.Write "  -  HTML is ON | " & vbNewLine
else
Response.Write "  -  HTML is OFF | " & vbNewLine
end if
if strAllowForumCode = "1" then
Response.Write " <a href=""JavaScript:openWindow6('pop_forum_code.asp')"" tabindex=""-1"">Forum Code</a> is ON<br />" & vbNewLine
else
Response.Write " Forum Code is OFF<br />" & vbNewLine
end if
Response.Write " </font></td>" & vbnewline
Response.Write " </tr>" & vbnewline
'####################################################
end if
select case strRqMethod
case "Reply", "ReplyQuote", "TopicQuote"
Response.Write " <script language=""JavaScript"" type=""text/javascript"">document.PostTopic.Message.focus();</script>" & vbNewLine
end select



post.asp instructions for Poll Mod
if strRqMethod = "Edit" or strRqMethod = "URL" or strRqMethod = "EditURL" or _
strRqMethod = "Forum" or strRqMethod = "EditForum" or _
strRqMethod = "Reply" or strRqMethod = "ReplyQuote" or _
strRqMethod = "EditTopic" or strRqMethod = "Topic" or strRqMethod = "TopicQuote" then
Response.Write " <tr>" & vbNewLine
'################################## Poll Mod ###################################
'Remember to remove the &_ code from the end of the line above.
Response.Write " <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>" & vbNewLine
if strRqMethod = "Topic" or strRqMethod = "EditTopic" then
if Request.QueryString("poll") = "1" then
Response.Write "Poll Question:"
else
Response.Write "Message:"
end if
else
Response.Write "Message:"
end if
Response.Write "</b><br />" & vbNewLine
' Remember to start the 2nd line below with Response.Write.
'###############################################################################
Response.Write " <br />" & vbNewLine & _
" <table border=""0"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td align=""left"" nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine
if strAllowHTML = "1" then
Response.Write " * HTML is ON<br />" & vbNewLine
else
Response.Write " * HTML is OFF<br />" & vbNewLine
end if
if strAllowForumCode = "1" then
Response.Write " * <a href=""JavaScript:openWindow6('pop_forum_code.asp')"" tabindex=""-1"">Forum Code</a> is ON<br />" & vbNewLine
else
Response.Write " * Forum Code is OFF<br />" & vbNewLine
end if

Edited by - crazee on 28 October 2003 04:11:53
Go to Top of Page

crazee
Starting Member

30 Posts

Posted - 28 October 2003 :  11:50:13  Show Profile  Visit crazee's Homepage
Nevermind, I got the poll to work. I didnt know how to edit a forum and had figured that out. [pencil icon] However, I still have two New Topic folders listed on the top. I believe that I may have somehow copied the code twice, I think. Any advise as to where the problem maybe? Do you think it may be on the forum.asp page, since the problem is outputted on that page? This goes for the sticky topics too, the word "sticky" is duplicated everytime it is listed.

I am always learning...
Go to Top of Page

crazee
Starting Member

30 Posts

Posted - 28 October 2003 :  12:16:53  Show Profile  Visit crazee's Homepage
found it in code, I will need to alter some code that is being duplicated.

<font face="Verdana, Arial, Helvetica,Cour" size="2" color="white">Sticky: Sticky: <span class="spnMessageText"><a href="topic.asp?TOPIC_ID=30">Plz don't recruit in other peeps servers!</a></span> </font> found 3 times

found throughout the code for duplicate folder icons, please edit and see if this works
a href="post.asp?method=Topic&FORUM_ID=2"><img src="images/icon_folder_new_topic.gif" width="15" height="15" border="0" alt="New Topic" title="New Topic" align="absmiddle" /></a> <a href="post.asp?method=Topic&FORUM_ID=2">New Topic</a>
<a href="post.asp?method=Topic&FORUM_ID=2"><img src="images/icon_folder_new_topic.gif" width="15" height="15" border="0" alt="New Topic" title="New Topic" align="absmiddle" /></a> <a href="post.asp?method=Topic&FORUM_ID=2">New Topic</a><br />


I think Im answering my own questions lol
I hope that if someone else has the same problem, will find this topic useful.

I am always learning...

Edited by - crazee on 28 October 2003 12:18:51
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 28 October 2003 :  18:26:42  Show Profile
You can do a search for "Sticky:" and "New Topic" in your forum.asp file and find the problem.

The poll mod makes changes to the section where "Sticky" is, and where the "New Topic" is. So check the poll mod changes you made to those sections and compare it with the code in the poll mod files.

Support Snitz Forums
Go to Top of Page

crazee
Starting Member

30 Posts

Posted - 30 October 2003 :  02:30:22  Show Profile  Visit crazee's Homepage
Thank You! You were right. i did a search in the "forum.asp" for those key words (sticky/new topic) and found some lines of code that were duplicated by the "poll mod". I had to remove some lines and a few words. Ty again.

I am always learning...
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 30 October 2003 :  07:51:21  Show Profile
You're Welcome.

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