![]() |
|
|
|
#1
|
||||
|
||||
|
ok after my mistake yesterday I actually used the search function first this time
and this hack isn't around as far as I could find.What it does is to only pull polls to the portal if they are active, ie: not closed OPEN forum/modules/currentpoll.php FIND line 33 PHP Code:
PHP Code:
This will work for any poll setting, but is particuarly useful on the RAND setting or the random poll hack to stop loads of old closed polls being dredged up. Brian did say that he reckons adding more to this query may show a performance hit on larger websites. Shouldn't be an issue for smaller ones though even if this is the case.
__________________
Kesomir "It's an undocumented feature, not a bug" |
|
#2
|
||||
|
||||
|
Thanks man, I like.
|
|
#3
|
||||
|
||||
|
Just what I needed.
![]() Search is such a wonderful tool. Edit: Maybe I spoke too soon. Does this work with vB 3.0.4? Last edited by 1996 328ti; 01-02-2005 at 06:27 PM. |
|
#4
|
|||
|
|||
|
I am doing the exact thing but its still pulling the closed polls :-( .. please help.
|
|
#5
|
|||
|
|||
|
anyone?
|
|
#6
|
|||
|
|||
|
Working perfectly with vb3.06 and cmps1.01 and is a must-add modification IMO.
THANKS!! |
|
#7
|
||||
|
||||
|
I'm going to do some looking around, but it appears that even if polls time out, they still have to be physically closed through editting the poll. That is my guess at your problem. Go though and physically close all the closed polls that are still showing on your cmps and keep up on closing them and you should have any further problems.
If I find a fix I'll post again. |
|
#8
|
|||
|
|||
|
I changed my code per the first post to
Code:
WHERE open <> 10 AND thread.pollid != 0 AND visible = 1 AND active = 1 $notdeleted $query[pollquery] Code:
AND active = 1 Code:
AND open = 1 -Zach |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|