2
   

Please sir - how can i configure my new vanilla phpbb board?

 
 
Craven de Kere
 
  1  
Reply Tue 1 Jul, 2003 01:08 pm
That response is on the banner/link thread.

Give me the path to that file (location and filename) and the dimentions (width height) and I'll post you some code to place in your overall_header.tpl
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 01:14 pm
the home icon is 12 wide by 13 long - i'd be happy to upload it if you have any use for it whatsoever - actually, i don't see that as an option and i was going to upload it as a kind of payback for whoever reads this - anyway, it's icon_mini_portal.gif and located in the templates/subSilver sub

in case i'm not understanding, my site's logo uses the phpbb logo names - you know, logo_phpBB.gif and so on
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 1 Jul, 2003 01:17 pm
templates/SubSilver/images or templates/SubSilver ??
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 01:21 pm
sorry!
it's at: <drumroll>
forums/templates/subSilver/images/mini_icon_portal.gif

if you think that location or name stink, i'll happily change it
0 Replies
 
empire
 
  1  
Reply Mon 25 Aug, 2003 11:56 am
Hi Gary,
Thanks for starting a very informative post.
Can you share some of your experience using fetchall?
Thanks
0 Replies
 
Craven de Kere
 
  1  
Reply Mon 25 Aug, 2003 12:09 pm
empire,

Able2Know is contructed from code based on fetch all. The home page etc all runs off that code.

I modified the code extensively. First I redid the layout. Then I tied it into the phpbb templating engine and recently I removed it from the templating engine and used simple php includes and strings to template it.

I use it in a very modified way because I have over 75 pages that run of fetch code.

I've added many features to it (like the registration form) so if you want any of what I added just give me a holler.
0 Replies
 
empire
 
  1  
Reply Mon 25 Aug, 2003 12:23 pm
Craven,
Thank you for noticing my post and congratulations on a site well done. Gary was gracious enough to point me this direction. Currently I am working on two sites - both have vanilla 2.06 and no mods, but I am very interested in learning as much as I can to improve my sites, including using fetchall. I will be studying your boards to gain more insight into phpbb and look forward to participating in your community. Are there any books or publications regarding php that you would suggest for newbies?
0 Replies
 
Craven de Kere
 
  1  
Reply Mon 25 Aug, 2003 12:28 pm
Hmm, I never learned anything about computers from books. I learned a lot of php from modifying fetch all.

If you ahve any questions let me know. I plan on releasing my version of fetch all soon so it will help me prepare if you have questions.
0 Replies
 
gadgetaddict
 
  1  
Reply Mon 25 Aug, 2003 12:31 pm
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 Smile 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>
0 Replies
 
empire
 
  1  
Reply Mon 25 Aug, 2003 01:08 pm
Hi Craven,

When I registered the first time, as zrock, my browser hung up - then, we I tried to register again, it said my user name was already in use, but I didn't receive the acitivation email. So, I started over, as empire. Of course, now the zrock activation has shown up, so I have opted to activate it and will now post as zrock. Sorry for any problems this may cause. Please feel free to delete empire if you need to.
thanks,
Jarrod
0 Replies
 
zrock
 
  1  
Reply Mon 25 Aug, 2003 01:15 pm
Gary,
Thank you very much for posting the code. I will attempt to make sense of it this evening.

Craven,
Thanks for everything you do to "enable us to know"
0 Replies
 
gadgetaddict
 
  1  
Reply Mon 25 Aug, 2003 01:29 pm
my pleasure. for what it's worth, i still dont' understand most of it - basically, slap it in and step on the gas pedal - and then figure out where you need to make changes, depending upon what you want. for example, obviously you would want the zrock logo (or at least not the gadgetaddict logo) - the EASIEST way to do so is to make a backup of phpbb's standard icons/logos (templates/subsilver/logo_phpbb_med.gif (or whatever it's called) and then copy over your logo so that your zrock logo becomes logo_phpbb_med.gif or whatever the correct name is. if you do that with all references to my icons/logos, etc. - you'll find your page should work faster and better than you would have thought.
for what it's worth, is till don't understand most of the code Smile
0 Replies
 
zrock
 
  1  
Reply Mon 25 Aug, 2003 06:58 pm
Hello again.... almost 8pm in Texas - doing a site backup (just in case) Very Happy and then will proceed with my mission.
0 Replies
 
zrock
 
  1  
Reply Mon 25 Aug, 2003 08:22 pm
Do I need to install fetch prior to using Gary's code above? My forum directory is located at zrock.com/zrock/zforum. I saved this as index.php in the directrory above zforum, but get a string of error messages, starting with

Warning: main(./zforum/mods/phpbb_fetch_all/common.php) [function.main]: failed to create stream: No such file or directory in /imedia/users/zrock2004/htdocs/zrock/index.php on line 137

Any guidance is appreciated.
0 Replies
 
zrock
 
  1  
Reply Tue 26 Aug, 2003 06:10 am
Upon further review, I downloaded fetch all, and tried to follow the instructions in the readme, including setting up the mods directory.

Still no luck, perhaps I'm missing something regarding the sub_root part?
0 Replies
 
zrock
 
  1  
Reply Tue 26 Aug, 2003 10:42 am
Progess!! I figured out my mistake - now the template is up, but I'm getting the following messages:

Warning: Cannot modify header information - headers already sent by (output started at /imedia/users/zrock2004/htdocs/zrock/index.php:3) in /imedia/users/zrock2004/htdocs/zrock/zforum/includes/sessions.php on line 182

Warning: Cannot modify header information - headers already sent by (output started at /imedia/users/zrock2004/htdocs/zrock/index.php:3) in /imedia/users/zrock2004/htdocs/zrock/zforum/includes/sessions.php on line 183
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 26 Aug, 2003 10:44 am
oh boy jarrod - even I (capital I) was able to install fetch-all the first time Smile
I wrote you some e-mails to try to get things straightened out.
But to answer what you have here,
First install fetch all per their instructions (which i think, frankly, is simply to upload to the mods directory you have just created
then look within the subdirectories until you find the main code, and follow the install instructions that are commented (and they should be fairly quick, easy to do)
ONCE you have fetch all working with the sample, you can THEN get brave and use the code from me (which is the vanilla fetch all sample, heavily modified by Craven)
in general, with all things php, first get it to run simply, then start monkeying around...
btw - i bought NINE php books - i read about 3 of em - they're all very similar overall, so find any decent book on amazon and you should be alright with the general syntax and concepts. phpBB is a VERY large, complicated system - over time you'll START to get the idea of which files do what and where they're located - but any serious modding? Leave that to the folks at phpbb.com and phpbbhacks, in my opinion...or come here and beg Craven Smile
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 26 Aug, 2003 10:50 am
Jarrod,

Have you got the file path issue solved? The errors you are mentioning usually mean you ahve some whitespace at the beginning or the end of one of the php files.

I'll be back to help ya in a bit.
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 26 Aug, 2003 10:53 am
Craven, per an e-mail i got from jarrod, it seems to me his hole directory structure is a mess. i offered to ws-ftp in and take a peek - but if you're willing to step in, at least he knows it will get done right! Smile
i THINK he created zrock.com/zrock/forums but i'm not sure based on his e-mails - i suggested he put forums right under .com/
and i think he's trying to use fetchall with phpbb/ versus zrock/forums
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 26 Aug, 2003 10:55 am
I'll setup fetch for him as long as he understands my spiel about changing the passwords afterward so that I don't get blamed for anything.
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/16/2025 at 02:50:25