You are here:  » Layout Design and Logo


Layout Design and Logo

Submitted by daviddoig on Wed, 2006-03-01 00:24 in

Just a simple question and will probably get it once posted.

Is there a very easy way of inculding a logo/company name to show above the search bar and also on resulting pages to the left of the screen and not in the middle as it would have been on the front page.

Also on layout, templates. I have read the forum and it is on its way sometime soon as sure. Just wanted to know if there is another way for us to script it quickly in the mean time.

I'll be looking into this, also David if there is any help or modifications required then my time can be utilised. I want to see this take off really well and hope that it is serving the people using it right now well.

Submitted by support on Wed, 2006-03-01 09:14

Hi,

I can see why this is a little awkward a the moment with the same search form being included on the home page (centered) and all other pages (top-left). However, because it is only 4 lines of PHP, the easiest way to do what you want to do now would would be to edit index.php and remove the following line:

require("includes/searchform.php");

...replacing it with the contents of searchform.php directly. You can then edit index.php to include your logo above the search box and centered (or however you wish to do it).

Then, to get your logo on all other pages; simply edit searchform.php; maybe using a table to align your logo to the left of the form.

Submitted by madstock on Wed, 2006-03-01 11:17

Could you add the following:

 if ($q)
  {
 print " ";
  }
  else
  {
 print "<center>";
  }

directly underneath the first line of searchform.php ?

I do not profess to understand anything about php, but that would appear say "if there is a query, do nothing to the form, if there isn't, center the form".

You would probably want to add:

 print "</center>";

to the end of the form, too.