1 andy_blah Sep 08, 2008 18:25
3 tilqicom 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>',
) );
?>
</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 -----------------------------
?>
</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 andy_blah 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 tilqicom 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 andy_blah 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 tilqicom 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 andy_blah 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 tilqicom 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
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