modifying template "Generic" question

erpe0812


linh

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

Stefek

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:
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

erpe0812

Hi Stefek

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

rgds

erpe

Stefek

#8
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
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

erpe0812

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

linh

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.

erpe0812

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

linh

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]

Stefek

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
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

BerndJM

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

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
In theory, there is no difference between theory and practice. But, in practice, there is.

linh

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,