Support Forum

POLL NOT WORKING

AT ALESSANDRO TABALLIONE
ALESSANDRO TABALLIONE
Member

Hy All,

I tried many times to open a poll on a topic. Everytime i publish the topic here the message i read “A Simple Press Poll can only appear in a forum post” .

To speed up thing, i want to clarify that i enabled poll on the forum.

25 Answers

New Answer

MP Mr Papa
Mr Papa
Member

no need to yell… 

polls are generally working but perhaps you have a theme doing a unique things with the wp loop… first, are you sure you are using polls version 1.4.2?

MP Mr Papa
Mr Papa
Member

sorry, what does yes sir mean?

what wp theme?

and what is your forum – integration – page and permalink admin panel settings for display in loop?

AT ALESSANDRO TABALLIONE
ALESSANDRO TABALLIONE
Member

Mr Papa said
sorry, what does yes sir mean?

what wp theme?

and what is your forum – integration – page and permalink admin panel settings for display in loop?

yes sir, i use the latest version of the poll plugin

i use dinamyx theme for WordPress (version 3.8.1)

about permalink, i have to check. Would be a problem admitting: i have no idea what you mean about permalink integration and loop ( i’m not a big high tech guy, sorry)

MP Mr Papa
Mr Papa
Member

It means in your wp admin, you have an admin panel for the forums panel under the major category of integration, called page and permalink… want you to check a setting on there…

AT ALESSANDRO TABALLIONE
ALESSANDRO TABALLIONE
Member

Mr Papa said
It means in your wp admin, you have an admin panel for the forums panel under the major category of integration, called page and permalink… want you to check a setting on there…

 

yes, found. What i have to check?

MP Mr Papa
Mr Papa
Member

As previously stated, the display in loop options…

AT ALESSANDRO TABALLIONE
ALESSANDRO TABALLIONE
Member

got it. Was allowed (green light) i disallowed it. Same problem

Mr Papa said
As previously stated, the display in loop options…

MP Mr Papa
Mr Papa
Member

at a bit of a loss…  the latest version 1.4.2 was released specifically for the couple of folks with weird themes not using the wp loop in standard way… and was confirmed to fix it for them…

you are seeing that message in the forum post itself, right? and not in a sidebar or something…

Can you verify that in the sp polls plugin file sp-polls-components.php at line 91, you have these two lines:

    # make sure the shortcode appears in a forum post
    if (!$spIsForum || !isset($spTopicView) || !$spTopicView->inPostLoop) {

also, what sp theme are you using?

AT ALESSANDRO TABALLIONE
ALESSANDRO TABALLIONE
Member

yes, that message is into  the post. When i create the poll, i see the short code into the post. When i approve the post, it appear that message. 

 

Here what i found at line 91

# make sure the shortcode appears in a forum post
if (!$spIsForum || !isset($spTopicView) || !$spTopicView->inPostLoop) {
$pollOutput.= ‘<div class=”spPollError”>’.__(‘A Simple Press Poll can only appear in a forum post’, ‘sp-polls’).'</div>’;
return $pollOutput;
}

 

But the file so-polls-components.php is in the library folder. I’m using the most updated sp theme 5.4.1, edited by myself only to change the colors. 

MP Mr Papa
Mr Papa
Member

No, I wasnt actually asking the version, but the theme you based yours off of…  we have five themes:  default, css only, stacked, iforum and unified…

which did you use to create yours?

also, do you have a link to your site?

AT ALESSANDRO TABALLIONE
ALESSANDRO TABALLIONE
Member

i used default

here the link

 

www.thegridirongamers.com.

 

Thansk in advance for the help

MP Mr Papa
Mr Papa
Member

well… a bit mystified…  can you add some code previous to the lines you and I referenced?  need to see what is failing in that ‘if’ statement…

above the if statement, please add:

ashow($spIsForum);
ashow($spTopicView);

and please report back what is displayed…  you may want to add those lines, capture the data, then remove…