2
   

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

 
 
Reply Wed 25 Jun, 2003 04:01 pm
Hi Craven (i think i write to an audience of one, but that's fine by me Smile
Now that my vanilla board is up, and fetch is fetching a bit, here are two things i'm looking to do:
1) optomize index.html or whatever i have to for google
2) get fetch to work the way i would like - nothing fancy (okay, maybe some fanciness) but i would like to be able to retrieve the contents of a forum, or a few forums, to the front page
viable stuff?
Right now i've disabled my index.html - so i only have index.php which is actually fetch's portal.php - your wisdom is sought.
Also, i mentioned elsehwhere i put in your sessions mod, but it still allowed guest(s) to post, so i don't know if it really did what it was supposed to?
Thanks as usual Smile
Gary
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 2 • Views: 20,929 • Replies: 106
No top replies

 
Craven de Kere
 
  1  
Reply Wed 25 Jun, 2003 04:15 pm
Yeah I saw that. Netclectic posted as a guest. Make sure to turn off guest posting from teh admin control panel.

First of all to fix up the fetch all page you need to do a few things.

First of all let's get the stylesheet working.

I had a look at your forum code and you are using the stylesheet embedded in the overall_header.tpl file. You really should remove it and use an external stylesheet. It will make the user pages load much faster.

Then you can point your fetch all to the same stylesheet your forum uses.

You either need to do that or put the stylesheet that came with fetch all in the correct directory.

As to pulling specific forums etc from fetch all it is viable and easy. Let's work out teh CSS issue first.
0 Replies
 
gadgetaddict
 
  1  
Reply Thu 26 Jun, 2003 07:34 am
I have to tell you - i feel like an incompetant nincompoop - i have no idea how to do what you suggested - i understand the concept - i just have no way to implement - i saw in overall_header.php it actually says you can cut it out and make it an external file, and then link to it - i'm not sure exactly what sections to cut, and how then to link??? waaaa - i want my mommy!
i would GUESS that i cut from where right below <style type="text/css"> and go through till </style> but i'm really not sure - and then i guess i would need an includes and the file name for the style sheet, and then a call to it somehow. as far as i know, the overall_header.php is unmodified phpbb2.05, although i'd be happy to post it (not looking to waste your bandwidth or storage unnecessarily) - so, um, heeeeeelllllllp! Smile
0 Replies
 
Craven de Kere
 
  1  
Reply Thu 26 Jun, 2003 03:01 pm
I had a look at your code. It is vanilla.

Don't worry about my bandwith or storage. It's 400GB/month and 60 GB.

What you need to do is find this code:

Code:<!-- link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" -->


And uncomment it by making it look like this:"

Code:< link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" >


Then you delete the whole css thing from

<style type="text/css">

to

</style>

(including the opening and closing tags).

The above is for the forum CSS.

For fetch all you should replace this:

Code:<style type="text/css">
<!--
<?php
include_once ('subSilver.css');
?>
-->
</style>


With this:

Code:<!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" -->


Note replace the css and template names with what you are using. The above examples assume you are using subsilver.
0 Replies
 
gadgetaddict
 
  1  
Reply Mon 30 Jun, 2003 07:24 am
ugh - i'm getting the text
< link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" >
appearing at the top of every page, and now it is also appearing at the top of the fetch page (for fetch, i first tried it with the !-- and the trailing -- and nothing happened - i assumed you meant it to be without the !-- and trailing -- so i took them out.
did i cut the wrong sections out of the overall_header?

btw - not that i mind, in fact i appreciate you were able to look at my code - was that with a jedi trick, or using view source?

here's my overall_header.tpl file:

<!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}">

<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="{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 />


and here is my fetch file:

<?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_once ($phpbb_root_path . 'extension.inc');
include_once ($phpbb_root_path . 'common.' . $phpEx);
include_once ($phpbb_root_path . 'includes/bbcode.' . $phpEx);

//
// Fetch All related files - we do need all these because the portal is a
// huge example
//

include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/common.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/stats.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/users.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/polls.' . $phpEx);
include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/posts.' . $phpEx);
include_once ($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();

//
// 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="#E5E5E5" text="#000000" 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"><?php echo $CFG['version']; ?><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%">

<!-- 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 -->

<!-- SPAN PAGES -->
<div align="right">
<span class="gensmall"><b><?php echo phpbb_span_pages($CFG['posts_span_pages_numrows'], $CFG['posts_limit'], $CFG['posts_span_pages_offset'], false); ?></b></span>
</div>
<!-- SPAN PAGES -->

<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 -->

<!-- SPAN PAGES -->
<div align="right">
<span class="gensmall"><b><?php echo phpbb_span_pages($CFG['posts_span_pages_numrows'], $CFG['posts_limit'], $CFG['posts_span_pages_offset'], false); ?></b></span>
</div>
<!-- SPAN PAGES -->

</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 -->


<!-- MEMBER -->
<?php if ($member) { ?>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><span class="cattitle"><?php echo $member[0]['group_name']; ?></span></td>
</tr>
<tr>
<td class="row1" align="left" width="100%">
<span class="gensmall">
<?php for ($i = 0; $i < count($member); $i++) { ?>
<a href="<?php echo $phpbb_root_path; ?>profile.php?mode=viewprofile&u=<?php echo $member[$i]['user_id']; ?>"><b><?php echo $member[$i]['username']; ?></b></a><?php if ($i < (count($member)-1)) { ?>,
<?php } ?>
<?php } ?>
</span>
</td>
</tr>
</table>
<?php } ?>
<!-- MEMBER -->

</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 09:23 am
update: things were a disaster so i had to fiddle around. the upshot was i replaced the overall_header.tpl with the backup and the board's style sheets went back to working. i then essentially did the same for fetchall, except i also copies subSilver.css into the route directory (yeah, i know, that was lazy, i could have pointed to the templates sub) -
i still need a lot of help, but at least the board has that polished look it originally had - i don't know what happened with those modifications.
Superman, I mean Craven, where are you? Smile
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 1 Jul, 2003 10:08 am
Are you using a subsilver template?
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 10:24 am
now i am. and in the course of 1 hour today i managed to screw things up with banner management - ugh.
i downloaded that total banner package, but saw it was a release candidate and didn't see documentation, so i TRIED to install Neil Chr. Denmakr's total banner mod - i'm now dying.
ok - got the banners fixed - my typo/stupidity
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 10:38 am
Here's my present wish/please help list: (subject to change hourly Smile
1) have fetchall show the contents of my primary news forum on top (i.e. before it shows the forums themselves). I am using the fetchall portal.php example, and it has been renamed index.php in my root

2) have the banners appear on the fetchall page - modifications have now been made to the overall_header.tpl, footer, etc. - i can happily post the code or the entire mod - it is Neil Chr. Denmark's mod. I know you highly recommended phpads, and if you feel very very strongly and feel they will integrate easier than i will remove the banner mod i put in, it's just the install on phpads looked like a disaster to me.

3) change the colors of the fetchall page to reflect the board's colors, or even better, to match whatever is in the user's profile, and the board default if the user does not have a preference or is a guest

4) have a home button appear on the top of the forums, and have a menu appear on the fetch all page that mirrors the forums menu choices

5) optomize fetch and the header (overall?) by doing that .css mod you mentioned, where i cut a lot of text but then everything went screwy.

geez, i sure want a lot Smile and did i mention, i would like google to not barf when it sees the site? Smile
Thanks again for any help or direction!
Gary
p.s. using a google tool (i'll happily give the link if interested) i was able to see that google actually indexed the mobile version of the site on at least 2 of it's servers, so i think that means i'll eventually get spidered in some capacity - funny the mobile version was added, and i believe higher than my normal site listing. go figya!
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 1 Jul, 2003 11:06 am
1)

Just switch the blokcks around.

Move the code below above the block that is between the <!-- FORUMS --> comments.

Code:<!-- SPAN PAGES -->
<div align="right">
<span class="gensmall"><b><?php echo phpbb_span_pages($CFG['posts_span_pages_numrows'], $CFG['posts_limit'], $CFG['posts_span_pages_offset'], false); ?></b></span>
</div>
<!-- SPAN PAGES -->

<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 -->

<!-- SPAN PAGES -->
<div align="right">
<span class="gensmall"><b><?php echo phpbb_span_pages($CFG['posts_span_pages_numrows'], $CFG['posts_limit'], $CFG['posts_span_pages_offset'], false); ?></b></span>
</div>
<!-- SPAN PAGES -->


2) I do not know the mod and if you really want you can post it here and see if I can figure it out. But honestly phpadsnew is the way to go. Use the javascript invocation and you can put it anywhere. Even on sites on other servers.

I strongly suggest that you work through the phpadsnew problems before resorting to the mod. PhpAdsNew is simply the best free ad management code there is and you are selling yourself short witha mod.

phpadsnew is standalone. Which means you are not tying it to certain code.

I don't know about the mod but it may not be possible to use out of phpbb without rewriting it.

And if it comes to rewriting it versus figuring out the install of phpadsnew than I strongly recommend the latter.

What prob did you have with phpads? Did it screw up your forums? If so it's probably because you failed to use javascript invocation.

With phpadsnew all you do is paste the javascript invocation code where you want the ads and it works.

3) To make it the same as the board default colors you just need to point it at the same CSS file.

Try replacing this (in fetch):

Code:< link rel="stylesheet" href="/forums/templates/subSilver/subSilver.css" type="text/css" >

With this (removed a slash):

Code:<link rel="stylesheet" href="forums/templates/subSilver/subSilver.css" type="text/css">


You can also make fetch use phpbb templates. But it's tricky.

Here's why:

You are using fetch is a directory above the forum. All the paths need to be altered.

All my pages do this but they do it through a tricky workaround. I have 4 overall_header.tpl files for example. Each with the right path for use in different directories.

I also modified fetch code to use the phpbb pageheader and then made 4 of those to work with the directories.

I then had to do all that with the footers as well.

So it's possible and I know how. But it's kinda messy. In fact shortly I will be overhauling my code and removing the fetch all templating.

One big reason for me is because it hogs system resources. It's a huge factor for me because with over 50,000 visitors a day to this server (for this site and a few others) system resource use needs to be economized.

4) Just add it in whichever .tpl file you want it. Then use the same HTML on the fetch pages.

5) This should be easy. I suspect that you just messed up the path to the css file.

Post your overall_header.tpl file in a single post. Then tell me what the name of the template folder is and I'll post you the code you need.

As to the Google tool I assume you are talking about a "Google dance" tool. I use many of them daily.
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 11:18 am
GEEZ! I BROKE YOUR MOOD! Smile
I keep meaning to ask you - how can i do the quotes the way you do so they're meaningful? I can't seem to quote subsections of replies. Anyway, stupid as I am, i understand I'll be moving that large chunk of code you posted. I want to hardwire in 1 of 2 choices: either have gadget news (forum id 2) act as the ONLY front page news item, so the last 5 posts spill out onto the front page, or i'd be happy to do that with 3 or 4 forums and have only say, the last 3 items from each spill out - is there a relatively easy way to code that? (i imagine there should be)

right now, my ads are working relatively perfectly, however it should be easy enough to disable the mod - i can either select the option within the mod to disable each ad, or i can undo the changes i made - i didn't realize phpads was standalone, so when i didn't see an install file i panicked! if you feel phpadsnew is the way to go, then that's what i'll do - i also imagine it should be able to post to the fetchall front page

css - i had it pointing to the one i put in the main subdirectory, so i'll change that and direct it to templates, i imagine that should fix the problem - doh!

the link rel definatly did not work for me - for all of yesterday it was echoing at the top of each page until i deleted that change - i'll try it again but i'm not optomistic...

I have no idea how to add the home page button - but i bet you do Wink

here's my overall_header.tpl file, i'm using subsilver as the subdirectory - note the only major change to my overall_header at present is that banner mod - again, if you think it will muck things up, even disabled, then i'll remove and undo the changes. thanks as always! Smile
<!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" -->
<style type="text/css">
<!--
/*
The original subSilver Theme for phpBB version 2+
Created by subBlue design
http://www.subBlue.com

NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
theme administration centre. When you have finalised your style you could cut the final CSS code
and place it in an external file, deleting this section to save bandwidth.
*/

/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
background-color: {T_BODY_BGCOLOR};
scrollbar-face-color: {T_TR_COLOR2};
scrollbar-highlight-color: {T_TD_COLOR2};
scrollbar-shadow-color: {T_TR_COLOR2};
scrollbar-3dlight-color: {T_TR_COLOR3};
scrollbar-arrow-color: {T_BODY_LINK};
scrollbar-track-color: {T_TR_COLOR1};
scrollbar-darkshadow-color: {T_TH_COLOR1};
}

/* General font families for common tags */
font,th,td,p { font-family: {T_FONTFACE1} }
a:link,a:active,a:visited { color : {T_BODY_LINK}; }
a:hover { text-decoration: underline; color : {T_BODY_HLINK}; }
hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;}

/* This is the border line & background colour round the entire page */
.bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; }

/* This is the outline round the main forum tables */
.forumline { background-color: {T_TD_COLOR2}; border: 2px {T_TH_COLOR2} solid; }

/* Main table cell colours and backgrounds */
td.row1 { background-color: {T_TR_COLOR1}; }
td.row2 { background-color: {T_TR_COLOR2}; }
td.row3 { background-color: {T_TR_COLOR3}; }

/*
This is for the table cell above the Topics, Post & Last posts on the index.php page
By default this is the fading out gradiated silver background.
However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
background-color: {T_TD_COLOR2};
background-image: url(templates/subSilver/images/{T_TH_CLASS3});
background-repeat: repeat-y;
}

/* Header cells - the blue and silver gradient backgrounds */
th {
color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold;
background-color: {T_BODY_LINK}; height: 25px;
background-image: url(templates/subSilver/images/{T_TH_CLASS2});
}

td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
background-image: url(templates/subSilver/images/{T_TH_CLASS1});
background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px;
}

/*
Setting additional nice inner borders for the main table cells.
The names indicate which sides the border will be on.
Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
height: 29px;
border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px;
}
td.row3Right,td.spaceRow {
background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid;
}

th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; }
th.thTop { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }

/* The largest text used in the index page title and toptic title etc. */
.maintitle {
font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
}

/* General text */
.gen { font-size : {T_FONTSIZE3}px; }
.genmed { font-size : {T_FONTSIZE2}px; }
.gensmall { font-size : {T_FONTSIZE1}px; }
.gen,.genmed,.gensmall { color : {T_BODY_TEXT}; }
a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; }

/* The register, login, search etc links at the top of the page */
.mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} }
a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; }
a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }

/* Forum category titles */
.cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}}
a.cattitle { text-decoration: none; color : {T_BODY_LINK}; }
a.cattitle:hover{ text-decoration: underline; }

/* Forum title: Text and link to the forums used in: index.php */
.forumlink { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; }
a.forumlink { text-decoration: none; color : {T_BODY_LINK}; }
a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }

/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
a.nav { text-decoration: none; color : {T_BODY_LINK}; }
a.nav:hover { text-decoration: underline; }

/* titles for the topics: could specify viewed link colour too */
.topictitle,h1,h2 { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; }
a.topictitle:link { text-decoration: none; color : {T_BODY_LINK}; }
a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.topictitle:hover { text-decoration: underline; color : {T_BODY_HLINK}; }

/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};}

/* Location, number of posts, post date etc */
.postdetails { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; }

/* The content of the posts (body of text) */
.postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
a.postlink:link { text-decoration: none; color : {T_BODY_LINK} }
a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}}

/* Quote & Code blocks */
.code {
font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2};
background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%;
background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

/* Copyright and bottom info */
.copyright { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;}
a.copyright { color: {T_FONTCOLOR1}; text-decoration: none;}
a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;}

/* Form elements */
input,textarea, select {
color : {T_BODY_TEXT};
font: normal {T_FONTSIZE2}px {T_FONTFACE1};
border-color : {T_BODY_TEXT};
}

/* The text input fields background colour */
input.post, textarea.post, select {
background-color : {T_TD_COLOR2};
}

input { text-indent : 2px; }

/* The buttons used for bbCode styling in message post */
input.button {
background-color : {T_TR_COLOR1};
color : {T_BODY_TEXT};
font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1};
}

/* The main submit button option */
input.mainoption {
background-color : {T_TD_COLOR1};
font-weight : bold;
}

/* None-bold submit button */
input.liteoption {
background-color : {T_TD_COLOR1};
font-weight : normal;
}

/* This is the line in the posting page which shows the rollover
help line. This is actually a text box, but if set to be the same
colour as the background no one will know Wink
*/
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }

/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/subSilver/formIE.css");
-->
</style>
<!-- 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="{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
 
Craven de Kere
 
  1  
Reply Tue 1 Jul, 2003 11:28 am
Ask about the forum use things on the forum help board and if nobody else answers I'll take it up. I am slacking and gotta go back to work soon.

To configure which forums get fetched you need to enter values here:
Code:
// 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();


What you want to do is put the forum ID between the ( and ) on the last line of that block.

Yup, I think phpadsnew is the way to go. Installation should be pretty easy but you'll need a new database for it. And yes, you can use it on fetch. Like I said you can use it just about anywhere.

As to the home page button it's just HTML. What kind of button do you want?

Here is the overall_header.tpl that you should use. Note taht if you are changing colors etc through the admin panel it will no longer work. To change colors etc in the future you should edit your CSS file.

Code:
<!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="{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 11:30 am
thanks CdK!
I don't want you to get into trouble for slacking, so i'll do my best to digest this info - thanks!
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 12:08 pm
YIPPEEEE! It's coming along!
I don't know why yesterday all i kept getting were ref link= echoed on the screen, but today it's working - yippee!

okay, when the time comes for me to customize, i'll play with the subsilver.css file (or better would likely be to create a new .css file so subsilver will always be the backup)

Next goal: remove the forum listings from the front page (i.e. instead of showing all the forums, wait until the user selects the forums), get rid of that page indicator at the top (that shows up to 11 pages from gadgetnews), and add the home button to the board (i will look at overall)header.tpl to see if there are guidelines there), and then potentially copy that code into the fetch page) - that's the way to do it, right?

my other task is to undo the hour or 2 of ad management i installed today - what can i say, i was antsy Smile
Craven, thank you again so much for the help - now the site is stable and really coming along!
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 1 Jul, 2003 12:12 pm
If you want you can make the fetch page just display one category of your forum structure.

I just removed the whole forum block altogether on this site.

I am not sure I understand one of your requests, do you want to remove the pagination?

Lastly as to the home button I think I may be getting what you want. Do you want a link and an image to your home page up with the faq, search, pm, log in etc links?
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 12:18 pm
i'm STARTING to get an inkling about fetch. i was able to comment out the forums, and then i put them back as i have no header...yet. I plan to copy the guts from overall_header.tpl and put it at the top of fetch - unless that's going to screw things up royally. by doing that, i would hope to have the first page look more like the rest, i.e. my logo and text at the top, and then yes, that menu that says faq, search, etc. - although i would like a home button so i could click on it and go back to the main page, rather than being in a forums subdirectory and needing to reload the site to go there.
as for the page number, i was able to get my news page to post (yippee) but it gives the option to show that entire forum, i.e. 11 pages - i'd much rather just have the forum's last 5 or so posts listed. that goto page option also scrolls the first of the gadget news down.

i did a search in fetch, and did not find "goto" anywhere, so it must be in a php module somplace - ack! i'm sure there's an easy way to comment that bad boy out in the index.

all in all, the site is shaping up. the site's colors keep reverting back to subSilver, but that's fine by me - makes life easier, and i think potentially more readable.
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 1 Jul, 2003 12:41 pm
Id you want to get rid of the pagination just delete (or comment out) the two blocks that look like this:

Code:<!-- SPAN PAGES -->
<div align="right">
<span class="gensmall"><b><?php echo phpbb_span_pages($CFG['posts_span_pages_numrows'], $CFG['posts_limit'], $CFG['posts_span_pages_offset'], false); ?></b></span>
</div>
<!-- SPAN PAGES -->


If you really want the fetch pages to use your overall header what you need to do is this:

A) copy the overall_header.tpl you will need two of them.

B) Rename the one you want to use for fetch to overall_header2.tpl

C) Edit overall_header2.tpl to correct all the link paths.

D) copy includes/page_header.php

E) name the new one page_header2.php

Repeat the same for the footer TPL and PHP files.

Once all the paths are correct you I can show you how to make fetch all use the forum templating. You will have to redo all the HTML in fetch though.

Of course, it's easier just to add the HTML from the header and footer TPL files of your forum to the fetch page.

In the new version of A2K I will be eliminating the use of the templating engine on fetch pages, I use PHP includes to achieve the templating that I want.
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 01:01 pm
as we speak i'm waiting for phpadsnew to finish being copied to my server Smile

i'm fine with avoiding the template files and coding directly into fetch - i tried that with my overall_header file and it was a disaster - none of the variables made it over. i changed the includes in fetchall from _once (i.e. i deleted the _once part)
umm, any suggestions?
btw - i'll try commenting out the span part as soon as ws-ftp is clear again
Smile
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 1 Jul, 2003 01:03 pm
The variables won't work because the template engine isn't called. You'll need to hard code them in and some simply won't work.
0 Replies
 
gadgetaddict
 
  1  
Reply Tue 1 Jul, 2003 01:07 pm
hmm - i seem to have misplaced one of your responses - i do in fact have a graphic for a home page icon - i had it when i had the phpbbfm board up - it's called mini_home or something to that effect - so what i'm really interested in (among other things, of course) is to add that to my menu bar above in the typical forum pages, and then add that hard coding (the menu above) to the fetch page - whatever makes it easier
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
 
  1. Forums
  2. » Please sir - how can i configure my new vanilla phpbb board?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/24/2024 at 11:58:20