1
   

Banner/link suggestion

 
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 02:22 pm
one last thing (for now Smile - can you tell me how to comment out blocks without the thing choking? i tried /* at the beginning, and */ at the end, but some of the middle was processed anyway. ditto for ## on each line, and ditto for // on each line - geez, i can't even comment out code!
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 1 Jul, 2003 02:33 pm
Ok, post all three files (fetch, overall_header.tpl and overall_footer.tpl) in separate posts (so that I don't confuse the code) and after work I'll post you the code. Some work stuff blew up in my face right now.
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 02:39 pm
thanks C d K, much appreciated. i've been staring at the code and i just know it's not going to work if i just plop it into fetch - i KNOW i need other calls first, little things like setting up the variables and so on - so essentially i need to somehow take stuff from the forums/index.php (or whatever other file can initialize the db) and then use the stuff in the header and footer. in other words, i have no idea what i'm doing!
Thanks again, and please, do your work before you're unemployed Smile
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 02:41 pm
okay - here's my fletch, err, fetch code(www.gadgetaddict.com/index.php)
<?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'] = 15;
$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>
<title>gadget addict upgrade in progress - please bear with us</title>
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="forums/templates/subSilver/subSilver.css" type="text/css">

</head>


<body bgcolor="#FFFCC" text="#330000" link="#006699" vlink="#5493B4">

<table align="center" border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
<td class="bodyline" valign="top" width="100%">

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center" width="100%" valign="middle"><span class="maintitle">gadgetaddict site upgrade in progress - please bear with us</span><br /><span class="gen"><br />  </span>
</td>
</tr>
</table>

<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 { ?>
Welcome guest.<p />
<a href="<?php echo $phpbb_root_path; ?>profile.php?mode=register">Register</a>
<?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 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 < count($news); $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>
</font>
<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>

<div align="center"><span class="copyright"><br />
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> 2.1 beta © 2001, 2002, 2003 phpBB Group<br /></span></div>

</td>
</tr>
</table>

</body>
</html>
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 02:42 pm
here's overall_header.tpl


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css">
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">

<CENTER>{BANNER_0_IMG}</CENTER>
<CENTER>{BANNER_1_IMG}{BANNER_2_IMG}{BANNER_3_IMG}{BANNER_4_IMG}{BANNER_5_IMG}{BANNER_6_IMG}</CENTER>


<a name="top"></a>

<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center">
<tr>
<td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />  </span>
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="http://www.gadgetaddict.com/" class="mainmenu"><img src="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/" class="mainmenu"><img src="templates/subSilver/images/icon_mini_forums.gif" width="12" height="13" border="0" align="top" alt="Forum Index" hspace="3" />Forums </a><a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a></span><span class="mainmenu">   <a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>   <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>   <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a> 
<!-- BEGIN switch_user_logged_out -->
 <a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_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="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>   <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>   <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span></td>
</tr>
</table></td>
</tr>
</table>

<br />
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 02:42 pm
here's overall_footer.tpl


<div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />
<!--
We request you retain the full copyright notice below including the link to www.phpbb.com.
This not only gives respect to the large amount of time given freely by the developers
but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
reason) retain the full copyright we request you at least leave in place the
Powered by phpBB {PHPBB_VERSION} line, with phpBB linked to www.phpbb.com. If you refuse
to include even this then support on our forums may be affected.

The phpBB Group : 2002
// -->
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> {PHPBB_VERSION} © 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>
{TRANSLATION_INFO}</span></div>

</td>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="20%"><div align="center">{BANNER_7_IMG}</div></td>
<td width="60%"><div align="center">{BANNER_8_IMG}</div></td>
<td width="20%"><div align="center">{BANNER_9_IMG}</div></td>
</tr>
<tr>
<td width="20%"><div align="center">{BANNER_10_IMG}</div></td>
<td width="60%"><div align="center">{BANNER_11_IMG}</div></td>
<td width="20%"><div align="center">{BANNER_12_IMG}</div></td>
</tr>
</table>

</tr>

</table>

</body>
</html>
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 02:43 pm
here's all my bank accounts, credit card numbers, and passwords:

yeah, right! i'm a novice, but not completely stupid! Smile
0 Replies
 
jespah
 
  1  
Reply Tue 1 Jul, 2003 04:50 pm
Maybe you should just send us your Library card, gadgetaddict. :-D
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 1 Jul, 2003 05:05 pm
Ok, I did your front oage very quickly, so test this out. Upload it in your home directory but keep it named test.php or something until you are sure it works. If it does replace your index.php with this.

I removed two things: PM link in header and log in link

The reason is because fetch already had this. If you'd like I can tell you how to put them back using php to get the dynamic variables that used to be in the template.


Code:<?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'] = 15;
$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-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"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="{U_INDEX}"><img src="forums/templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<td align="center" width="100%" valign="middle"><span class="maintitle">www.gadgetaddict.com</span><br /><span class="gen">get your daily fix<br />  </span>
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="center" valign="top" nowrap="nowrap"><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/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%">

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center" width="100%" valign="middle"><span class="maintitle">gadgetaddict site upgrade in progress - please bear with us</span><br /><span class="gen"><br />  </span>
</td>
</tr>
</table>

<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="%3c?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 { ?>
Welcome guest.<p />
<a href="<?php echo $phpbb_root_path; ?>profile.php?mode=register">Register</a>
<?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 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="%3c?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 < count($news); $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; ?>forums/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>

<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>
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 1 Jul, 2003 05:19 pm
I changed your home page myself. There were a few errors in the code I posted and I fixed them. You can get the latest code, well from your own home page.

There is an extra table (IMO) in the layout. Lemme know if you want me to remove it.
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 09:53 pm
unf'ing believably good - now this is service! just do this for the other 2,000 or so registered users...and you'll die of old age before you make it to the bathroom!!!!!!
i did catch one small error - gizmo's logo causes an error (it's a variable instead of a hard link) but i think i can take care of that in the a.m. - it's close to midnight now and i had to sneak out of bed to um, check for burglurs....anyway, i'll do my best to digest the code you added and UNDERSTAND what went in and why it works.
Thank you again for helping make all this possible - it is truly appreciated.
okay, getting sappy from lack of sleep - so with that i bid you adieu for now Smile
oh, p.s. i wonder why your replies did not go to my e-mail) - they usually do, even when i'm on the board - wierd. your replies did go while i was at the office earlier. wierd.
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 1 Jul, 2003 09:55 pm
The replies thing could be because of a bug/lack of foresight in the quick reply code.

If you use it it turns off your updates.

One of the main issues I will address when i do the overhaul.
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 01/15/2025 at 06:46:04