News:

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

Aquilo

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
http://localhost/smf_forum/test.php
and localhost/smf_forum is the $boardurl

but if I try accessing it from
http://aquilo.homeip.net/smf_forum/test.php

I get the headers error.


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

include_once 
'SSI.php';

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

ssi_shutdown();
?>


is this a bug or desired?

[Unknown]

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

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

-[Unknown]

Aquilo

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.

http://www.xtram.net/smf/test.php

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

[Unknown]

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.

-[Unknown]

Advertisement: