Advertisement:

Author Topic: extra poll fields  (Read 10287 times)

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
extra poll fields
« 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?
Cristián Lávaque http://cristianlavaque.com

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: extra poll fields
« Reply #1 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]

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: extra poll fields
« Reply #2 on: February 04, 2004, 08:27:51 PM »
thanks a lot! :D
Cristián Lávaque http://cristianlavaque.com