1 jjer Oct 21, 2008 12:35
3 jjer Oct 22, 2008 09:39
Hi Afwas,
I checked your advice and could not verify. Also, when I click in a post "read more" the appearence comes correct. May be a post occured something?
As you suggested, I will copyx and past in the following the skin index.main.php.
Thanks for any tipp:
<?php
/**
* This is the main/default page template.
*
* For a quick explanation of b2evo 2.0 skins, please start here:
* {@link http://manual.b2evolution.net/Skins_2.0}
*
* It is used to display the blog when no specific page template is available to handle the request.
*
* @package evoskins
* @subpackage asevo
*
* @version $Id: index.main.php,v 1.8 2007/11/29 22:47:13 fplanque Exp $
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
// This is the main template; it may be used to display very different things.
// Do inits depending on current $disp:
skin_init( $disp );
// -------------------------- HTML HEADER INCLUDED HERE --------------------------
skin_include( '_html_header.inc.php' );
// Note: You can customize the default HTML header by copying the
// _html_header.inc.php file into the current skin folder.
// -------------------------------- END OF HEADER --------------------------------
?>
<div class="head_zone">
<div class="inner_wrapper">
<div class="PageTop">
<?php
// Display container and contents:
skin_container( NT_('Page Top'), array(
// The following params will be used as defaults for widgets included in this container:
'block_start' => '<div class="$wi_class$">',
'block_end' => '</div>',
'block_display_title' => false,
'list_start' => '<ul>',
'list_end' => '</ul>',
'item_start' => '<li>',
'item_end' => '</li>',
) );
?>
</div>
</div>
</div>
<div class="nav_zone">
<div class="inner_wrapper">
<div class="top_menu">
<ul>
<?php
// ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
// Note: this container is designed to be a single <ul> list
skin_container( NT_('Menu'), array(
// The following params will be used as defaults for widgets included in this container:
'block_start' => '',
'block_end' => '',
'block_display_title' => false,
'list_start' => '',
'list_end' => '',
'item_start' => '<li>',
'item_end' => '</li>',
) );
// ----------------------------- END OF "Menu" CONTAINER -----------------------------
?>
</ul>
</div>
</div>
</div>
<div class="main_zone">
<div class="inner_wrapper">
<div class="evo_title_area">
<?php
// Display container and contents:
skin_container( NT_('Header'), array(
// The following params will be used as defaults for widgets included in this container:
'block_start' => '<div class="$wi_class$">',
'block_end' => '</div>',
'block_title_start' => '<h2>',
'block_title_end' => '</h2>',
) );
?>
</div>
<div class="evo_main_area">
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
messages( array(
'block_start' => '<div class="action_messages">',
'block_end' => '</div>',
) );
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
item_prevnext_links( array(
'block_start' => '<table class="prevnext_post"><tr>',
'prev_start' => '<td>',
'prev_end' => '</td>',
'next_start' => '<td class="right">',
'next_end' => '</td>',
'block_end' => '</tr></table>',
) );
// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
?>
<?php
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
request_title( array(
'title_before'=> '<h2 class="evo_req_title">',
'title_after' => '</h2>',
'title_none' => '',
'glue' => ' - ',
'title_single_disp' => false,
'format' => 'htmlbody',
) );
// ------------------------------ END OF REQUEST TITLE -----------------------------
?>
<!-- =================================== START OF MAIN AREA =================================== -->
<?php // ------------------------------------ START OF POSTS ----------------------------------------
// Display message if no post:
display_if_empty();
while( $Item = & mainlist_get_item() )
{ // For each blog post, do everything below up to the closing curly brace "}"
?>
<div class="evo_post" lang="<?php $Item->lang() ?>">
<?php
$Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
$Item->anchor(); // Anchor for permalinks to refer to.
?>
<?php
$Item->edit_link( array( // Link to backoffice for editing
'before' => ' ',
'after' => ' ',
'class' => 'floatright small'
) );
?>
<h1 class="evo_post_title"><?php $Item->title(); ?></h1>
<div class="evo_post_head">
<?php
$Item->permanent_link( array(
'text' => '#icon#',
) );
$Item->issue_date( array(
'before' => ' ',
'after' => ' ',
'date_format' => '#',
) );
$Item->issue_time( array(
'time_format' => 'H:i',
) );
$Item->categories( array(
'before' => ', '.T_('Categories').': ',
'after' => ' ',
'include_main' => true,
'include_other' => true,
'include_external'=> true,
'link_categories' => true,
) );
// List all tags attached to this post:
$Item->tags( array(
'before' => ', '.T_('Tags').': ',
'after' => ' ',
'separator' => ', ',
) );
?>
</div>
<?php
// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
skin_include( '_item_content.inc.php', array(
'image_size' => 'fit-400x320',
) );
// Note: You can customize the default item feedback by copying the generic
// /skins/_item_feedback.inc.php file into the current skin folder.
// ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
?>
<div class="evo_post_foot">
<?php
// Link to comments, trackbacks, etc.:
$Item->feedback_link( array(
'type' => 'comments',
'link_before' => '',
'link_after' => '',
'link_text_zero' => '#',
'link_text_one' => '#',
'link_text_more' => '#',
'link_title' => '#',
'use_popup' => false,
) );
?>
<?php
// Link to comments, trackbacks, etc.:
$Item->feedback_link( array(
'type' => 'trackbacks',
'link_before' => ' • ',
'link_after' => '',
'link_text_zero' => '#',
'link_text_one' => '#',
'link_text_more' => '#',
'link_title' => '#',
'use_popup' => false,
) );
?>
</div>
<?php
// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
skin_include( '_item_feedback.inc.php', array(
'before_section_title' => '<h4>',
'after_section_title' => '</h4>',
) );
// Note: You can customize the default item feedback by copying the generic
// /skins/_item_feedback.inc.php file into the current skin folder.
// ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
?>
<?php
locale_restore_previous(); // Restore previous locale (Blog locale)
?>
</div>
<?php } // ---------------------------------- END OF POSTS ------------------------------------ ?>
<?php
// -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) --------------------
mainlist_page_links( array(
'block_start' => '<p class="center"><strong>',
'block_end' => '</strong></p>',
'links_format' => '$prev$ :: $next$',
'prev_text' => '<< '.T_('Previous'),
'next_text' => T_('Next').' >>',
) );
// ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
?>
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include( '$disp$', array(
'disp_posts' => '', // We already handled this case above
'disp_single' => '', // We already handled this case above
'disp_page' => '', // We already handled this case above
) );
// Note: you can customize any of the sub templates included here by
// copying the matching php file into your skin directory.
// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
?>
</div>
<!-- =================================== START OF SIDEBAR =================================== -->
<div class="evo_sidebar">
<?php
// Display container contents:
skin_container( NT_('Sidebar'), array(
// The following (optional) params will be used as defaults for widgets included in this container:
// This will enclose each widget in a block:
'block_start' => '<div class="evo_side_item $wi_class$">',
'block_end' => '</div>',
// This will enclose the title of each widget:
'block_title_start' => '<h3>',
'block_title_end' => '</h3>',
// If a widget displays a list, this will enclose that list:
'list_start' => '<ul>',
'list_end' => '</ul>',
// This will enclose each item in a list:
'item_start' => '<li>',
'item_end' => '</li>',
// This will enclose sub-lists in a list:
'group_start' => '<ul>',
'group_end' => '</ul>',
) );
?>
<div class="evo_side_credits">
<p class="center"><!-- Please help us promote b2evolution and leave this link on your blog. -->
<a href="http://b2evolution.net/" title="b2evolution: next generation blog software">
<img src="../../rsc/img/powered-by-b2evolution-120t.gif" alt="powered by b2evolution free blog software"
title="b2evolution: next generation blog software" width="120" height="32" border="0" />
</a></p>
</div>
</div>
<div class="clear"><img src="<?php echo $rsc_url; ?>img/blank.gif" width="1" height="1" alt="" /></div>
</div>
</div>
<?php
// ------------------------- BODY FOOTER INCLUDED HERE --------------------------
//-> skin_include( '_body_footer.inc.php' );
// Note: You can customize the default BODY footer by copying the
// _body_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>
<?php
// ------------------------- HTML FOOTER INCLUDED HERE --------------------------
//-> skin_include( '_html_footer.inc.php' );
// Note: You can customize the default HTML footer by copying the
// _html_footer.inc.php file into the current skin folder.
// ------------------------------- END OF FOOTER --------------------------------
?>
4 tilqicom Oct 22, 2008 13:33
hi there jjer..
i'd say it is an unclosed div in the posts.main.php if you were using a skin using posts.main.php and single.main.php, however it seems you are using a modified 'asevo' skin that has only one file, index.main.php am i right ?
instead of adding <inner_wrapper> on top of each header container, insert it at the very top of the first container then close the div for the inner_wrapper at the end..
and do validate your skin it seems you have an unclosed div somewhere..
5 jjer Oct 22, 2008 15:50
"tilqicom" wrote:
hi there jjer..
i'd say it is an unclosed div in the posts.main.php if you were using a skin using posts.main.php and single.main.php, however it seems you are using a modified 'asevo' skin that has only one file, index.main.php am i right ?
Right :-)
"tilqicom" wrote:
instead of adding <inner_wrapper> on top of each header container, insert it at the very top of the first container then close the div for the inner_wrapper at the end..
and do validate your skin it seems you have an unclosed div somewhere..
Hi,
I don´t know. I changed as advised, no difference. I validated, no error for open DIV´s. I even tried to use different skins: Same behaviour. This means for me, the problem is not in the skin CSS or HTLM. But where to look?
6 jjer Oct 31, 2008 11:58
Shame on me - I went again manually through the source and it was an unclosed DIV! ( I am wondering why Dreamseaver CS3 does not find it when checking..)
Thanks for all your help and tips.
best regards
JJer
Hi JJer,
Your <div class="evo_sidebar"> in the (wrong) mainpage is child of <div class="evo_main_ara"> where it should be child of <div class="inner_wrapper">.
It looks like moving the complete <div class="evo_sidebar"> to the appropriate leve cures your problem.
If you want more advise I'd need to see some of your skin's code.
Good luck