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 + Smile Manager MOD
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ticalien
Starting Member

30 Posts

Posted - 01 June 2003 :  01:37:31  Show Profile
Has anyone installed these two together, if so i wonder if you may be able to give me a hand with the post.asp page? I have installed the Poll MOD prior to my attempt with the Smile Manager MOD.

The code it's asking me to modify is here:

'############# 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 & _
			"                <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""middle"" height=""40"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Message:</b><br />" & vbNewLine & _
			"                  <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


This is what my modfied code after the Poll MOD looks like:


	'################################## 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
	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
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


Thanks in advance for any help you can provide.

Tom

Aaron S.
Average Member

USA
985 Posts

Posted - 01 June 2003 :  10:06:38  Show Profile  Visit Aaron S.'s Homepage
This topic has come up a couple times... try searching for it.

--Aaron


DOWNLOAD GREAT NEW MODS HERE
Go to Top of Page

brduran
New Member

Canada
98 Posts

Posted - 09 June 2003 :  00:56:12  Show Profile  Visit brduran's Homepage
I did a search on "Smile Manager and Poll MODs" and found nothing. This is going to become a more frequently asked question since both MODs are very popular. I installed Poll MOD first as well, so I'm facing the same problem, but I have no idea on how to proceed next. Most of all the changes on "post.asp". Can someone give a hand on this please?

Thank you!



Bernardo Duran
www.teknician.com

Go to Top of Page

brduran
New Member

Canada
98 Posts

Posted - 09 June 2003 :  18:32:55  Show Profile  Visit brduran's Homepage
To make it a bit easier I've included the text version of my "post.asp" as is with Poll MOD installed, and the text version of "post.asp" with the recommended changes by the "SmileManager Plus MOD". Just do seach of "SmileManager Plus MOD"

Current with Poll MOD
http://24.85.24.93/forumtest/text/post.asp%20currently.txt

Changes suggested by SmileManager Plus
http://24.85.24.93/forumtest/text/post.asp%20smilemanager%20plus.txt

Any ideas welcome, for as small as they might seem. Thank you!



Bernardo Duran
www.teknician.com

Go to Top of Page

brduran
New Member

Canada
98 Posts

Posted - 09 June 2003 :  23:54:03  Show Profile  Visit brduran's Homepage
Hi, this is what I've found so far. I did a search on this two polls together and found a link to a "serverhacker" posting. He has this two polls installed in his forum, and they're working fine.

He also has a link from his posting for you to download his entire forum, so that's what I did. Then I Copied and Pasted the entire portion needed from his "post.asp" to mine.

Except for the error message that I posted recently, everything seems to fine.

http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=35365&SearchTerms=Poll,MOD,and,Smile,Manager,MOD

Thank you!



Bernardo Duran
www.teknician.com

Go to Top of Page

brduran
New Member

Canada
98 Posts

Posted - 10 June 2003 :  16:11:57  Show Profile  Visit brduran's Homepage
Hi, this is what you "post.asp" should look like after you combine them both,

quote:
if strRqMethod = "URL" or _
strRqMethod = "EditURL" then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Address:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><input maxLength=""150"" name=""Address"" value="""
if (TxtURL <> "") then Response.Write(TxtURL) else Response.Write("http://")
Response.Write """ size=""40""><a href=""Javascript:openWindow3('pop_help.asp?mode=options#address')"">" & getCurrentIcon(strIconSmileQuestion,"Click here to get more help on this option","") & "</a></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if

'############# 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
'################################## 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 /><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

'#################################################################################
'## Forum Moderators - listbox Code
'#################################################################################




Bernardo Duran
www.teknician.com

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