WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.

Donate with PayPal buttonSpenden mit dem PayPal-Button

  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • modifying template "Generic" question
  • Print
Pages: [1]   Go Down

Author Topic: modifying template "Generic" question  (Read 9082 times)

linh

  • Guest
modifying template "Generic" question
« 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,
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: modifying template "Generic" question
« Reply #1 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

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

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: modifying template "Generic" question
« Reply #2 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
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

linh

  • Guest
Re: modifying template "Generic" question
« Reply #3 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]
Logged

erpe0812

  • Guest
Re: modifying template "Generic" question
« Reply #4 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
Logged

linh

  • Guest
Re: modifying template "Generic" question
« Reply #5 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.
Logged

erpe0812

  • Guest
Re: modifying template "Generic" question
« Reply #6 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
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: modifying template "Generic" question
« Reply #7 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
« Last Edit: September 30, 2008, 12:43:03 PM by Stefek »
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

erpe0812

  • Guest
Re: modifying template "Generic" question
« Reply #8 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
Logged

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: modifying template "Generic" question
« Reply #9 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:
Logged
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

linh

  • Guest
Re: modifying template "Generic" question
« Reply #10 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
Logged

erpe0812

  • Guest
Re: modifying template "Generic" question
« Reply #11 on: September 30, 2008, 04:03:11 PM »
will send you a mail
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • modifying template "Generic" question
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2