Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

ssi_recentPoll problems

Started by Aquilo, April 02, 2004, 07:46:40 AM

Previous topic - Next topic


is it me or is ssi_recentPoll() not working?

I'm trying to put together a home page on localhost too be uploaded to xtram and was just playing with the functions and ssi_recentPoll(), ssi_recentPoll('echo') what ever is simply printing array

also if I don't use the domain or I guess $boardurl in the address bar I get dup. header error for ssi_recentPoll()

example it works here
and localhost/smf_forum is the $boardurl

but if I try accessing it from

I get the headers error.

here is test.php
$ssi_ban 1;
//$ssi_theme = 'vBulletin';
$ssi_layers = array('main');


'<br />
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
<td width="20%">'
'<br />',
'<br />',
ssi_recentPoll(), '</td>
<td width="80%">
<div style="float: left;">'
ssi_recentTopics(), '</div>
<div style="float: right;">'
ssi_topBoards(), '</div></td>


is this a bug or desired?


The ssi_ functions don't return anything - you should echo them.

It will return an empty array if there are no polls.



I have a poll on localhost for testing, and now on xtram, and it messing up once you have voted, pluse you can't vote from it.

is it supposed to show the results if the poll has been voted in? or empty array?


It will return an empty array if, for any reason, there are no polls you can vote in.  Whether this is because of permissions, or because you've voted in all of them doesn't matter.