Support Forum
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.
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?
Visit Cruise Talk Central and Mr Papa's World
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...
Visit Cruise Talk Central and Mr Papa's World
okay, let us know... then we at least know which check is failing - though neither should be...
Visit Cruise Talk Central and Mr Papa's World
Where exactly i have to put that two line?
# 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;
above the if statement, please add:
so:
ashow($spIsForum);
ashow($spTopicView);
if (!$spIsForum || !isset($spTopicView) || !$spTopicView->inPostLoop) {
Visit Cruise Talk Central and Mr Papa's World
it wasnt meant to solve anything but output information in a blue shaded box... I want to know that information output...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)