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
 SmileManagerPlus and Poll Mod conflict
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Panhandler
Average Member

USA
783 Posts

Posted - 17 October 2009 :  12:05:02  Show Profile  Visit Panhandler's Homepage
I'm having trouble integrating the SmileManager Plus mod in post.asp
Post.asp already has the Poll Mod and is working good.

Here is the code with mods that I'm try integrate.
I'm close, but stuck:


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.
'###############################################################################
'################### SmileManager Plus MOD ###################
Response.Write " <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
'#################### End SmileManager Plus ###############
Response.Write " <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" -->
<%


edited font

Edited by - Panhandler on 17 October 2009 14:24:00

richfed
Average Member

United States
999 Posts

Posted - 17 October 2009 :  12:27:04  Show Profile  Visit richfed's Homepage
Here is my post.asp in the same area:

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

'##### Poll Mod and Event Mod change "Message:" to another text. #####
   if (strRqMethod = "Topic" or strRqMethod = "EditTopic") and Request.QueryString("poll") = "1" then
   MsgTxt = "Poll Question:"
   elseif Request.QueryString("event")=1 or isevent=1 then
   MsgTxt = "Event Details:"
   else
   MsgTxt = "Message:"
   end if
'#################################################

   Response.Write "              <tr>" & vbNewLine & _
         "                <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>" & MsgTxt & "</b><br />" & vbNewLine & _
         "                <br />" & vbNewLine & _
         "                  <table border=""0"" width=""100%"">" & vbNewLine & _
         "                    <tr>" & vbNewLine & _
         "                      <td align=""left"" nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine
' HTML on/off moved by SmileManager Plus MOD

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


It's way different ... though I have the Event MOD in there, too. I don't know if this will help in any way.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 17 October 2009 :  14:53:23  Show Profile
Umm, could you post a link to your post.asp as a txt file and also, if you have the instructions or files on how to edit post.asp for the smile manager plus mod. I'll just add it in for you.

Support Snitz Forums
Go to Top of Page

Panhandler
Average Member

USA
783 Posts

Posted - 18 October 2009 :  11:22:20  Show Profile  Visit Panhandler's Homepage
Okay and thank you!
post.txt <-- the good working file with Poll Mod installed
post_smile.txt <-- SmileManager mod original version
smile_readme.txt

Around line 950 it becomes a problem. . .
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 October 2009 :  15:35:32  Show Profile
Added the code in for you. Can replace your existing post.asp with it.
http://docs.google.com/Doc?docid=0ASV0kkUz5Jj9ZGYzcHhtZm1fMTJmd2huN2Rmaw&hl=en

If you can't access the file, can email me from here and I'll send it via email.

Support Snitz Forums
Go to Top of Page

Panhandler
Average Member

USA
783 Posts

Posted - 20 October 2009 :  10:32:50  Show Profile  Visit Panhandler's Homepage
Davio; Thanks. . .but it didn't work. Problem lies within the new mod.
In frustration, I tried a lot of things. . . one was to remove the SmileManager from the post.asp file. That worked!

My operational post.asp file now looks a lot more like the one richfed posted.
I should have mentioned that this is Snitz 3.4.07

Anyway, its all working quite well and fairly intuitively.
Thank you all for the input.




Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 20 October 2009 :  15:49:40  Show Profile
It wasn't anything too hard that the smilemanager was asking to do.
In fact, I was wondering if that was all. Just moved some text around it seems.
But since I couldn't see what the output was after I made the changes, I was just flying blind and hoped it work.

Anyways, glad you got it working.

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