Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Topic started by: Anguz on February 03, 2004, 10:35:03 PM

Title: extra poll fields
Post by: Anguz on February 03, 2004, 10:35:03 PM
I have the attached mod in my yabbse forum, will the upgrader take those new fields too or they'd be lost unless I do something else?
Title: Re: extra poll fields
Post by: [Unknown] on February 03, 2004, 10:52:16 PM
Open upgrade.php, and find this:

Code: [Select]
option1, option2, option3, option4, option5, option6, option7, option8,
votes1, votes2, votes3, votes4, votes5, votes6, votes7, votes8

Replace it with:

Code: [Select]
option1, option2, option3, option4, option5, option6, option7, option8,
option9, option10, option11, option12, option13, option14, option15, option16,
votes1, votes2, votes3, votes4, votes5, votes6, votes7, votes8,
votes9, votes10, votes11, votes12, votes13, votes14, votes15, votes16

Then find this:
Code: [Select]
for ($j = 0; $j < 8; $j++)
And make it:
Code: [Select]
for ($j = 0; $j < 16; $j++)
-[Unknown]
Title: Re: extra poll fields
Post by: Anguz on February 04, 2004, 08:27:51 PM
thanks a lot! :D