Recent Topics

1 Sep 08, 2008 18:25    

My b2evolution Version: [u]Entered[/u]

I use the Asevo skin, and I have tried to remove the side bar, by editing the index.main.php, andn ow it looks like this:

<?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.9.2.2 2008/04/26 22:28:53 fplanque Exp $ */if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );if( version_compare( $app_version, '2.4.1' ) < 0 ){ // Older 2.x skins work on newer 2.x b2evo versions, but newer 2.x skins may not work on older 2.x b2evo versions.	die( 'This skin is designed for b2evolution 2.4.1 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// _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>',			) );	?>	&nbsp;</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>	&nbsp;</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 id="<?php $Item->anchor_id() ?>" class="evo_post evo_post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">			<?php				$Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)			?>			<?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' => ' &bull; ',									'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' => '&lt;&lt; '.T_('Previous'),   			'next_text' => T_('Next').' &gt;&gt;',			) );		// ------------------------- 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><?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 --------------------------------?>

I uploaded the modified .php and now I get this error:

Parse error: syntax error, unexpected T_IF in /home/sunshine/public_html/b2evolution/skins/asevo/index.main.php on line 1

I tried to look on the line 1, but there is no "if" command, I might be a metal midget when it comes to php (or any other coding language) but I don't think that the problem come from that php file. Any assistance is appreciated. Also I intend to place the "Powered by b2evolution" on the footer of the page, I suppose that I can manage there

2 Sep 08, 2008 19:31

I'd say you can cut out the sidebar without side effects.
try this: in global settings reload the skin. If need be uninstall the asevo skin and install it again.
A better option would have been to rename your skin to asevo_without_sidebar to avoid conflicts.

Good luck

3 Sep 08, 2008 20:21

Here is a main.php simply without sidebar container:

<?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.9.2.2 2008/04/26 22:28:53 fplanque Exp $
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

if( version_compare( $app_version, '2.4.1' ) < 0 )
{ // Older 2.x skins work on newer 2.x b2evo versions, but newer 2.x skins may not work on older 2.x b2evo versions.
	die( 'This skin is designed for b2evolution 2.4.1 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
// _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>',
			) );
	?>
	&nbsp;
</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>
	&nbsp;
</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 -----------------------------
	?>


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

And oh btw, you said you want to remove the credits in the footer, assuming you will remove the sidebar too ; how do you think you would provide a linkback.. oh wait, you wouldnt like to ? :-/

4 Sep 08, 2008 20:37

Afwas wrote:

I'd say you can cut out the sidebar without side effects.
try this: in global settings reload the skin. If need be uninstall the asevo skin and install it again.

Tried both, both do not fix the issue.

Afwas wrote:

A better option would have been to rename your skin to asevo_without_sidebar to avoid conflicts.

I don`t quite understand exactly what you mean, either you mean to rename the original style with that, or to copy the style and to rename it to that

tilqicom wrote:

Here is a main.php simply without sidebar container:
<code>

Where should I place that?

tilqicom wrote:

And oh btw, you said you want to remove the credits in the footer, assuming you will remove the sidebar too ; how do you think you would provide a linkback.. oh wait, you wouldnt like to ?

R-e-a-d C-a-r-e-f-u-l-l-y:

Myself wrote:

Also I intend to place the "Powered by b2evolution" on the footer of the page, I suppose that I can manage there

I have no interest to remove that link because I respect the author for every free or open-source software.

5 Sep 08, 2008 21:14

andy_blah wrote:

tilqicom wrote:

Here is a main.php simply without sidebar container:
<code>

Where should I place that?

tilqicom wrote:

And oh btw, you said you want to remove the credits in the footer, assuming you will remove the sidebar too ; how do you think you would provide a linkback.. oh wait, you wouldnt like to ?

open up your index.main.php and replace the whole content with the one i gave you, use a decent text editor doing that..

andy_blah wrote:

R-e-a-d C-a-r-e-f-u-l-l-y:

Myself wrote:

Also I intend to place the "Powered by b2evolution" on the footer of the page, I suppose that I can manage there

I have no interest to remove that link because I respect the author for every free or open-source software.

arggh..sorry about the misunderstanding (misreading actually).. i dont know how i ve achieved that but i ve read that place as it was 'remove'..

6 Sep 08, 2008 21:42

tilqicom wrote:

open up your index.main.php and replace the whole content with the one i gave you, use a decent text editor doing that..

I did and:

Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/sunshine/public_html/b2evolution/skins/asevo/index.main.php on line 41

Checked that and on line 41 there is nothing that requires a bracket close.

tilqicom wrote:

arggh..sorry about the misunderstanding (misreading actually).. i dont know how i ve achieved that but i ve read that place as it was 'remove'..

Mistakes, mistakes, I don't know why it happens to people reading my posts rather than others, I am trying my best to be as clear as possible...

7 Sep 08, 2008 23:39

andy_blah wrote:

Mistakes, mistakes, I don't know why it happens to people reading my posts rather than others, I am trying my best to be as clear as possible...

Trying to help you here, it was nothing personal.. cant understand why you are being sarcastic..

anywhoo.. i assume you havent used a decent editor pasting it..

so better [url=http://www.cssdizayn.com/assets/asevo_nosidebar_index.main.zip]grab the file here[/url], and simply replace with the old one..

8 Sep 09, 2008 01:12

tilqicom wrote:

Trying to help you here, it was nothing personal.. cant understand why you are being sarcastic..

I think you misread again, since I was not referring to you, neither took it personally, and that was not sarcasm, it is just what I observed alongside asking others to help. Back on the topic:

tilqicom wrote:

anywhoo.. i assume you havent used a decent editor pasting it..

As a matter of fact, I used Notepad because I hate to fill my registry with entries of other programs that I use once, thank-you tho for the file, it works now. Now I was wondering, how could I remove the white mask from where the sidebar? (see [url=http://kureyonalliance.sunshineteam.org]here[/url])
That problem might appear because I use a low resolution, but still it is best to fix it.[/url]

9 Sep 09, 2008 01:58

andy_blah wrote:

Now I was wondering, how could I remove the white mask from where the sidebar? (see [url=http://kureyonalliance.sunshineteam.org]here[/url])
That problem might appear because I use a low resolution, but still it is best to fix it.[/url]

There is no white mask there... just the content section has a fixed width it doesnt grow bigger automatically...

since you have no sidebar anymore you can set a percentage as width to have a fluid layout, or just increase it in pixels like 900px or whatever you d like..

open your style.css file and change

div.inner_wrapper
{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 84%;
	width: 90%;/*or whatever percentage or pixel you would like..*/
	margin: 0 auto;
	padding: 1px;
}

.evo_main_area /* Left column */
{/*as it is no longer left column; we will just center it removing the float*/
	width: 90%; /*again set whatever width you'd like*/
	/*float: left;*/
	overflow: hidden;
margin: 0 auto;
}

or instead of moifying you can place the code in the end of your css file.. the values will be overwritten, but you d better modify them


Form is loading...