WebsiteBaker Community Forum (upd)

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: linh on September 26, 2008, 03:11:18 AM

Title: modifying template "Generic" question
Post by: linh on September 26, 2008, 03:11:18 AM
hi,
I have a quick question about modifying template "Generic".
The search function is at the right of the content.

I don't need a search box so I disable it.
However the content is still at the left instead of centering.

Here's my site. I think you will know what I am trying to say. Thank you.

http://www.mtcpm.com/

Best regards,
Title: Re: modifying template "Generic" question
Post by: BerndJM on September 26, 2008, 04:40:02 AM
Hi,

first of all this is a question which is related to HTML/CSS and not an WebsiteBaker issue.

Nevertheless you know such nice Links?
http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/porting-an-existing-html-template.php
http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/adding-template-functions.php
http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/creating-a-wb-template.php

This an much more you can find on the help-pages (http://help.websitebaker.org/pages/en/welcome.php)

What's about all this "mso" Stuff on your Page? Do you copy&paste the content from a M$ Application?
Puuuuh .... ;-) That's not such an good idea.

Just for info (I'm just a little bit curious): what a language is this on you page?

Regards Bernd
Title: Re: modifying template "Generic" question
Post by: Stefek on September 26, 2008, 10:12:41 AM
Quote from: BerndJM on September 26, 2008, 04:40:02 AM
Just for info (I'm just a little bit curious): what a language is this on you page?
[offtopic]
At the firs glance this should be vietnamese.
But it's possible that I'm wrong  :wink:
[/offtopic]

Regards,
Stefek
Title: Re: modifying template "Generic" question
Post by: linh on September 26, 2008, 12:44:50 PM
Yes, Stefek you're right. How do you know it's Vietnamese?  :-) I guess there are a lot Vietnamese in Germany.

Thank you for your reply, Bernd.
I am attaching the 2 pictures here to better explain what I try to say. A picture is worth a thousand word. Could you look at them? Thanks again.



[gelöscht durch Administrator]
Title: Re: modifying template "Generic" question
Post by: erpe0812 on September 26, 2008, 12:51:48 PM
Seems there is an additional  main block defined in the template and in the info.php, something like
content(2) in the template.
So if that, delete this call  in your template and see, if it is working.

rgds

erpe
Title: Re: modifying template "Generic" question
Post by: linh on September 30, 2008, 04:07:53 AM
Thank you for your reply Erpe.
But I can't fix it.
I tried to delete those line that includes "search".
But it didn't work at all. Instead, it became blank.

Please help me more.
Thank you again.
Title: Re: modifying template "Generic" question
Post by: erpe0812 on September 30, 2008, 08:13:24 AM
Hi

you have to delete at index.php all lines including div id=subcontent
and then you have to resize the items that you want in the screen.css, for example:
#content  width:720px;

and maybe other things you want to change.(header, footer)
See: http://www.rvb.bplaced.net/pages/fancy.php

rgds

erpe
Title: Re: modifying template "Generic" question
Post by: Stefek on September 30, 2008, 12:05:21 PM
If you deleate the second Block in your index.php
so you then have also to deleate the statement in the info.php

$block[2]='what_ever_blocks_name';

Regards,
Stefek
Title: Re: modifying template "Generic" question
Post by: erpe0812 on September 30, 2008, 12:27:20 PM
Hi Stefek

before posting you should better have  a look to the info.php   :wink:

rgds

erpe
Title: Re: modifying template "Generic" question
Post by: Stefek on September 30, 2008, 12:42:20 PM
Hello Erpe,
I reffered to this post:

Quote from: erpe on September 26, 2008, 12:51:48 PM
Seems there is an additional  main block defined in the template and in the info.php, something like
content(2) in the template.

It seems to me that he forgot this one
$block[2]='what_ever_blocks_name';

  :wink:
Title: Re: modifying template "Generic" question
Post by: linh on September 30, 2008, 03:19:38 PM
Quote from: erpe on September 30, 2008, 08:13:24 AM
Hi

you have to delete at index.php all lines including div id=subcontent
and then you have to resize the items that you want in the screen.css, for example:
#content  width:720px;

and maybe other things you want to change.(header, footer)
See: http://www.rvb.bplaced.net/pages/fancy.php

rgds

erpe
Yes, that's exactly what I want however when I deleted the followings:

<div id="subcontent">

<div id="searchbar"><?php if(SHOW_SEARCH) { ?><form name="search" action="<?php echo WB_URL.'/search/index'.PAGE_EXTENSION; ?>" method="post"><h2><?php echo $TEXT['SEARCH']; ?></h2>    <input type="text" name="string" /><br /><br /><input type="submit" name="submit" value="<?php if(isset($TEXT['SUBMIT'])) { echo $TEXT['SEARCH']; } else { echo 'Search'; } ?>" /></form><br /><?php } ?>


Everything went blank, instead of coming out like "Fancy"

Please see what I did wrong.
Thank you
Title: Re: modifying template "Generic" question
Post by: erpe0812 on September 30, 2008, 04:03:11 PM
will send you a mail