PDA

View Full Version : vBadvanced - Only show open polls


thomeri763
04-23-2005, 11:34 AM
I am using vb 3.0.7 and vBadvanced CMPS v1.0.1. On the front page ( http://forum.chat.no/index2.php? ) I have random polls from the forums using the poll module in vBadvance.

However this random poll (or even when chosen spesific forum) also show closed polls.

Is there a way to only present polls that ar OPEN, not closed, on the frontpage?

Thank you!

KW802
04-23-2005, 07:01 PM
http://www.vbadvanced.com/forum/showthread.php?t=198

If you'll look in your adv_index.php file for two instances of:

AND thread.pollid != '0'

Replace each with:

AND thread.pollid != '0' AND poll.active = '1'

That should disable closed polls from being displayed.

thomeri763
04-26-2005, 09:05 AM
Thank you!