Kesomir
08-12-2004, 12:42 PM
This hack will change the poll that is displayed on your homepage from the most recent to a random one.
OPEN modules/currentpoll.php
FIND
$query['pollquery'] = 'AND forumid IN(' . $vba_option ['portal_poll_forumid'] . ') ORDER BY poll.pollid DESC';
REPLACE WITH
$query['pollquery'] = 'AND forumid IN(' . $vba_option ['portal_poll_forumid'] . ') ORDER BY RAND()';
SAVE AND UPLOAD
That's it, you're done.
Enjoy.
EDIT - just did a search and found this already exists - doh! should have done that first :P
OPEN modules/currentpoll.php
FIND
$query['pollquery'] = 'AND forumid IN(' . $vba_option ['portal_poll_forumid'] . ') ORDER BY poll.pollid DESC';
REPLACE WITH
$query['pollquery'] = 'AND forumid IN(' . $vba_option ['portal_poll_forumid'] . ') ORDER BY RAND()';
SAVE AND UPLOAD
That's it, you're done.
Enjoy.
EDIT - just did a search and found this already exists - doh! should have done that first :P