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 troubles after domain name change
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

weeweeslap
Senior Member

USA
1077 Posts

Posted - 04 January 2008 :  13:49:59  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
My poll mod went broken, all I did change domain name from weeweeslap.com to coastercrazy.com
http://www.coastercrazy.com/forum/topic.asp?TOPIC_ID=16556
and
http://www.coastercrazy.com/forum/topic.asp?TOPIC_ID=16557
were supposed to be polls.
http://www.coastercrazy.com/forum/topic.txt
Any chance you could take a look and see what I might have broken?

-Oscar
-p.s. the poll options did get inserted into the db in table forum_polls
-if I go to edit that topic, the poll option results are not there and tries to edit it as a normal topic.

coaster crazy

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 04 January 2008 :  15:42:12  Show Profile
Did you run setup.asp? Did you make sure poll mods is turned on? If it is, turn it off then on again.

Are all the polls messed up or just these 2? Try creating a new test poll and see if that works.

Support Snitz Forums
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 04 January 2008 :  15:57:25  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
I did run setup.asp.
I made sure poll mod is turned on.
I redid both just now just to make sure.
All polls are messeg up.
I tried creating new poll after redoing the above just now and same result:
http://www.coastercrazy.com/forum/topic.asp?TOPIC_ID=16568
but it is marked as a poll:
http://www.coastercrazy.com/forum/forum.asp?FORUM_ID=4
and shows up on active_polls.asp
http://www.coastercrazy.com/forum/active_polls.asp

coaster crazy
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 04 January 2008 :  17:14:24  Show Profile
Hmm. Can give me a user name and password to login with?
Might require admin access if I don't see something amiss.

It seems to be only on topic.asp that is the problem. The Post New Poll button doesn't show up either on topic.asp.

Support Snitz Forums
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 04 January 2008 :  17:59:02  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
email sent with admin access info through this snitz mail Thanks!

coaster crazy
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 04 January 2008 :  18:59:31  Show Profile
Ok, it seems to be the IsPoll variable is not being set on topic.asp.

After line 187 in topic.asp add the following in red:
IsPoll = rsTopic("T_ISPOLL")
if TopicID = 16568 then Response.Write "IsPoll:" & IsPoll
That variable has to do with all the poll related features on topic.asp. And if that is not set to 1, then no poll shows up.

Support Snitz Forums

Edited by - Davio on 04 January 2008 18:59:58
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 04 January 2008 :  19:35:13  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
done, that section now looks like this
'############## Poll Mod ##################
IsPoll = rsTopic("T_ISPOLL")
if TopicID = 16568 then Response.Write "IsPoll:" & IsPoll
Forum_Polls = rsTopic("F_POLLS")
Poll_Status = rsTopic("T_POLLSTATUS")

Still no poll showing up on that topic.

coaster crazy
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 04 January 2008 :  20:53:42  Show Profile
We are debugging wws. Haven't found the problem yet.

IsPoll comes up empty. Hmm.
Check your database, particularly T_ISPOLL in FORUM_TOPICS. Search for TopicID 16568 and see what the T_ISPOLL value is. If it has a 1, then we know it's a problem with the query. If it is blank, then we check post.asp & post_info.asp to see why it isn't updating the T_ISPOLL field.

Support Snitz Forums

Edited by - Davio on 04 January 2008 20:53:55
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 04 January 2008 :  21:04:17  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
It has a value of 1

coaster crazy
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 04 January 2008 :  21:29:31  Show Profile
Ok, definitely the query then.

I remember a problem where TEXT fields, if not placed last in a SELECT query would give some problems.

Here's what I need you to try:
1. Take a look at the SQL query from lines 116 to 122 in your topic.asp file. You have added some fields related to some mods. Some of them don't have the table abbreviations in front of them. FOr example M_GLOW_TEXT should be M.M_GLOW_TEXT and T_EVENT_DATE should be T.T_EVENT_DATE. There are more so make sure you add the right table abbreviations.

2. After you do that correction, check if the poll works. If it still doesn't, check if any of the fields you added to the query for mods are of the type TEXT. Place these at the end of the query, like before T.T_MESSAGE. After that, see if polls work.

Update your topic.asp file in your first post, so I can see the changes you made to it after you test everything.

Support Snitz Forums

Edited by - Davio on 04 January 2008 21:30:16
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 04 January 2008 :  22:10:47  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
by TEXT you mean that the value input is TEXT and not just numeric, right?

coaster crazy
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 04 January 2008 :  22:19:22  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
Nevermind! I did both fix the M. T. in that first strSQL block and moved the stuff to after T.T_MESSAGE and everything works now. I did a test vote and wohoo it worked! thanks man! but shouldn't this have been broken long ago. Kinda funny it stopped right after the domain name change? Either way, thanks!

coaster crazy
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 04 January 2008 :  23:04:59  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
wait a minute
Poll works, now the question is missing. here's an updated topic.asp
http://www.coastercrazy.com/forum/topic.txt

even non poll topics are missing the first post lol
example: http://www.coastercrazy.com/forum/topic.asp?TOPIC_ID=16505

coaster crazy

Edited by - weeweeslap on 04 January 2008 23:08:29
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 05 January 2008 :  05:03:52  Show Profile
No no wws. I didn't say to move all the fields after T_MESSAGE. lol

T_MESSAGE in the database is a TEXT field, meaning it can hold a LOT of data, unlike database fields like VARCHAR (variable character) which can hold a max of 255 characters.

I was suggesting, that if any of the mod fields are TEXT fields, that you move them towards the end, right before T_MESSAGE. If you notice, we tend to put the very large fields (like T_MESSAGE) at the end of our SELECT queries in the code.

We have had weird results with selecting data from large fields, when they were anywhere else but at the end of the SELECT statement.

So make sure T_MESSAGE is at the end please.

Support Snitz Forums
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 05 January 2008 :  11:58:07  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
ok I think I fixed it, the only fiekld that fit the TEXT description was M.M_WARNMESS and it has been moved right before T.T_MESSAGE and first post and poll seem to be working. I'll keep an eye out for any other oddities lol. Thanks Davio!

coaster crazy
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 05 January 2008 :  13:26:35  Show Profile
Cool.

Glad you got it fixed.

Support Snitz Forums

Edited by - Davio on 05 January 2008 13:27:03
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.44 seconds. Powered By: Snitz Forums 2000 Version 3.4.07