hi empire/zrock/jarrod!
as i said, Craven is the master of all things good and true. in the spirit of what he did for me, i'm vomiting my front page - i hope you (and others) will find it useful - everything that works is because of Craven. Any errors were from me
probably easiest to select all (including this text), save in notepad, delete everything before <?php and call it index.php (if you have an index.php file, rename it for backup purposes) also, do a global replace and change gadgetaddict to your site name, and if you installed phpbb and called it forums, that's good, otherwise also substitute your phpbb subdirectory name for forums - that should solve 1/2 of your installation needs.
Cheers and good luck,
Gary
here's my index.php which is based on the fetchall sample they provide:
<?php
#######################################################################
## ##
## phpBB Fetch All - displays phpBB on any page ##
## ----------------------------------------------------------------- ##
## A portal example file. ##
## ##
#######################################################################
## ##
## Authors: Volker 'Ca5ey' Rattel <
[email protected]> ##
##
http://clanunity.net/portal.php ##
## ##
## This file is free software; you can redistribute it and/or modify ##
## it under the terms of the GNU General Public License as published ##
## by the Free Software Foundation; either version 2, or (at your ##
## option) any later version. ##
## ##
## This file is distributed in the hope that it will be useful, ##
## but WITHOUT ANY WARRANTY; without even the implied warranty of ##
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ##
## GNU General Public License for more details. ##
## ##
#######################################################################
//
// This path points to the directory where phpBB is installed. Do
// not enter an URL here. The path must end with a trailing
// slash.
//
// Examples:
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/ccc/
// --> $phpbb_root_path = './';
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/
// --> $phpbb_root_path = './ccc/';
// forum in /aaa/bbb/ccc/ and script in /aaa/bbb/ddd/
// --> $phpbb_root_path = '../ccc/';
//
$phpbb_root_path = './forums/';
//
// this setting is for the clanunity site - ignore it
//
#$phpbb_root_path = './forum/';
define ('IN_PHPBB', true);
if (!file_exists($phpbb_root_path . 'extension.inc'))
{
die ('<tt><b>phpBB Fetch All:</b>
$phpbb_root_path is wrong and does not point to your forum.</tt>');
}
//
// phpBB related files
//
include ($phpbb_root_path . 'extension.inc');
include ($phpbb_root_path . 'common.' . $phpEx);
include ($phpbb_root_path . 'includes/bbcode.' . $phpEx);
//
// Fetch All related files - we do need all these because the portal is a
// huge example
//
include ($phpbb_root_path . 'mods/phpbb_fetch_all/common.' . $phpEx);
include ($phpbb_root_path . 'mods/phpbb_fetch_all/stats.' . $phpEx);
include ($phpbb_root_path . 'mods/phpbb_fetch_all/users.' . $phpEx);
include ($phpbb_root_path . 'mods/phpbb_fetch_all/polls.' . $phpEx);
include ($phpbb_root_path . 'mods/phpbb_fetch_all/posts.' . $phpEx);
include ($phpbb_root_path . 'mods/phpbb_fetch_all/forums.' . $phpEx);
//
// start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
init_userprefs($userdata);
//
// since we are demonstrating span pages we need to set the page offset
//
if (isset($HTTP_GET_VARS['start']) or isset($HTTP_POST_VARS['start'])) {
$CFG['posts_span_pages_offset'] = isset($HTTP_GET_VARS['start']) ? $HTTP_GET_VARS['start'] : $HTTP_POST_VARS['start'];
}
// fetch new posts since last visit
$new_posts = phpbb_fetch_new_posts();
// fetch user online, total posts, etc
$stats = phpbb_fetch_stats();
// fetch five users by total posts
$top_poster = phpbb_fetch_top_poster();
// fetch a random user
$random_user = phpbb_fetch_random_user();
// fetch forum structure
//$forums = phpbb_fetch_forums();
// fetch user of a specific group
// $member = phpbb_fetch_users();
// fetch a poll
$poll = phpbb_fetch_poll();
// fetch a single topic by topic id
$download = phpbb_fetch_topics(1);
// fetch latest postings
$CFG['posts_trim_topic_number'] = 27;
$recent = phpbb_fetch_posts(null, POSTS_FETCH_LAST);
// fetch postings
$CFG['posts_trim_topic_number'] = 0;
$CFG['posts_span_pages'] = true;
$news = phpbb_fetch_posts(2);
//
// these settings are for the clanunity site - ignore them
//
#$forums = phpbb_fetch_forums(5);
#$member = phpbb_fetch_users(83);
#$poll = phpbb_fetch_poll(12);
#$download = phpbb_fetch_topics(623);
#$CFG['posts_trim_topic_number'] = 25;
#$recent = phpbb_fetch_posts(12, POSTS_FETCH_LAST);
#$CFG['posts_trim_topic_number'] = 0;
#$CFG['posts_span_pages'] = true;
#$news = phpbb_fetch_posts(11);
//
// disconnect from the database
//
phpbb_disconnect();
?>
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Description" CONTENT="A gadgeteer's dream! Gadgets, gizmos and more - reviews, news, toys, hobbies, recreation games computers pdas - we review anything interesting! FREE">
<META NAME="Keywords" CONTENT="gadgetaddict, Gadget Addict, Gadgets, Gizmo, Gizmos, Gadgeteer, electronics, reviews, news, free, forums, community, recreation, friendly, electronic, pocket pc, palm, pda, pocketpc">
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
<META NAME="REVISIT-AFTER" CONTENT="1 DAYS">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>GadgetAddict</title>
<link rel="stylesheet" href="forums/templates/subSilver/subSilver.css" type="text/css">
</head>
<body>
<a name="top"></a>
<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center">
<tr>
<td class="bodyline" align="center">
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
<td align="center"><a href="http://www.gadgetaddict.com/"><img src="forums/templates/subSilver/images/logo_phpBB.jpg" border="0" alt="Gizmo, the Gadget Addict!" vspace="1" align="center"/></a></td>
</table>
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="center" valign="top" ><span class="mainmenu">
<a href="http://www.gadgetaddict.com/" class="mainmenu"><img src="forums/templates/subSilver/images/icon_mini_portal.gif" width="12" height="13" border="0" align="top" alt="Home Page" hspace="3" />Home </a>
<a href="http://www.gadgetaddict.com/mobile/" class="mainmenu"><img src="./forums/templates/subSilver/images/mobileicon.gif" width="12" height="13" border="0" align="top" alt="Forum Index" hspace="3" />Mobile </a>
<a href="http://www.gadgetaddict.com/forums/" class="mainmenu"><img src="./forums/templates/subSilver/images/icon_mini_forums.gif" width="12" height="13" border="0" align="top" alt="Forum Index" hspace="3" />Forums </a>
<a href="forums/faq.php" class="mainmenu"><img src="forums/templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="FAQ" hspace="3" />FAQ</a></span><span class="mainmenu"> <a href="forums/search.php" class="mainmenu"><img src="forums/templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="Search" hspace="3" />Search</a> <a href="forums/memberlist.php" class="mainmenu"><img src="forums/templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="Memberlist" hspace="3" />Memberlist</a> <a href="forums/groupcp.php" class="mainmenu"><img src="forums/templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="Groups" hspace="3" />Usergroups</a>
<!-- BEGIN switch_user_logged_out -->
<a href="forums/profile.php?mode=register" class="mainmenu"><img src="forums/templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="Register" hspace="3" />Register</a></span>
<!-- END switch_user_logged_out -->
</td>
</tr>
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="forums/profile.php" class="mainmenu"><img src="forums/templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="Profile" hspace="3" />Profile</a> </span></td>
</tr>
</table></td>
</tr>
</table>
<br />
<table align="center" border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
<td class="bodyline" valign="top" width="100%">
<div align="center">
<center>
<table width="98%" cellspacing="0" cellpadding="2" border="1" bgcolor="#f2f2b8">
<tr>
<td align="center" width="100%"><span class="maintitle">Gadget Addict - gotta have it! Get your daily fix!</span>
</tr>
</table>
</center>
</div>
<br />
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
<td valign="top" width="25%">
<!-- USER -->
<?php if ($userdata) { ?>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><span class="cattitle">User</span></td>
</tr>
<tr>
<td class="row1" align="left" width="100%">
<?php if ($userdata['session_logged_in']) { ?>
<table>
<tr>
<td valign="top">
<?php if ($userdata['user_avatar_type'] > 0) { ?>
<?php if ($userdata['user_avatar_type'] == 1) { ?>
<img src="<?php echo $CFG['avatar_url']; ?>/<?php echo $userdata['user_avatar']; ?>" border="0" alt="" />
<?php } elseif ($userdata['user_avatar_type'] > 1) { ?>
<img src="<?php echo $CFG['avatar_gallery_url']; ?>/<?php echo str_replace(' ', '%20', $userdata['user_avatar']); ?>" border="0" alt="" />
<?php } ?>
<?php } else { ?>
<?php } ?>
</td>
<td valign="top">
<span class="gensmall">
Welcome back <?php echo $userdata['username']; ?>.
You last visited on <?php echo date($userdata['user_dateformat'], $userdata['user_lastvisit']); ?>.<p />
</span>
</td>
</tr>
</table>
<span class="gensmall">
<a href="<?php echo $phpbb_root_path; ?>privmsg.php?folder=inbox">You have
<?php if ($userdata['user_new_privmsg']) { echo $userdata['user_new_privmsg']; } else { echo 'no'; } ?> new message<?php echo $userdata['user_new_privmsg'] == 1 ? '' : 's' ?></a><br />
<a href="<?php echo $phpbb_root_path; ?>search.php?search_id=newposts">View posts since last visit
(<?php echo $new_posts['total']; ?>)</a>
<br />
<a href="<?php echo $phpbb_root_path; ?>search.php?search_id=egosearch">View your posts</a><br />
<a href="<?php echo $phpbb_root_path; ?>search.php?search_id=unanswered">View unanswered posts</a>
<?php } else { ?>
<p align="justify"><span class="gen">Welcome guest. You are currently <b>not</b> logged in. Please log in if you are already registered. If you are not yet a member we invite you to register below.<p />
<form method="post" action="forums/profile.php">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<p align="center"><span class="explaintitle">Register</span><br /><br /></td>
</tr>
<tr>
<td align="center"><span class="genmed">Username:</span><br /><input type="text" class="post" style="width:150px" name="username" size="25" maxlength="25" value="" /></td>
</tr>
<tr>
<td align="center"><span class="genmed">Email:</span><br /><input type="text" class="post" style="width:150px" name="email" size="25" maxlength="255" value="" /></td>
</tr>
<tr>
<td align="center"><span class="genmed">Password:</span><br /><input type="password" class="post" style="width: 150px" name="new_password" size="25" maxlength="32" value="" /></td>
</tr>
<tr>
<td align="center"><span class="genmed">Confirm Password:</span><br /><input type="password" class="post" style="width: 150px" name="password_confirm" size="25" maxlength="32" value="" /></td>
</tr>
<tr>
<td width="100%">
<input type="hidden" name="hideonline" value="0" checked="checked" />
<input type="hidden" name="viewemail" value="0" checked="checked" />
<input type="hidden" name="notifyreply" value="1" checked="checked" />
<input type="hidden" name="notifypm" value="1" checked="checked" />
<input type="hidden" name="popup_pm" value="1" checked="checked" />
<input type="hidden" name="attachsig" value="1" checked="checked" />
<input type="hidden" name="allowbbcode" value="1" checked="checked" />
<input type="hidden" name="allowhtml" value="0" checked="checked" />
<input type="hidden" name="allowsmilies" value="1" checked="checked" /> <br />
<input type="hidden" name="mode" value="register" />
<input type="hidden" name="agreed" value="true" />
<input type="hidden" name="coppa" value="0" />
</td>
</tr>
<tr>
<td width="100%" align="center">
<input type="submit" name="submit" value="Register" class="liteoption" />
</td>
</tr>
</table>
</form>
</span>
<?php } ?>
</span>
</td>
</tr>
</table>
<p />
<?php } ?>
<!-- USER -->
<!-- LOGIN -->
<?php if (!$userdata or !$userdata['session_logged_in']) { ?>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><span class="cattitle">Login</span></td>
</tr>
<tr>
<td class="row1" align="center" width="100%">
<table align="center">
<tr>
<td>
<span class="gensmall">
<form action="<?php echo $phpbb_root_path; ?>login.php" method="post" target="_top">
Username:<br />
<input type="text" name="username" size="20" maxlength="40" value="" /><br />
Password:<br />
<input type="password" name="password" size="20" maxlength="25" /><br />
<input type="checkbox" name="autologin" /> auto login<p />
<input type="hidden" class="mainoption" name="redirect" value="<?php echo $PHP_SELF; ?>" />
<div align="center"><input type="submit" class="mainoption" name="login" value="Login" /><p />
<a href="<?php echo $phpbb_root_path; ?>profile.php?mode=sendpassword">I forgot my password</a></div>
</form>
</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p />
<?php } ?>
<!-- LOGIN -->
<!-- SEARCH -->
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><span class="cattitle">Search</span></td>
</tr>
<tr>
<td class="row1" align="center" width="100%">
<form action="<?php echo $phpbb_root_path; ?>search.php?mode=results" method="post" target="_top">
<input type="text" class="post" name="search_keywords" size="20" />
<input type="submit" class="mainoption" name="login" value="Go" /><p />
<span class="gensmall">
<a href="<?php echo $phpbb_root_path; ?>search.php">Advanced Search</a>
</span>
</form>
</td>
</tr>
</table>
<p />
<!-- SEARCH -->
<!-- STATS -->
<?php if ($stats) { ?>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><span class="cattitle">Stats</span></td>
</tr>
<tr>
<td class="row1" align="left" width="100%">
<span class="gensmall">
Our users have posted a total of <b><?php echo $stats['total_posts']; ?></b> articles.
We have <b><?php echo $stats['total_users']; ?></b> registered users.
The newest registered user is <a href="<?php echo $phpbb_root_path; ?>profile.php?mode=viewprofile&u=<?php echo $stats['user_id']; ?>"><b><?php echo $stats['username']; ?></b></a>.
In total there <?php echo ($stats['user_online'] == 1) ? 'is' : 'are' ?> <b><?php echo $stats['user_online']; ?></b> user(s) online.<br />
</span>
</td>
</tr>
</table>
<p />
<?php } ?>
<!-- STATS -->
<!-- TOP POSTER -->
<?php if ($top_poster) { ?>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><span class="cattitle">Top Poster</span></td>
</tr>
<tr>
<td class="row1" align="left" width="100%">
<table>
<?php for ($i = 0; $i < count($top_poster); $i++) { ?>
<tr>
<td><span class="gensmall">#<?php echo ($i+1); ?></span></td>
<td width="100%"><span class="gensmall"><a href="<?php echo $phpbb_root_path; ?>profile.php?mode=viewprofile&u=<?php echo $top_poster[$i]['user_id']; ?>"><?php echo $top_poster[$i]['username']; ?></a></span></td>
<td align="right"><span class="gensmall"><?php echo $top_poster[$i]['user_posts']; ?></span></td>
</tr>
<?php } ?>
</table>
</td>
</tr>
</table>
<p />
<?php } ?>
<!-- TOP POSTER -->
<!-- RANDOM USER -->
<?php if ($random_user) { ?>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><span class="cattitle">Random User</span></td>
</tr>
<tr>
<td class="row1" align="left" width="100%">
<span class="gensmall">
The user of the moment is <a href="<?php echo $phpbb_root_path; ?>profile.php?mode=viewprofile&u=<?php echo $random_user['user_id']; ?>"><b><?php echo $random_user['username']; ?></b></a><br />
</span>
<?php if ($random_user['user_avatar_type'] > 0) { ?>
<table>
<tr>
<td valign="top">
<?php if ($random_user['user_avatar_type'] == 1) { ?>
<img src="<?php echo $CFG['avatar_url']; ?>/<?php echo $random_user['user_avatar']; ?>" border="0" alt="" />
<?php } elseif ($random_user['user_avatar_type'] > 1) { ?>
<img src="<?php echo $CFG['avatar_gallery_url']; ?>/<?php echo str_replace(' ', '%20', $random_user['user_avatar']); ?>" border="0" alt="" />
<?php } ?>
</td>
<td valign="top">
<?php } ?>
<span class="gensmall">
Since: <?php
$since = intval((time() - $random_user['user_regdate']) / 86400);
if ($since == 0) {
echo 'today';
} elseif ($since == 1) {
echo '1 day';
} else {
echo $since . ' days';
} ?><br />
Posts: <?php echo $random_user['user_posts']; ?><br />
From: <?php echo $random_user['user_from']; ?><br />
</span>
<?php if ($random_user['user_avatar_type'] > 0) { ?>
</td>
</tr>
</table>
<?php } ?>
</td>
</tr>
</table>
<?php } ?>
<!-- RANDOM USER -->
</td>
<td valign="top" width="50%">
<p />
<!-- NEWS -->
<?php for ($i = 0; $i < 10; $i++) { ?>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<th class="thTop" height="28"><?php echo $news[$i]['topic_title']; ?><?php if ($news[$i]['topic_trimmed']) { echo '...'; } ?></th>
</tr>
<tr>
<td class="row1" align="left" width="100%">
<span class="gensmall">
Posted by
<a href="<?php echo $phpbb_root_path; ?>profile.php?mode=viewprofile&u=<?php echo $news[$i]['user_id']; ?>">
<?php echo $news[$i]['username']; ?>
</a>
on <?php echo $news[$i]['date']; ?> at <?php echo $news[$i]['time']; ?>
</span>
<span class="gen">
<hr size="1"/>
<?php echo $news[$i]['post_text']; ?><?php if ($news[$i]['trimmed']) { echo '...'; } ?>
</span>
<hr size="1"/>
<span class="gensmall">
<div align="right"><font color="#333333" face="Verdana" size="1">(<?php echo $news[$i]['topic_replies']; ?>)
<a href="<?php echo $phpbb_root_path; ?>viewtopic.php?t=<?php echo $news[$i]['topic_id']; ?>">
Comment<?php if ($news[$i]['topic_replies'] != 1) { echo 's'; } ?></a></font></div>
</span>
</td>
</tr>
</table>
<p />
<?php } ?>
<!-- NEWS -->
<!-- FORUMS -->
<?php if ($forums) { ?>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<th class="thTop" height="28">Forum</th>
<th class="thTop" height="28">Topics</th>
<th class="thTop" height="28">Posts</th>
</tr>
<?php $last_cat = -1; ?>
<?php for ($i = 0; $i < count($forums); $i++) { ?>
<?php if ($last_cat != $forums[$i]['cat_id']) { ?>
<?php $last_cat = $forums[$i]['cat_id']; ?>
<tr>
<td class="catLeft" colspan="3" height="28"><span class="cattitle"><a href="<?php echo $phpbb_root_path; ?>index.php?c=<?php echo $forums[$i]['cat_id']; ?>" class="cattitle"><?php echo $forums[$i]['cat_title']; ?></a></span></td>
</tr>
<?php } ?>
<tr>
<td class="row1" align="left" width="100%">
<span class="forumlink">
<a href="<?php echo $phpbb_root_path; ?>viewforum.php?f=<?php echo $forums[$i]['forum_id']; ?>" class="forumlink"><?php echo $forums[$i]['forum_name']; ?></a><br />
</span>
<span class="genmed">
<?php echo $forums[$i]['forum_desc']; ?>
</span>
</td>
<td class="row1" align="center" width="100%">
<span class="genmed">
<?php echo $forums[$i]['forum_topics']; ?>
</span>
</td>
<td class="row1" align="center" width="100%">
<span class="genmed">
<?php echo $forums[$i]['forum_posts']; ?>
</span>
</td>
</tr>
<?php } ?>
</table>
<p />
<?php } ?>
<!-- FORUMS -->
</td>
<td valign="top" width="25%">
<!-- DOWNLOAD -->
<?php if ($download) { ?>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><span class="cattitle">Download</span></td>
</tr>
<tr>
<td class="row1" align="left" width="100%">
<span class="gensmall">
<?php echo $download[0]['post_text']; ?>
</span>
</td>
</tr>
</table>
<p />
<?php } ?>
<!-- DOWNLOAD -->
<!-- RECENT -->
<?php if ($recent) { ?>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><span class="cattitle">Latest Discussion</span></td>
</tr>
<tr>
<td class="row1" align="left" width="100%">
<span class="gensmall">
<?php for ($i = 0; $i < count($recent); $i++) { ?>
<?php echo date($CFG['date_format'] . ' ' . $CFG['time_format'], $recent[$i]['post_time']); ?> <a href="<?php echo $phpbb_root_path; ?>profile.php?mode=viewprofile&u=<?php echo $recent[$i]['user_id']; ?>"><?php echo $recent[$i]['username']; ?></a><br /><img src="<?php echo $phpbb_root_path; ?>templates/subSilver/images/icon_latest_reply.gif" border="0" align="absmiddle" /> <a href="<?php echo $phpbb_root_path; ?>viewtopic.php?p=<?php echo $recent[$i]['post_id']; ?>#<?php echo $recent[$i]['post_id']; ?>"><b><?php echo $recent[$i]['topic_title']; ?><?php if ($recent[$i]['topic_trimmed']) { echo '...'; } ?></b></a><br />
<?php } ?>
</span>
</td>
</tr>
</table>
<p />
<?php } ?>
<!-- RECENT -->
<!-- POLL -->
<?php if ($poll) { ?>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><span class="cattitle">Poll</span></td>
</tr>
<tr>
<td class="row1" align="center" width="100%">
<?php if (!$poll) { ?>
<span class="gensmall"><b>No poll at the moment.</b></span>
<?php } else { ?>
<span class="gensmall"><b><?php echo $poll['vote_text']; ?></b></span>
<form method="post" action="<?php echo $phpbb_root_path; ?>posting.php?t=<?php echo $poll['topic_id']; ?>">
<table>
<?php for ($i = 0; $i < count($poll['options']); $i++) { ?>
<tr>
<td>
<input type="radio" name="vote_id" value="<?php echo $poll['options'][$i]['vote_option_id']; ?>">
</td>
<td>
<span class="gensmall"><?php echo $poll['options'][$i]['vote_option_text']; ?></span>
</td>
<td>
<span class="gensmall">[ <?php echo $poll['options'][$i]['vote_result']; ?> ]</span>
</td>
</tr>
<?php } ?>
</table>
<?php if ($userdata['session_logged_in']) { ?>
<input type="submit" class="mainoption" name="submit" value="Vote">
<input type="hidden" name="topic_id" value="<?php echo $poll['topic_id']; ?>">
<input type="hidden" name="mode" value="vote">
<?php } else { ?>
<span class="gensmall"><b>You must login to vote.</b></span>
<?php } ?>
</form>
<?php } ?>
</td>
</tr>
</table>
<p />
<?php } ?>
<!-- POLL -->
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language=javascript type="text/javascript"
src="http://ss.webring.com/navbar?f=j;y=gadgetaddict;u=10051123">
</script><noscript><center>
<table bgcolor=gray cellspacing=0 border=2><tr>
<td><table cellpadding=2 cellspacing=0 border=0><tr><td align=center>
<font face=arial size=-1>This site is a member of WebRing.
<br>To browse visit <a href="http://ss.webring.com/navbar?f=l;y=gadgetaddict;u=10051123">
Here</a>.</font></td></tr></table></td></tr></table>
</center></noscript>
<p align="center"><map name="FPMap0">
<area href="http://www.pocketgear.com/webring.asp" shape="rect" coords="167, 8, 197, 62">
<area href="http://www.pocketgear.com/webring.asp" shape="rect" coords="89, 24, 143, 39">
<area href="http://www.pocketgear.com/webring.asp" shape="rect" coords="126, 48, 162, 65">
<area href="http://nav.webring.org/cgi-bin/navcgi?ring=pocket_pc;random" shape="rect" coords="74, 48, 125, 65">
<area href="http://nav.webring.org/cgi-bin/navcgi?ring=pocket_pc;id=1;next" shape="rect" coords="43, 48, 73, 65">
<area href="http://nav.webring.org/cgi-bin/navcgi?ring=pocket_pc;id=1;prev" shape="rect" coords="10, 48, 42, 65">
</map><img border="0" src="http://www.pocketgear.com/webring/webring.gif" usemap="#FPMap0" WIDTH="207" HEIGHT="70"></p>
<div align="center"><span class="copyright"><br /><br />
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> © 2001, 2002 phpBB Group<br />
Copyright 2003 Gary B. Garland - All rights reserved<br />
Site summary can be found by clicking <a href="http://www.gadgetaddict.com/forums/spyder_manage.php" target="_blank">here.</a><br/>
<a target="_blank" class="copyright" href="http://www.able2know.com">Ask An Expert</a>
</span></div>
</td>
</tr>
</table>
</body>
</html>