Jump to content

SMF SSI Recent Poll Formatting


tarleton

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.