1 marmalade_kat Aug 17, 2005 17:24
3 marmalade_kat Aug 17, 2005 18:31
personman wrote:
Your post and user account got lost when the forum moved over the weekend. They had to restore from a database backup that was before your signed on and we started our thread. Sorry about that. The migration is complete, so it shouldn't happen again.
Yes, mistakes are easy to do as I can attest to. Thanx for explaining.
Can you give a link to your site again, and tell me in what way your _main.php is messed up. And before I tell you what code to use, do you want your logo to replace the title of the site? Do you want the logo to be a link to your blog (for quick access back to the front page of the blog)? What's the url for the image you want to use as the logo?
<?php
/**
* This is the main template. It displays the blog.
*
* However this file is not meant to be called directly.
* It is meant to be called automagically by b2evolution.
* To display a blog, you should call a stub file instead, for example:
* /blogs/index.php or /blogs/blog_b.php
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2004 by Francois PLANQUE - {@link http://fplanque.net/}
*
* @package evoskins
* @subpackage helsinki
*/
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php locale_charset() ?>" />
<title>
<?php
$Blog->disp('name', 'htmlhead');
arcdir_title( ' - ', 'htmlhead' );
last_comments_title( ' - ', 'htmlhead' );
profile_title( ' - ', 'htmlhead' );
single_cat_title( ' - ', 'htmlhead' );
single_month_title( ' - ', 'htmlhead' );
single_post_title( ' - ', 'htmlhead' );
stats_title( ' - ', 'htmlhead' );
?>
</title>
<base href="<?php skinbase(); // Base URL for this skin. You need this to fix relative links! ?>" />
<meta name="description" content="<?php $Blog->disp( 'shortdesc', 'htmlattr' ); ?>" />
<meta name="keywords" content="<?php $Blog->disp( 'keywords', 'htmlattr' ); ?>" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<meta http-equiv="imagetoolbar" content="no" />
<?php switch( $disp ) {
case 'profile':
case 'stats':
echo '<meta name="robots" content="noindex, nofollow" />'."\n";
break;
case 'arcdir':
echo '<meta name="robots" content="noindex, follow" />'."\n";
break;
}
?>
<meta name="generator" content="b2evolution <?php echo $b2_version ?>" /> <!-- Please leave this for stats -->
<link rel="alternate" type="text/xml" title="RDF" href="<?php $Blog->disp( 'rdf_url', 'raw' ) ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php $Blog->disp( 'rss_url', 'raw' ) ?>" />
<link rel="alternate" type="text/xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />
<link rel="pingback" href="<?php $Blog->disp( 'pingback_url', 'raw' ) ?>" />
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
<link rel="stylesheet" type="text/css" media="screen" href="helsinki.css" />
</head>
<body>
<div class="pageHeader">
<?php require( dirname(__FILE__).'/_bloglist.php'); // BLOG LIST INCLUDED HERE ?>
<p class="center"> <br />
<a href="http://www.myblog.com/blogs/index.php?blog=1" title="myblog.com home"><img src="http://www.myblog.com/blogs/skins/helskinki/img/railing_0242_1_57_LogoPlain_1.jpg" border="0"></a><br />
~~~~~~~~~
Bolded area is my lame attempt at correcting where a logo image might go in kelskinki main.php
And before I tell you what code to use, do you want your logo to replace the title of the site? Do you want the logo to be a link to your blog (for quick access back to the front page of the blog)?
Yes to both. A sample entry would be fine and I can insert the url codes.
4 personman Aug 17, 2005 18:47
You still haven't posted a link. Without that I can't see what your code is generating and I can't make a very good guess about what you need to change.
5 marmalade_kat Aug 17, 2005 20:06
personman wrote:
You still haven't posted a link. Without that I can't see what your code is generating and I can't make a very good guess about what you need to change.
I was hoping to avoid posting a link. Sending you a pm.
6 personman Aug 17, 2005 20:15
Got it. It looks good to me. Is there something wrong with the way it looks right now?
7 marmalade_kat Aug 17, 2005 20:42
I appreciate your help nonetheless.
If you didn't see the original, you wouldn't know that the logo is off center (top and bottom). I did a whole bunch of trial and error down through the code on the helsinki.css to get it perfect and now I could kick myself that I hosed up the main.php! :-/
Could you post an original helskinki main.php code page for me, please, so I see what it suppose to look like?
8 personman Aug 17, 2005 20:51
Ok, I think we can fix that. First, where you have
<p class="center"> <br />
take out the <br />
Let me know when that's done and I'll see what I can do with the css.
9 marmalade_kat Aug 17, 2005 21:17
It removed the top border space only as you might have guessed.
How do I put a border back in that will equal out for both top and bottom and frame the logo once again in light blue?
Could you post an original helskinki main.php code page for me, please, so I see what it suppose to look like?
10 personman Aug 17, 2005 21:30
Try putting this in your stylesheet:
.pageHeader img {
padding: 20px;
}
If you want the code for the stock _main.php file, then download the skin again, unzip it and look at the code. [url=http://www.brendoman.com/dbc?skin=helskinki]Here's a link[/url] to my blog using the Helskinki skin.
11 marmalade_kat Aug 17, 2005 22:07
The code worked but the logo went off to the left. When I decreased it from 20 to 5, it went back to the center but the entire border was a little thin. Anything over 5 made it go off center. So I changed the margin and that helped the sides but not for the top and bottom.
12 personman Aug 17, 2005 22:20
You could also change it to look more like this:
.pageHeader img {
padding-top: 15px;
padding-bottom: 15px;
padding-left: 0px;
padding-right: 0px;
}
Now you can edit each value individually. That might help you get it where you want it.
13 marmalade_kat Aug 17, 2005 23:01
It worked well. :)
But one more thing. There is a much bigger space of dark blue between the logo's light blue bottom border and the light blue body. Is there anyway to make that dark blue space thinner?
As for that, is there a way to put an image background in for the whole page instead of a color code while keeping the light blue in the post section?
~~~~~~~~~~~~~~~~~
edit...
Okay, look. I downloaded the main.php as you instructed.
<div class="pageHeader">
<?php require( dirname(__FILE__).'/_bloglist.php'); // BLOG LIST INCLUDED HERE ?>
<h1 id="pageTitle"><?php $Blog->disp('name', 'htmlbody') ?></h1>
</div>
I'm pretty sure this was the original portion that you told me to edit. If this is correct, how does one edit this and put in a logo url just in this portion?
~~~~~~~~~~~~~~~~
And if it isn't, then this is the entire main.php. So you can see for yourself.
<?php
/**
* This is the main template. It displays the blog.
*
* However this file is not meant to be called directly.
* It is meant to be called automagically by b2evolution.
* To display a blog, you should call a stub file instead, for example:
* /blogs/index.php or /blogs/blog_b.php
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2004 by Francois PLANQUE - {@link http://fplanque.net/}
*
* @package evoskins
* @subpackage helsinki
*/
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php locale_charset() ?>" />
<title>
<?php
$Blog->disp('name', 'htmlhead');
arcdir_title( ' - ', 'htmlhead' );
last_comments_title( ' - ', 'htmlhead' );
profile_title( ' - ', 'htmlhead' );
single_cat_title( ' - ', 'htmlhead' );
single_month_title( ' - ', 'htmlhead' );
single_post_title( ' - ', 'htmlhead' );
stats_title( ' - ', 'htmlhead' );
?>
</title>
<base href="<?php skinbase(); // Base URL for this skin. You need this to fix relative links! ?>" />
<meta name="description" content="<?php $Blog->disp( 'shortdesc', 'htmlattr' ); ?>" />
<meta name="keywords" content="<?php $Blog->disp( 'keywords', 'htmlattr' ); ?>" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<meta http-equiv="imagetoolbar" content="no" />
<?php switch( $disp ) {
case 'profile':
case 'stats':
echo '<meta name="robots" content="noindex, nofollow" />'."\n";
break;
case 'arcdir':
echo '<meta name="robots" content="noindex, follow" />'."\n";
break;
}
?>
<meta name="generator" content="b2evolution <?php echo $b2_version ?>" /> <!-- Please leave this for stats -->
<link rel="alternate" type="text/xml" title="RDF" href="<?php $Blog->disp( 'rdf_url', 'raw' ) ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php $Blog->disp( 'rss_url', 'raw' ) ?>" />
<link rel="alternate" type="text/xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />
<link rel="pingback" href="<?php $Blog->disp( 'pingback_url', 'raw' ) ?>" />
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
<link rel="stylesheet" type="text/css" media="screen" href="helsinki.css" />
</head>
<body>
<div class="pageHeader">
<?php require( dirname(__FILE__).'/_bloglist.php'); // BLOG LIST INCLUDED HERE ?>
<h1 id="pageTitle"><?php $Blog->disp('name', 'htmlbody') ?></h1>
</div>
<div class="bPosts">
<h2>
<?php
arcdir_title();
last_comments_title();
profile_title();
single_cat_title();
single_month_title();
single_post_title();
stats_title();
?>
</h2>
<?php // START POSTS
if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post
if( isset($MainList) ) while( $Item = $MainList->get_item() ) {
locale_temp_switch( $Item->locale ); // Temporarily switch to post locale
$MainList->date_if_changed(); // display post date if it changed
$Item->anchor(); // Anchor for permalinks to refer to
?>
<div class="bPost" lang="<?php $Item->lang() ?>">
<h3 class="bTitle"><?php $Item->title(); ?></h3>
<div class="bSmallHead">
<a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><img src="img/icon_minipost.gif" alt="<?php echo T_('Permalink')
?>" width="12" height="9" class="middle" /></a>
<?php
$Item->issue_time();
echo ', ', T_('Categories'), ': ';
$Item->categories();
echo ', ';
the_wordcount();
echo ' ', T_('words');
?>
</div>
<div class="bText">
<?php
$Item->content();
link_pages("<br />Pages: ","<br />","number");
?>
</div>
<div class="bSmallPrint">
<a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>" class="permalink_right"><img src="img/chain_link.gif" alt="<?php
echo T_('Permalink') ?>" width="14" height="14" border="0" class="middle" /></a>
<?php $Item->feedback_link( 'comments' ) // Link to comments ?>
<?php $Item->feedback_link( 'trackbacks', ' • ' ) // Link to trackbacks ?>
<?php $Item->feedback_link( 'pingbacks', ' • ' ) // Link to trackbacks ?>
<?php $Item->trackback_rdf() // trackback autodiscovery information ?>
</div>
<?php // START OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC.
$disp_comments = 1; // Display comments if requested
$disp_comment_form = 1; // Display comments form if requested
if ( get_bloginfo( 'allowtrackbacks' ) == 1 ) {
$disp_trackbacks = 1; // Display trackbacks if requested
$disp_trackback_url = 1; // Display trackback URL if requested
} else {
$disp_trackbacks = 0; // or don't
$disp_trackback_url = 0; // or don't
}
if ( get_bloginfo( 'allowpingbacks' ) == 1 ) {
$disp_pingbacks = 1; // Display pingbacks if requested
} else {
$disp_pingbacks = 0;
}
require( dirname(__FILE__).'/_feedback.php' );
locale_restore_previous(); // Restore previous locale (Blog locale)
?>
</div>
<?php } // ---------------------------------- END OF POSTS ------------------------------------ ?>
<p class="center"><strong>
<?php posts_nav_link(); ?>
<?php
// previous_post( '<p class="center">%</p>' );
// next_post( '<p class="center">%</p>' );
?>
</strong></p>
<?php // START OF INCLUDES FOR LAST COMMENTS, STATS, ARCHIVE DIRECTORY, PROFILE, FLIGHT LOG
switch( $disp ) {
case 'arcdir': // this includes the archive directory if requested
require( dirname(__FILE__).'/_arcdir.php');
break;
case 'comments': // this includes the last comments if requested:
require( dirname(__FILE__).'/_lastcomments.php' );
break;
case 'profile': // this includes the profile form if requested
require( dirname(__FILE__).'/_profile.php');
break;
case 'stats': // this includes the statistics if requested:
require( dirname(__FILE__).'/_stats.php');
break;
default:
} ?>
</div>
<div class="bSideBar">
<div class="bSideItem">
<h3><?php $Blog->disp('name', 'htmlbody') ?></h3>
<p><?php $Blog->disp('longdesc', 'htmlbody'); ?></p>
<p class="center"><?php posts_nav_link(); ?></p>
<!--?php next_post(); // activate this if you want a link to the next post in single page mode ?-->
<!--?php previous_post(); // activate this if you want a link to the previous post in single page mode ?-->
<ul>
<li><a href="<?php $Blog->disp( 'staticurl', 'raw' ) ?>"><strong><?php echo T_('Recently') ?></strong></a> <span class="dimmed"><?php echo T_('(cached)')
?></span></li>
<li><a href="<?php $Blog->disp( 'dynurl', 'raw' ) ?>"><strong><?php echo T_('Recently') ?></strong></a> <span class="dimmed"><?php echo T_('(no cache)')
?></span></li>
</ul>
<?php require( dirname(__FILE__)."/_calendar.php"); // CALENDAR INCLUDED HERE ?>
<ul>
<li><a href="<?php $Blog->disp( 'lastcommentsurl', 'raw' ) ?>" title="Read the latest comments"><strong><?php echo T_('Last comments') ?></strong></a></li>
<li><a href="<?php $Blog->disp( 'blogstatsurl', 'raw' ) ?>" title="See some viewing statistics"><strong><?php echo T_('Stats') ?></strong></a></li>
</ul>
</div>
<div class="bSideItem">
<h3 class="sideItemTitle"><?php echo T_('Search') ?></h3>
<form name="SearchForm" method="get" class="search" action="<?php $Blog->disp( 'blogurl', 'raw' ) ?>">
<input type="text" name="s" size="30" value="<?php echo htmlspecialchars($s) ?>" class="SearchField" /><br />
<input type="radio" name="sentence" value="AND" id="sentAND" <?php if( $sentence=='AND' ) echo 'checked="checked" ' ?>/><label for="sentAND"><?php
echo T_('All Words') ?></label>
<input type="radio" name="sentence" value="OR" id="sentOR" <?php if( $sentence=='OR' ) echo 'checked="checked" ' ?>/><label for="sentOR"><?php echo
T_('Some Word') ?></label>
<input type="radio" name="sentence" value="sentence" id="sentence" <?php if( $sentence=='sentence' ) echo 'checked="checked" ' ?>/><label
for="sentence"><?php echo T_('Entire phrase') ?></label>
<input type="submit" class="button" name="submit" value="<?php echo T_('Search') ?>" />
<input type="reset" class="button" value="<?php echo T_('Reset form') ?>" />
</form>
</div>
<div class="bSideItem">
<h3><?php echo T_('Categories') ?></h3>
<form action="<?php $Blog->disp( 'blogurl', 'raw' ) ?>" method="get">
<?php require( dirname(__FILE__).'/_categories.php' ); // CATEGORIES INCLUDED HERE ?>
<br />
<?php if( $cat_line_checkbox ) { ?>
<input type="submit" class="button" value="<?php echo T_('Get selection') ?>" />
<input type="reset" class="button" value="<?php echo T_('Reset form') ?>" />
<?php } ?>
</form>
</div>
<div class="bSideItem">
<h3><?php echo T_('Archives') ?></h3>
<ul>
<?php require( dirname(__FILE__).'/_archives.php' ); // ARCHIVES LIST INCLUDED HERE ?>
<li><a href="<?php $Blog->disp( 'arcdirurl', 'raw' ) ?>" title="Visit the complete archives"><?php echo T_('more...') ?></a></li>
</ul>
</div>
<?php if( ! $Blog->get('force_skin') ) { // if skin switching is enabled
require( dirname(__FILE__).'/_skinslist.php'); // SKINS LIST INCLUDED HERE
} ?>
<div class="bSideItem">
<h3><?php echo T_('Linkblog') ?></h3>
<?php require( dirname(__FILE__).'/_linkblog.php' ); // LINKBLOG INCLUDED HERE ?>
</div>
<?php if( false ) { ?>
<?php if (! $stats) { ?>
<div class="bSideItem">
<h3><?php echo T_('Top Referers') ?></h3>
<?php refererList(5, 'global', 0, 0, 'no', 'baseDomain', ($blog > 1) ? $blog : ''); ?>
<ul>
<?php if( count( $res_stats ) ) foreach( $res_stats as $row_stats ) { ?>
<li><a href="<?php stats_referer() ?>" rel="nofollow"><?php stats_basedomain() ?></a></li>
<?php } // End stat loop ?>
<li><a href="<?php $Blog->disp( 'blogstatsurl', 'raw' ) ?>" title="See some viewing statistics"><?php echo T_('more...') ?></a></li>
</ul>
</div>
<div class="bSideItem">
<h3><?php echo T_('Recent Referers') ?></h3>
<?php refererList(5, 'global', 0, 0, 'no', '', ($blog > 1) ? $blog : ''); ?>
<ul>
<?php if( count( $res_stats ) ) foreach( $res_stats as $row_stats ) { ?>
<li><a href="<?php stats_referer() ?>" rel="nofollow"><?php stats_basedomain() ?></a></li>
<?php } // End stat loop ?>
<li><a href="<?php $Blog->disp( 'blogstatsurl', 'raw' ) ?>" title="See some viewing statistics"><?php echo T_('more...') ?></a></li>
</ul>
</div>
<?php } ?>
<?php } ?>
<div class="bSideItem">
<h3><?php echo T_('Account') ?></h3>
<ul>
<?php
user_login_link( '<li>', '</li>' );
user_register_link( '<li>', '</li>' );
user_admin_link( '<li>', '</li>' );
user_profile_link( '<li>', '</li>' );
user_logout_link( '<li>', '</li>' );
?>
</ul>
</div>
<div class="bSideItem">
<h3><?php echo T_('Syndicate this blog') ?> </h3>
<ul>
<li>RSS 0.92: <a href="<?php $Blog->disp( 'rss_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>, <a href="<?php $Blog->disp( 'comments_rss_url', 'raw' )
?>"><?php echo T_('Comments') ?></a></li>
<li>RSS 1.0: <a href="<?php $Blog->disp( 'rdf_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>, <a href="<?php $Blog->disp( 'comments_rdf_url', 'raw' )
?>"><?php echo T_('Comments') ?></a></li>
<li>RSS 2.0: <a href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>, <a href="<?php $Blog->disp( 'comments_rss2_url', 'raw' )
?>"><?php echo T_('Comments') ?></a></li>
<li>Atom 0.3: <a href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>, <a href="<?php $Blog->disp( 'comments_atom_url', 'raw' )
?>"><?php echo T_('Comments') ?></a></li>
</ul>
<ul>
<li><a href="http://fplanque.net/Blog/devblog/2004/01/10/p456" title="External - English"><?php echo T_('What is RSS?') ?></a></li>
</ul>
</div>
<p class="center">powered by<br />
<a href="http://b2evolution.net/" title="b2evolution home">B2/Evolution</a><br /></p>
</div>
<p class="baseline">
<a href="http://validator.w3.org/check?uri=referer" title="Valid XHTML 1.0!">Valid XHTML</a> ||
<a href="http://jigsaw.w3.org/css-validator/" title="Valid CSS!">Valid CSS</a> ||
<a href="http://feedvalidator.org/check.cgi?url=<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" title="Valid RSS 2.0!">Valid RSS</a> ||
<a href="http://feedvalidator.org/check.cgi?url=<?php $Blog->disp( 'atom_url', 'raw' ) ?>" title="Valid Atom 0.3!">Valid Atom</a>
<?php
log_hit(); // log the hit on this page
debug_info(); // output debug info if requested
?>
</p>
</body>
</html>
Your post and user account got lost when the forum moved over the weekend. They had to restore from a database backup that was before your signed on and we started our thread. Sorry about that. The migration is complete, so it shouldn't happen again.
Can you give a link to your site again, and tell me in what way your _main.php is messed up. And before I tell you what code to use, do you want your logo to replace the title of the site? Do you want the logo to be a link to your blog (for quick access back to the front page of the blog)? What's the url for the image you want to use as the logo?