Author |
Topic |
|
The Zim
Junior Member
107 Posts |
Posted - 26 March 2009 : 18:26:04
|
Well, for about the first time, I have installed a MOD and my Test Forums are not broken!! Problem is, the Polls MOD is not doing anything. I am unsure as to what I may have done wrong. I uploaded a zipped file with the files that I uploaded for this MOD as well as the Readme. It can be downloaded here:
http://users5.titanichost.com/zimsgizmos/test/polls.zip
Here is a link to the Test Forums on my site (you may join them if you want, I do not have the validation e-mails activated on these):
http://users5.titanichost.com/zimsgizmos/test/default.asp
Any help would be greatly appreciated. I have installed the dbs file, but I don't know why nothing is appearing. The Polls option shows up in the Admin Options, I can click on it and edit anything I need to, there is an active polls link at the top above the login. However, I can not create any polls, I do not see a link to do so. Please help! |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 26 March 2009 : 19:25:44
|
You have to edit your forum properties (each individually) to specify whether or not to allow polls in that forum. Until you do so, you will not have any links to polls. |
|
|
The Zim
Junior Member
107 Posts |
Posted - 27 March 2009 : 04:55:20
|
There's no option that allows me to do so...
here's a screenshot of what my forum config looks like:
|
|
Edited by - The Zim on 27 March 2009 05:01:02 |
|
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 27 March 2009 : 05:26:19
|
I don't see the dbs file in the .zip |
|
|
The Zim
Junior Member
107 Posts |
Posted - 27 March 2009 : 10:33:50
|
Come to think of it, I don't think I added that, lol. Oh well, I'll paste it here (the file name is dbs_poll_mod.asp):
Poll Mod v2.0.8 [INSERT] CONFIG_NEW (C_VARIABLE,C_VALUE)#('STRPOLLS','1') (C_VARIABLE,C_VALUE)#('STRFEATUREDPOLL','0') (C_VARIABLE,C_VALUE)#('STRFEATUREDPOLLID','0') (C_VARIABLE,C_VALUE)#('STRFPOLLWINDOW','0') (C_VARIABLE,C_VALUE)#('STRFPOLLTABLE','0') (C_VARIABLE,C_VALUE)#('STRHIDEPOLL','0') (C_VARIABLE,C_VALUE)#('STRMAXVOTES','8') [END] [ALTER] TOPICS ADD#T_ISPOLL#int#NULL#0 ADD#T_POLLSTATUS#int#NULL#1 [END] [ALTER] A_TOPICS ADD#T_ISPOLL#int#NULL#0 ADD#T_POLLSTATUS#int#NULL#1 [END] [ALTER] FORUM ADD#F_POLLS#int#NULL#0 [END] [CREATE] POLLS POLL_ID CAT_ID#int## FORUM_ID#int## TOPIC_ID#int## P_WHOVOTES#varchar(12)##'everyone' P_LASTVOTE#varchar(50)#NULL# ANSWER1#varchar(100)#NULL# COUNT1#int#NULL#0 ANSWER2#varchar(100)#NULL# COUNT2#int#NULL#0 ANSWER3#varchar(100)#NULL# COUNT3#int#NULL#0 ANSWER4#varchar(100)#NULL# COUNT4#int#NULL#0 ANSWER5#varchar(100)#NULL# COUNT5#int#NULL#0 ANSWER6#varchar(100)#NULL# COUNT6#int#NULL#0 ANSWER7#varchar(100)#NULL# COUNT7#int#NULL#0 ANSWER8#varchar(100)#NULL# COUNT8#int#NULL#0 ANSWER9#varchar(100)#NULL# COUNT9#int#NULL#0 ANSWER10#varchar(100)#NULL# COUNT10#int#NULL#0 ANSWER11#varchar(100)#NULL# COUNT11#int#NULL#0 ANSWER12#varchar(100)#NULL# COUNT12#int#NULL#0 ANSWER13#varchar(100)#NULL# COUNT13#int#NULL#0 ANSWER14#varchar(100)#NULL# COUNT14#int#NULL#0 ANSWER15#varchar(100)#NULL# COUNT15#int#NULL#0 [END] [CREATE] POLL_VOTES POLL_ID CAT_ID#int## FORUM_ID#int## TOPIC_ID#int## MEMBER_ID#int## GUEST_VOTE#int##0 [END] |
|
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 27 March 2009 : 10:43:57
|
You say you uploaded all of these. Was this your first mod? |
|
|
The Zim
Junior Member
107 Posts |
Posted - 27 March 2009 : 11:15:01
|
No, this is not my first MOD, I have also uploaded the Avatars MOD, Active Users MOD, and the Additional Smilies MOD. Those files are just the ones that I modified for this MOD as the Readme told me to.
The other MODs that I have installed, I have tested and had no problems with. This one, the problem is, nothing shows up. The only things related to this MOD that show up, are an Active Poll link at the top above the login, and the Poll Setup option in the Admin Options menu. |
|
Edited by - The Zim on 27 March 2009 12:07:30 |
|
|
The Zim
Junior Member
107 Posts |
Posted - 27 March 2009 : 17:07:56
|
Ok, I believe I MIGHT have located a possible cause of this problem.
In post.asp, the unedited file says (about lines 811-817):
'set rsForum = nothing
if (mlev = 3 or mlev = 4) and ArchiveView <> "true" then
Response.Write " </select>" & vbNewline
end if
Response.Write " </td>" & vbNewline & _
" </tr>" & vbNewLine
However, the MOD tells me to edit a little below these lines (about line 820). I'm only going to paste the same lines as above from what the ReadMe says it should say (again, about lines 812-817):
if mlev = 3 or mlev = 4 then
Response.Write " </select>" & vbNewline
end if
Response.Write " </td>" & vbNewline & _
" </tr>" & vbNewLine
I have colored what I believe may be the problem in red. I don't know whether this would affect how it works or not. I will probably end up doing the editing myself and seeing how it works, but I will try to wait until I hear back from someone on whether or not this would affect it. I'm thinking maybe just try and take out the () in the unedited file.
Here is what I have to add, just in case you need it:
'############################### Poll Mod ################################
if Request.QueryString("poll") = "1" and (strRqMethod = "Topic" or strRqMethod = "EditTopic") then
Response.Write " <tr>" & vbNewline & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Who Votes:</b></font></td>" & vbNewline & _
" <td bgColor=""" & strPopUpTableColor & """>" & vbNewline & _
" <select name=""WhoVotes"" size=""1"">" & vbNewline & _
" <option value=""everyone"""
if strWhoVotes = "everyone" or strRqMethod = "Topic" then Response.Write(" selected")
Response.Write ">Everyone</option>" & vbNewline & _
" <option value=""members"""
if strWhoVotes = "members" then Response.Write(" selected")
Response.Write ">Members Only</option>" & vbNewline & _
" </select></td>" & vbNewline & _
" </tr>" & vbNewline
end if
'#########################################################################
|
|
|
|
The Zim
Junior Member
107 Posts |
Posted - 27 March 2009 : 17:28:18
|
I DID IT!!!!! lol
Thanks to everyone that tried to help! All I did was simply delete the () in the file and uploaded it, and now they work!! lol
Something will probably go wrong now, lol it always does, lol. |
|
|
|
The Zim
Junior Member
107 Posts |
Posted - 30 March 2009 : 11:46:34
|
I hate it when I'm right... now the pop_delete.asp isn't working, lol. |
|
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 07 April 2009 : 16:57:49
|
Well you see the zim, the part of the code you removed, is not part of the poll mod. That code is part of the 3.4.06 base code. The poll mod readme didn't say you must copy that code to your forum. It only asks you to copy the code between the Poll Mod tags into your file.
I see you have uploaded this change on SnitzBitz, but to avoid confusion, I'm going to remove it. If anyone does run into a similar problem, they can refer to your topic here. |
Support Snitz Forums
|
|
|
The Zim
Junior Member
107 Posts |
Posted - 08 April 2009 : 11:58:59
|
Ok, sorry about that, I was just trying to help out a bit, lol. |
|
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
|
mkervin
Junior Member
100 Posts |
Posted - 27 April 2009 : 12:56:04
|
Hello Davio, I just updated our forum to 3.0.7 and I can't seem to get the poll mod to work. Everything shows up in the admin tools and if I add a New poll the poll will post but the Options (choices) do not display nor can I set the featured poll and yes I have the option set to do just that. If you can tell me where to look for the code I should be able to see my error. I did check the code against the latest version you have posted and everything looks good. It must have something to do with the changes in 3.0.7? Thanks in advance. |
|
|
mkervin
Junior Member
100 Posts |
Posted - 29 April 2009 : 13:39:52
|
Hello again guys I found the problem in the New Code and repaired MY error. The problem was in the postinfo.asp there was a New line added to the IP address logic and the Poll mod was added below the end if for that logic creating the wrong comparison. The New IP statement should have been closed (End If) and the Poll mod added beneath it and then add another end if to the bottom of the Poll Mod. Done! |
|
|
|
Topic |
|