Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Poll (by slemieux)
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 16

Nathan
Help Moderator

USA
7664 Posts

Posted - 25 August 2001 :  02:00:51  Show Profile  Visit Nathan's Homepage
Thats a good idea, I have had people exploit the cookie before. . . . of cource I would never do that though

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Nathan Bales

May the God of hope fill you with all joy and peace as you trust in Him, so that you may overflow with hope by the power of the Holy Spirit.
-Romans 15:13
Go to Top of Page

michaeltran
Starting Member

13 Posts

Posted - 26 August 2001 :  20:01:50  Show Profile
Thanks Davio;

So should I replace the getNewMemberNumber() with your codes???
I might try it to see how it works.

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 27 August 2001 :  00:16:59  Show Profile
Well, you can stay with the error if you want!!
But that's only if you want.

I just looked at the inc_functions file from a standard SR4 release. So I don't know where you got your inc_functions from.

- David
Go to Top of Page

phil2001
Starting Member

23 Posts

Posted - 27 August 2001 :  08:31:54  Show Profile
Thanks Davio. Great mod. It is working. I can add polls... I am using the Huwr 3.1 SR4 code. However, I have one problem:

1) On the forum.asp page, the icon field shows the topic name and the topic field shows the icon. Instead of the Icon/Topic/Author/Read/Last Reply, I have Topic/Icon/Author/Read/Last Reply. With this problem, "Topics Sorting Mod" of Mule is no more working. It was working before... Forum.txt included.

2) Because of 1) (?), the Topics Sorting of Mule is not working.


For 1) In forum.txt, is it correct ? The forum.txt is here: http://www.citeweb.net/grif/forum.txt

 
<% ' ################### Poll Mod - 1 line ################### %>
<td bgcolor="<% =strForumCellColor %>" valign="center" align="left"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="topic.asp?TOPIC_ID=<% =rs("TOPIC_ID") %>&FORUM_ID=<% =Request.QueryString("FORUM_ID") %>&CAT_ID=<% =Request.QueryString("CAT_ID") %>&Topic_Title=<% =ChkString(left(rs("T_SUBJECT"), 50),"urlpath") %>&Forum_Title=<% =ChkString(Request.QueryString("FORUM_Title"),"urlpath") %>"><% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> </font><% if trim(rs("answer1")) <> "" then %><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize-2 %>"> (Poll)</font><% end if %><% if strShowPaging = "1" then TopicPaging() end if%></td>
<td bgcolor="<% =strAltForumCellColor %>" valign="center" align="center"><img src='<% =strImageURL %>icon_mi_<% =rs("T_MSGICON") %>.gif' height=15 width=15 border=0 hspace=0></td>
<td bgcolor="<% =strAltForumCellColor %>" valign="center" align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strForumFontColor %>"><% =ChkString(rs("M_NAME"),"display") %></font></td>
<td bgcolor="<% =strForumCellColor %>" valign="center" align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strForumFontColor %>"><% =rs("T_REPLIES") %></font></td>
<td bgcolor="<% =strAltForumCellColor %>" valign="center" align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strForumFontColor %>"><% =rs("T_VIEW_COUNT") %></font></td>
...



Any ideas? Thanks!
Benlamar@gmx.net



Edited by - phil2001 on 27 August 2001 08:55:54
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 27 August 2001 :  14:29:27  Show Profile
Well, bring the Poll mod line down one and let the message icon line be at the topic.

- David
Go to Top of Page

phil2001
Starting Member

23 Posts

Posted - 27 August 2001 :  16:22:45  Show Profile
It's working. Great Mod.

Other problem:
The question (subject and message) is duplicated in the topic.asp page.

Any ideas?

Thanks David for this mod.



Edited by - phil2001 on 28 August 2001 01:49:54
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 28 August 2001 :  03:01:06  Show Profile
Phil, in your topic.asp file, in the subroutine "GetFirst()" you should have replaced this bit of code:
<font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =formatStr(rs("T_MESSAGE")) %></font>
with the poll mod code. But I'm guessing you just added the poll mod code which already includes that line. So look for that line and delete it. That is what is causing the message to show up twice.

If you don't understand what to do, you can just email me your topic.asp file and I'll edit it for you.

- David
Go to Top of Page

phil2001
Starting Member

23 Posts

Posted - 28 August 2001 :  05:57:31  Show Profile
quote:

So look for that line and delete it. That is what is causing the message to show up twice.



Thanks David
It's working.


The last two errors, but it's secondary...
1) error message with an apostrophe (like coffee's Mario) in the Answer field.
2) error Message in the edition of the poll: DODB.Fields error '800a0cc1' ADO... /post.asp...

Thanks you very much for this mod

Go to Top of Page

michaeltran
Starting Member

13 Posts

Posted - 28 August 2001 :  12:58:09  Show Profile
Could someone please help me?
I setup the mod on 3.1 SR4 and everything running well, except only one problem is when I go to admin_poll.asp (which I renamed to become admin_poll_public.asp). Then I got this error messge in the box, above the POll Name, Post By, Total Votes, Last Votes table.
Microsoft VBScript runtime error '800a01a8' 
Object required: ''

/admin_poll_public.asp, line 160


Line 160 in admin_poll_public.asp is this :
 <%		if rs.EOF or rs.BOF then  '## No new topic posts found in DB %>


Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 28 August 2001 :  18:37:12  Show Profile
quote:
1) error message with an apostrophe (like coffee's Mario) in the Answer field.
2) error Message in the edition of the poll: DODB.Fields error '800a0cc1' ADO... /post.asp...

1) You haven't told me the error you get. Just did a clean install and don't get that problem.
2) Your error message is incomplete. Can you post a link to your forums so i can test it myself?

Can everyone who has a problem with this mod post your message in the "Help: MOD Implementation" forum? Phil, please post a new topic with your response in the above mentioned forum.
Thanks.

Michael, since you obviously edited the file, you're missing the Recordset object. You can post a link to a txt version of your admin_poll_public.asp file and I'll take a look at it.
Remember to post a new topic in the above mentioned forum.

- David
Go to Top of Page

Sirius
Starting Member

45 Posts

Posted - 01 September 2001 :  20:46:01  Show Profile
I would love a 3.3 version of this mod, and I see it's "coming soon". Any ideas when it will be available?

Go to Top of Page
Page: of 16 Previous Topic Topic Next Topic  
Previous Page
 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.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07