Welcome, Guest. Please Login or Register.
November 06, 2024, 03:30:38 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [UPDATE 1.5.1] Add more Polls « previous next »
Pages: [1] 2 3 Reply Ignore Print
Author Topic: [UPDATE 1.5.1] Add more Polls  (Read 7538 times)
Horseman
YaBB God
*****
Posts: 784


'MAS VALE CABALLO QUE CAUDAL!'

ICQ - 44729151 WWW
[UPDATE 1.5.1] Add more Polls
« on: August 31, 2002, 10:21:54 AM »
Reply with quote

This MOD doubles the number of possible input/answers with the inquiries forum.

<ID>
Add mor polls
</ID>

<Version>
1.0
</Version>

<Mod info>
This MOD doubles the number of possible input/answers with the inquiries forum.
Make a backup from Sources/Poll.php and Sources/Display.php befor your running BoardMod
Then upload addpolls_db.php into the Main directory of your YaBB SE installation.
Execute addpolls_db.php by going to it in your browser. This will extend the Poll MySQL table.
</Mod info>

<Author>
Horseman ([email protected])
</Author>

Download: (for 1.4.1)
http://www.h-h-c.de/hhc/downloads/addpolls.zip

Download: (for 1.5.1)
http://www.h-h-c.de/downloads/more-polls-eng.rar
http://www.h-h-c.de/downloads/more-polls-eng.zip
« Last Edit: April 15, 2003, 02:19:26 PM by Horseman » Logged
Horseman
YaBB God
*****
Posts: 784


'MAS VALE CABALLO QUE CAUDAL!'

ICQ - 44729151 WWW
Re:Add more Polls
« Reply #1 on: September 02, 2002, 06:42:02 PM »
Reply with quote

I will look for the error.

sorry, the notifikation for this thread was off   :-\
Logged
Horseman
YaBB God
*****
Posts: 784


'MAS VALE CABALLO QUE CAUDAL!'

ICQ - 44729151 WWW
Re:[Beta 1.4.1] Add more Polls
« Reply #2 on: September 03, 2002, 02:51:14 PM »
Reply with quote

ok, i have fixed the bug.
edit two lines in poll.php!
<edit file>
sources/poll.php
</edit file>

<search for>
   global $question,$option1,$option2,$option3,$option4,$option5,$option6,$option7,$option8,$isAnnouncement;
</search for>

<replace>
   global $question,$option1,$option2,$option3,$option4,$option5,$option6,$option7,$option8,$option9,$option10,$option11,$option12,$option13,$option14,$option15,$option16,$isAnnouncement;
</replace>

<search for>
   if ((trim($option1) == '') && (trim($option2) == '') &&(trim($option3) == '') &&(trim($option4) == '') &&(trim($option5) == '') &&(trim($option6) == '') &&(trim($option7) == '') &&(trim($option8) == ''))
</search for>

<replace>
   if ((trim($option1) == '') && (trim($option2) == '') &&(trim($option3) == '') &&(trim($option4) == '') &&(trim($option5) == '') &&(trim($option6) == '') &&(trim($option7) == '') &&(trim($option8) == '') && (trim($option9) == '') && (trim($option10) == '') && (trim($option11) == '') && (trim($option12) == '') && (trim($option13) == '') && (trim($option14) == '') && (trim($option15) == '') && (trim($option16) == ''))
</replace>
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Beta 1.4.1] Add more Polls
« Reply #3 on: September 03, 2002, 03:08:55 PM »
Reply with quote

Shoot., I noticed that.. users vote but the flag does not show the msg as new. .Didnt think it had anything to do with your mod.. Thanks a bunch!
Logged

Christ77
Noobie
*
Posts: 12


christdar@hotmail.com WWW
Re:[Beta 1.4.1] Add more Polls
« Reply #4 on: September 04, 2002, 11:50:42 AM »
Reply with quote

Quote from: Horseman on September 03, 2002, 02:51:14 PMok, i have fixed the bug.

Thank you have repair this bug !  :D
Logged

Horseman
YaBB God
*****
Posts: 784


'MAS VALE CABALLO QUE CAUDAL!'

ICQ - 44729151 WWW
Re:[Beta 1.4.1] Add more Polls
« Reply #5 on: September 04, 2002, 12:00:32 PM »
Reply with quote

Quote from: Wiziwig on September 03, 2002, 03:08:55 PMShoot., I noticed that.. users vote but the flag does not show the msg as new. .Didnt think it had anything to do with your mod.. Thanks a bunch!
No, i think is not the mod. in my board i can see the NEW when user post a message to the poll.
Logged
Horseman
YaBB God
*****
Posts: 784


'MAS VALE CABALLO QUE CAUDAL!'

ICQ - 44729151 WWW
Re:[Beta 1.4.1] Add more Polls
« Reply #6 on: September 04, 2002, 12:01:54 PM »
Reply with quote

Quote from: Christ77 on September 04, 2002, 11:50:42 AMThank you have repair this bug !  :D
;) fine
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Beta 1.4.1] Add more Polls
« Reply #7 on: September 05, 2002, 04:40:14 AM »
Reply with quote

No No Horseman he's saying the poll msg is not flagged as NEW when there was a vote made.. Not when there was a REPLY made..

Quote from: Horseman on September 04, 2002, 12:00:32 PM
Quote from: Wiziwig on September 03, 2002, 03:08:55 PMShoot., I noticed that.. users vote but the flag does not show the msg as new. .Didnt think it had anything to do with your mod.. Thanks a bunch!
No, i think is not the mod. in my board i can see the NEW when user post a message to the poll.
Logged

Horseman
YaBB God
*****
Posts: 784


'MAS VALE CABALLO QUE CAUDAL!'

ICQ - 44729151 WWW
Re:[Beta 1.4.1] Add more Polls
« Reply #8 on: September 05, 2002, 08:24:11 AM »
Reply with quote

@wiziwig,
please go to the testforum:
http://www.h-h-c.de/testfo

make a login as a member
User: test
Pass: member

and create a poll. then logged out and make a login as another member:
User: test4
Pass: 1VmEXCY8an

you can see the flag for NEW
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[Beta 1.4.1] Add more Polls
« Reply #9 on: September 05, 2002, 09:13:12 AM »
Reply with quote

1st time creating a msg/poll will flag it as NEW. It's the poll voting, not the replying, the voting on the poll that's not being flagged.

I know, I have several polls on my forum and many votes were placed. Never was there a NEW flag unless the user actually REPLIED to the POST.

Have user test4 vote on user test's poll, don't have "him" make any replys to the poll. Have user test login and "he'll" see that his poll is not flagged.
Logged

baldrick
Noobie
*
Posts: 8


I'm a llama!

Re:[Beta 1.4.1] Add more Polls
« Reply #10 on: October 24, 2002, 11:47:20 PM »
Reply with quote

Great mod Horseman!  :D

I needed more than 16 poll entries though and made these files from urs...  It mods the polls to give 24 entries  :P

Download zip for 24 entries!

Logged
Koth
Jr. Member
**
Posts: 91


Your mother was a ham sandwich.

Re:[Beta 1.4.1] Add more Polls
« Reply #11 on: March 18, 2003, 05:08:39 AM »
Reply with quote

Will this mod be updated for 1.5.1 at all please pwease pwease *grovels and begs*
Logged


 
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Beta 1.4.1] Add more Polls
« Reply #12 on: March 18, 2003, 05:23:58 AM »
Reply with quote

i think i can use something like this too for my forum...
wonder how many cols will be reserved in YSE2...
or maybe it will use some other method that allows unlimited poll options...

my thoughts:
{$db_prefix}polls (ID_POLL, ID_TOPIC, question, votingLocked, votedMemberIDs, pollType)
{$db_prefix}poll_options (ID_OPTION, ID_POLL, option, votes)

this way, one poll can have unlimited number of options...
« Last Edit: March 18, 2003, 05:33:01 AM by Spaceman-Spiff » Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
baldrick
Noobie
*
Posts: 8


I'm a llama!

Re:[Beta 1.4.1] Add more Polls
« Reply #13 on: March 18, 2003, 05:34:11 AM »
Reply with quote

he he, i went spas and made another mod to ur md and it now takes 86 poll items :)
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Beta 1.4.1] Add more Polls
« Reply #14 on: March 18, 2003, 05:40:54 AM »
Reply with quote

lol, what do u need 86 poll options for? :P
if u make like the database structure above, u'll be able to make unlimited poll options...
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Pages: [1] 2 3 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [UPDATE 1.5.1] Add more Polls « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.091 seconds with 20 queries.