tarleton Posted October 3, 2009 Share Posted October 3, 2009 Hi all I know this is a big task i'm just kind of stumpped. I managed to do somthing the same with recent topics however the POLL is just screwing me up. What I want is to display recent poll SSI call like this | <form method="post" action=""> <fieldset class="poll-options"> <dl> <dt><label for="vote_1">I absolutely love it!</label></dt> <dd><input type="radio" name="vote_id[]" id="vote_1" value="1" /></dd> </dl> <dl> <dt><label for="vote_2">Looks good!</label></dt> <dd><input type="radio" name="vote_id[]" id="vote_2" value="2" /></dd> </dl> <dl> <dt><label for="vote_3">Meh, not the best...</label></dt> <dd><input type="radio" name="vote_id[]" id="vote_3" value="3" /></dd> </dl> <dl> <dt><label for="vote_4">You could do a lot better.</label></dt> <dd><input type="radio" name="vote_id[]" id="vote_4" value="4" /></dd> </dl> <dl> <dt><label for="vote_5">No way, this is horrible!</label></dt> <dd><input type="radio" name="vote_id[]" id="vote_5" value="5" /></dd> </dl> </fieldset> <fieldset class="submit-buttons"> <input type="submit" class="entervote" value="Enter Vote" title="Enter Vote" /> <a href="#" class="viewresults" title="View Results">View Results</a> </fieldset> </form> Im guessing I should do it the same way I've done the Recent Topics which looks like this | <?php error_reporting(E_ALL); require("C:/xampp/htdocs/game/forums/SSI.php"); $array = ssi_recentTopics( 3, null, 'array'); foreach ($array as $post) { echo '<li>'; echo '<a href="', $post['href'], '">', $post['subject'], '</a>'; echo '</li>'; } ?> I know there is alot of info any help would be appreciated. Link to comment https://forums.phpfreaks.com/topic/176355-smf-ssi-recent-poll-formatting/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.