Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
POLL NOT WORKING
Avatar
ALESSANDRO TABALLIONE
Member
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2014 - 6:47 am

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. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2014 - 11:10 am

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?

Avatar
ALESSANDRO TABALLIONE
Member
Free Members
sp_UserOfflineSmall Offline
Mar 15, 2014 - 7:34 pm

i used default

here the link

 

http://www.thegridirongamers.com.

 

Thansk in advance for the help

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2014 - 1:37 am

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...

Avatar
ALESSANDRO TABALLIONE
Member
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2014 - 5:50 am

will do now, thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2014 - 2:33 pm

okay, let us know... then we at least know which check is failing - though neither should be...

Avatar
ALESSANDRO TABALLIONE
Member
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2014 - 3:09 pm

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;

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 16, 2014 - 3:49 pm

above the if statement, please add:

so:

ashow($spIsForum);
ashow($spTopicView);
if (!$spIsForum || !isset($spTopicView) || !$spTopicView->inPostLoop) {

Avatar
ALESSANDRO TABALLIONE
Member
Free Members
sp_UserOfflineSmall Offline
Mar 17, 2014 - 5:39 am

tried. Same problem, same words on topic.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 17, 2014 - 10:17 pm

it wasnt meant to solve anything but output information in a blue shaded box...  I want to know that information output...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625