WebsiteBaker Community Forum

General Community => WebsiteBaker Website Showcase => Topic started by: StefanRSA on September 22, 2008, 02:52:31 PM

Title: www.TheHost.co.za - hospitality business site
Post by: StefanRSA on September 22, 2008, 02:52:31 PM
Hallo Guys!

I am VERY proud to say... I am (almost) done with my first WB site!!!!
Please do me a favour and send comments...

I am 3 months new in PhP and MySql, so if you pick up any problems please be so kind to tell me about it and give a hand if you can! Please note that the link without the /wb,  link to their old(UGLY!) site at
www,the-host,net.....

WB ROCKS!!!! MY NEW SITE ADDRESS!!!!! -----------------> http://www.thehost.co.za/wb (http://www.thehost.co.za/wb)  :-D
Title: Re: MY FIRST WB SITE!
Post by: aldus on September 22, 2008, 03:09:07 PM
Fine ... but there is an error in the "screen.css" in line 143:
Code: [Select]
background: #FFFFFF url(<?php echo TEMPLATE_DIR;?>/images/headcut_14-over.gif) repeat;
You can't place PHP-Code inside an external css file - will not be execute.
And you are not in the need to this: keep in mind, that all paths inside the css are rellative
to the css file, so in this case you can simple go like this:
Code: [Select]
background: #FFFFFF url(images/headcut_14-over.gif) repeat;
if there is a subfolder named "images" next to the css-file.

Regards
Aldus
Title: Re: MY FIRST WB SITE!
Post by: StefanRSA on September 22, 2008, 03:14:51 PM
Fixed it, thanks Aldus!
Title: Re: MY FIRST WB SITE!
Post by: aldus on September 22, 2008, 03:36:16 PM
Fine - nothing found yet
And (!) imagefloooooooooooooooooow woup

Regards
Aldus
Title: Re: MY FIRST WB SITE!
Post by: Stefek on September 22, 2008, 03:36:52 PM
Nicely baked.
I like it.
Very complex template.
Looks professional!

I see you love to design every single detail.  :-P

Regards,
Stefek
Title: Re: MY FIRST WB SITE!
Post by: StefanRSA on September 22, 2008, 03:43:04 PM
Thanks Guys...

I have a problem in my menu.... Its a combination of JS and CSS conflict... Its for the active page menu color...(?submenuheader=1)
Don't have this problem if I go only CSS but I want the glide down effect of the menu...



Title: Re: MY FIRST WB SITE!
Post by: Stefek on September 22, 2008, 04:03:11 PM
... Its a combination of JS and CSS conflict...

Please explain the exact problem.
For me it look just fine. (FireFox 2 / Win XP)

Regards,
Stefek
Title: Re: MY FIRST WB SITE!
Post by: StefanRSA on September 22, 2008, 04:15:33 PM
The ?submenuheader=1 and ?submenuheader=0 works with my CSS to display the active page on the menu and also if the submenu should expand or not. This is the only way I can get the SUBMENUHEADER to also have a dif color when any sumenu page is selected.

The error shows in FF and IE in the background: Error: headers[expandedindex] is undefined
Source File: http://www.thehost.co.za/wb/pages/screen-shots.php?submenuheader=1
Line: 34
Title: Re: MY FIRST WB SITE!
Post by: Stefek on September 22, 2008, 04:20:23 PM
Now I see.
Something wrong with your JS.
Can't help - sorry.

I'm certain that sombody else will help you to fix this.

Regards,
Stefek
Title: Re: MY FIRST WB SITE!
Post by: aldus on September 22, 2008, 04:28:27 PM
As for a quick view: missing ";"
should be
Code: [Select]
for (var i=0; i<expandedindices.length; i++){
  var expandedindex=expandedindices[i]; //index of current expanded header index within array
  headers[expandedindex].style.backgroundColor='#00B8FF';
  headers[expandedindex].style.color='white';
 }

to avoid some unexpected results you should testing the results, e.g.
Code: [Select]
for (var i=0; i<expandedindices.length; i++){
  var expandedindex=expandedindices[i]; //index of current expanded header index within array
  if (expandedindex) {
    if (headers[expandedindex]) {
      headers[expandedindex].style.backgroundColor='#00B8FF';
      headers[expandedindex].style.color='white';
     }
   }
}

sorry - untested yet ...

Regards
Aldus
Title: Re: MY FIRST WB SITE!
Post by: StefanRSA on September 22, 2008, 06:24:34 PM
That Solved my Problem, Thanks Aldus!

Thanks for you as well Stefek!!!