This will be the most likely fix. Give it a try perhaps while you are in the code there…
Support Forum
Changing to !$inTopicLoop() didn’t work. Forum page load froze when loading a topic with a poll.
I just went with your example since the site is live and can’t really test.
@elsa.. You should be good to go but if not fixed in the next polls plugin update the change will be reverted. So check with the team here before updating that plugin.
Apologies – i should have pointed out that there is no such function or variable as ‘inTopicLoop’. It is a property of the topic view data object. We will sort this before another Polls update.
The check you will want is:
if (!$spIsForum || !isset($spTopicView) || !$spTopicView->inPostLoop) {
but be sure to declare $spTopicView global at top of routine…
I’m having this prob too.. fixed it using the suggested change
if (!$spIsForum) {
Tal said
I’m having this prob too.. fixed it using the suggested change
<br />if (!$spIsForum) {<br />
where do i put this..I have not had polls work for weeks