Recent Topics

1 Oct 12, 2009 20:43    

My b2evolution Version: Not Entered

Hi,

when I write a new article it appears like that:

=======================
Titel

of "name of author" E-Mail-Symbol

Text

Kategories:
Date, Permalink
=======================

I would like it that way:

=======================
Titel

Text
=======================

I found that it has to do with the skin, I use: "pixelgreen"
I found the file "item_block.inc.php" which I suppose is the template for those articles...

The code of that file is:

<?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}
 *
 * The main page template is used to display the blog when no specific page template is available
 * to handle the request (based on $disp).
 *
 * @package evoskins
 * @subpackage pixelgreen
 *
 * @version $Id: index.main.php,v 1.5.4.1 2009/07/22 00:11:10 fplanque Exp $
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

if( version_compare( $app_version, '3.0' ) < 0 )
{ // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
   die( 'This skin is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
}

// 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 generic
// /skins/_html_header.inc.php file into the current skin folder.
// -------------------------------- END OF HEADER --------------------------------
?>

<!-- wrap starts here -->
<div id="wrap">

   <div id="header">
      <div id="header-content">

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

      <?php
         // ------------------------- "Header" CONTAINER EMBEDDED HERE --------------------------
         // 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' => '<h1>',
               'block_title_end'   => '</h1>',
            ) );
         // ----------------------------- END OF "Header" CONTAINER -----------------------------
      ?>

      <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>
         &nbsp;
      </div>

   </div></div>

   <div class="headerphoto"></div>

   <!-- content-wrap starts here -->
   <div id="content-wrap"><div id="content">
      <?php
         // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
         messages( array(
            'block_start' => '<div class="action_messages">',
            'block_end'   => '</div>',
         ) );
         // --------------------------------- END OF MESSAGES ---------------------------------
      ?>
      <?php
         // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
         request_title( array(
               'title_before'=> '<h2>',
               'title_after' => '</h2>',
               'title_none'  => '',
               'glue'        => ' - ',
               'title_single_disp' => false,
               'format'      => 'htmlbody',
            ) );
         // ------------------------------ END OF REQUEST TITLE -----------------------------
      ?>
      <?php
      // ------------------------- SIDEBAR INCLUDED HERE --------------------------
      skin_include( '_sidebar.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 SIDEBAR -----------------------------
      ?>

      <div id="main">
         <?php
         // Go Grab the featured post:
         if( $Item = & get_featured_Item() )
         {   // We have a featured/intro post to display:
            // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
            skin_include( '_item_block.inc.php', array(
                  'feature_block' => true,
                  'content_mode' => 'auto',      // 'auto' will auto select depending on $disp-detail
                  'intro_mode'   => 'normal',   // Intro posts will be displayed in normal mode
                  'item_class'   => 'post featured_post',
                  'image_size'    =>   'fit-400x320',
               ) );
            // ----------------------------END ITEM BLOCK  ----------------------------
         }
         ?>

         <?php
            // --------------------------------- START OF POSTS -------------------------------------
            // Display message if no post:
            display_if_empty();

            while( $Item = & mainlist_get_item() )
            {   // For each blog post:
               // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------
               skin_include( '_item_block.inc.php', array(
                     'content_mode' => 'auto',      // 'auto' will auto select depending on $disp-detail
                     'image_size'    =>   'fit-400x320',
                  ) );
               // ----------------------------END ITEM BLOCK  ----------------------------
            } // ---------------------------------- 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>',
                  'prev_text' => '&lt;&lt;',
                  'next_text' => '&gt;&gt;',
               ) );
            // ------------------------- END OF PREV/NEXT PAGE LINKS -------------------------
         ?>

         <?php
            // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
            //skin_include( '$disp$', array() );
            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>

   <!-- content-wrap ends here -->
   </div></div>

<!-- footer starts here -->
<div id="footer"><div id="footer-content">
   <?php
      // ------------------------- "Footer" CONTAINER EMBEDDED HERE --------------------------
      // Display container and contents:
      skin_container( NT_('Footer'), array(
            // The following params will be used as defaults for widgets included in this container:
            'block_start'       => '<div class="col float-left $wi_class$">',
            'block_end'         => '</div>',
            'block_title_start' => '<h1>',
            'block_title_end'   => '</h1>',
         ) );
      // ----------------------------- END OF "Footer" CONTAINER -----------------------------
   ?>

      <div class="col2 float-right">
      <p>
      Design by: <a href="http://www.styleshout.com/free-templates.php">styleshout</a><br />
      Skin by: <a href="http://www.brendoman.com/dbc">Danny Ferguson</a> / <?php display_param_link( $skinfaktory_links ) ?><br />
      </p>

      </div>

      <p class="baseline">
         <?php
            // Display a link to contact the owner of this blog (if owner accepts messages):
            $Blog->contact_link( array(
                  'before'      => '',
                  'after'       => '',
                  'text'   => T_('Contact'),
                  'title'  => T_('Send a message to the owner of this blog...'),
               ) );
         ?>
         <?php
            // Display footer text (text can be edited in Blog Settings):
            $Blog->footer_text( array(
                  'before'      => ' &bull; ',
                  'after'       => '',
               ) );
         ?>
         <br />
         <?php
            // Display additional credits:
            // If you can add your own credits without removing the defaults, you'll be very cool :))
            // Please leave this at the bottom of the page to make sure your blog gets listed on b2evolution.net
            credits( array(
                  'list_start'  => ' ',
                  'list_end'    => ' ',
                  'separator'   => '&bull;',
                  'item_start'  => ' ',
                  'item_end'    => ' ',
               ) );
         ?>
      </p>


</div></div>
<!-- footer ends here -->
<?php
   // Trigger plugin event, which could be used e.g. by a google_analytics plugin to add the javascript snippet here:
   $Plugins->trigger_event('SkinEndHtmlBody');
?>
<!-- wrap ends here -->
</div>

</body>
</html>

Where do I have to change the code, in what way, to get, what I need?

thx alot and sorry for my bad english :D

Co2

2 Oct 12, 2009 21:36

Look at file called _item_block.inc.php
especially this section...

<h3 class="bTitle"><?php $Item->title(); ?></h3>
	<p><?php
		$Item->author( array(
				'before'    => T_('by').' <strong>',
				'after'     => '</strong>',
			) );
		$Item->msgform_link();
	?></p>
	<?php
		// ---------------------- POST CONTENT INCLUDED HERE ----------------------
		skin_include( '_item_content.inc.php', $params );
		// 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 POST CONTENT -------------------------
	?>

	<div class="post-footer">
	<div class="bSmallHead">
	<?php
		$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' =>      ', ',
			) );
		?>
		<br />
		<?php
		// Permalink:
		$Item->permanent_link( array(
				'class' => 'permalink_right',
				'text' => '#icon#'
			) );

		// Permalink:
		$Item->issue_date( array(
				'before'    => '<img src="img/clock.gif" alt="" class="middle" />',
				'after'     => ' ',
			));
		$Item->issue_time( array(
				'before'    => ' ',
				'after'     => '',
			));


		echo ', ';

3 Oct 13, 2009 14:49

Hi John,

thx alot, found it there.
Now I have a lot of blank lines under each Container:

http://freitagstefan.de/dokumentation/blogs/index.php/schule1/?blog=10

Does anybody find that lines in the remaining code:

<?php
/**
 * This is the template that displays the item block
 *
 * This file is not meant to be called directly.
 * It is meant to be called by an include in the main.page.php template (or other templates)
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
 * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}
 *
 * @package evoskins
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

global $Item;

// Default params:
$params = array_merge( array(
		'feature_block'   => false,
		'content_mode'    => 'auto',		// 'auto' will auto select depending on $disp-detail
		'item_class'      => 'post',
		'item_status_class' => 'bPost',
		'image_size'	    => 'fit-400x320',
	), $params );

?>

<div id="<?php $Item->anchor_id() ?>" class="<?php $Item->div_classes( $params ) ?>" lang="<?php $Item->lang() ?>">

	<?php
		$Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
	?>

	<h3 class="bTitle"><?php $Item->title(); ?></h3>
	<p></p>
	<?php
		// ---------------------- POST CONTENT INCLUDED HERE ----------------------
		skin_include( '_item_content.inc.php', $params );
		// 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 POST CONTENT -------------------------
	?>

	<div class="post-footer">
	<div class="bSmallHead">
	<?php
		
		// List all tags attached to this post:
		$Item->tags( array(
				'before' =>         T_('Tags').': ',
				'after' =>          '',
				'separator' =>      ', ',
			) );
		?>
		<br />
		<?php


		// Permalink:
		

		/*$Item->wordcount();
		echo ' '.T_('words');*/
		// echo ', ';
		// $Item->views();

		/*$Item->locale_flag( array(
				'before'    => ' &nbsp; ',
				'after'     => '',
			) );*/


		// Link to comments, trackbacks, etc.:
		$Item->feedback_link( array(
						'type' => 'comments',
						'link_before' => '<img src="img/comment.gif" alt="" class="middle" />',
						'link_after' => '',
						'link_text_zero' => '#',
						'link_text_one' => '#',
						'link_text_more' => '#',
						'link_title' => '#',
						'use_popup' => false,
						'class' => 'comments'
					) );

		// Link to comments, trackbacks, etc.:
		$Item->feedback_link( array(
						'type' => 'trackbacks',
						'link_before' => ' &bull; ',
						'link_after' => '',
						'link_text_zero' => '#',
						'link_text_one' => '#',
						'link_text_more' => '#',
						'link_title' => '#',
						'use_popup' => false,
					) );

		$Item->edit_link( array( // Link to backoffice for editing
				'before'    => ' &bull; ',
				'after'     => '',
			) );
		?>
	</div>
	</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

?>

thx and greetings from germany

Co2

4 Oct 13, 2009 21:23

If you want nothing at the bottom of your post/text then delete all or part of this from the code...

<div class="post-footer">
   <div class="bSmallHead">
   <?php
      
      // List all tags attached to this post:
      $Item->tags( array(
            'before' =>         T_('Tags').': ',
            'after' =>          '',
            'separator' =>      ', ',
         ) );
      ?>
      <br />
      <?php


      // Permalink:
      

      /*$Item->wordcount();
      echo ' '.T_('words');*/
      // echo ', ';
      // $Item->views();

      /*$Item->locale_flag( array(
            'before'    => ' &nbsp; ',
            'after'     => '',
         ) );*/


      // Link to comments, trackbacks, etc.:
      $Item->feedback_link( array(
                  'type' => 'comments',
                  'link_before' => '<img src="img/comment.gif" alt="" class="middle" />',
                  'link_after' => '',
                  'link_text_zero' => '#',
                  'link_text_one' => '#',
                  'link_text_more' => '#',
                  'link_title' => '#',
                  'use_popup' => false,
                  'class' => 'comments'
               ) );

      // Link to comments, trackbacks, etc.:
      $Item->feedback_link( array(
                  'type' => 'trackbacks',
                  'link_before' => ' &bull; ',
                  'link_after' => '',
                  'link_text_zero' => '#',
                  'link_text_one' => '#',
                  'link_text_more' => '#',
                  'link_title' => '#',
                  'use_popup' => false,
               ) );

      $Item->edit_link( array( // Link to backoffice for editing
            'before'    => ' &bull; ',
            'after'     => '',
         ) );
      ?>
   </div>
   </div> 

5 Oct 18, 2009 10:49

Hi John,

John wrote:

If you want nothing at the bottom of your post/text then delete all or part of this from the code...

that´s it :D

thx alot and greetings from germany!

Co2


Form is loading...