Any Website Guru's on here ?

Author
Discussion

sportsandclassic

Original Poster:

3,774 posts

219 months

Wednesday 18th August 2010
quotequote all
Hello,

Is there anyone on here that can help me with a website problem I am having ?

I have built a new page and can not get it to load...!

Mike

mm450exc

564 posts

179 months

Wednesday 18th August 2010
quotequote all
What did you write it in?

GreigM

6,733 posts

250 months

Wednesday 18th August 2010
quotequote all
are you using javascript? If so are you using IE or firefox? If firefox download the "firebug" add-on - get some info from that about what is wrong. If IE is there a javascript error

I can help if its javascript/html/apache/tomcat related - php and yer on your own.....

sportsandclassic

Original Poster:

3,774 posts

219 months

Wednesday 18th August 2010
quotequote all
Hello

It is written in PHP but but it is just a blank page I want so I can add text and pictures...I have done this before but am struggling..

If you go on our website www.sportsandclassic.com and click the classified section it just has a black page so does the products page when you click 996 diverter valves !

Mike

Diesel130

1,549 posts

213 months

Wednesday 18th August 2010
quotequote all
Some more details please, Mike. Can you not upload it to your ISP, or is it there and not showing what you think it should? What tools did you use to build it, or did you hand-craft it in HTML?

sportsandclassic

Original Poster:

3,774 posts

219 months

Wednesday 18th August 2010
quotequote all
Hello,

Basically got one of the working pages copied it and saved it as the extension I wanted to call it and modified the content but it won't work.

Mike

GreigM

6,733 posts

250 months

Wednesday 18th August 2010
quotequote all
you've got javascript errors, but it looks more like a simple issue of invalid references rather than a proper javascript error - basically your menu script isnt recognising what you're asking it to display.

So check simple things like spelling of the menu items etc - you'll probably find a mismatch...

i.e you're asking it to display "classified", but you've declared the menu as "clasified" or similar....I'm sure it'll be along those lines...

if you post up the php I'll have a butchers...

php stands for putrid horrible programming you know....

sportsandclassic

Original Poster:

3,774 posts

219 months

Wednesday 18th August 2010
quotequote all
GreigM said:
you've got javascript errors, but it looks more like a simple issue of invalid references rather than a proper javascript error - basically your menu script isnt recognising what you're asking it to display.

So check simple things like spelling of the menu items etc - you'll probably find a mismatch...

i.e you're asking it to display "classified", but you've declared the menu as "clasified" or similar....I'm sure it'll be along those lines...

if you post up the php I'll have a butchers...

php stands for putrid horrible programming you know....
I have done that already and can not spot any difference...!

GreigM

6,733 posts

250 months

Wednesday 18th August 2010
quotequote all
sportsandclassic said:
I have done that already and can not spot any difference...!
if you pm me the php I'll have a look - it must be pretty simple....

sportsandclassic

Original Poster:

3,774 posts

219 months

Wednesday 18th August 2010
quotequote all
GreigM said:
sportsandclassic said:
I have done that already and can not spot any difference...!
if you pm me the php I'll have a look - it must be pretty simple....
How do i do that ?

Diesel130

1,549 posts

213 months

Wednesday 18th August 2010
quotequote all
GreigM said:
you've got javascript errors, but it looks more like a simple issue of invalid references rather than a proper javascript error - basically your menu script isnt recognising what you're asking it to display.....
What he said ^^^^

Your "inspection" page is working, but your "classified" one isn't. What I'd do is rename your classified one to "classified-backup", then make a copy of your "inspection" page to be called "classified" and then see if the inspection details appears when you select classified. If it does, it must have been a misnaming of something on the original classified page.

From there you could either double check the original classified page, or simply modifiy the content of the new classified page to display what you want.

hth

BliarOut

72,857 posts

240 months

Wednesday 18th August 2010
quotequote all
Whack these two lines near the start of your page temporarily

ini_set('display_errors',1);
error_reporting(E_ALL);

You're probably missing a semi colon or a reference somewhere

andymin

197 posts

213 months

Wednesday 18th August 2010
quotequote all
If you look at http://www.sportsandclassic.com/index.php?page=cla... there is no content between: <div id="main"> </div>

Looks like the other pages pull content from a database, is there a content management system for adding new pages?

I can see your new page here: http://www.sportsandclassic.com/classified.php

You would need to put that within the existing page layout/css then rename the menu link




sportsandclassic

Original Poster:

3,774 posts

219 months

Wednesday 18th August 2010
quotequote all
Diesel130 said:
GreigM said:
you've got javascript errors, but it looks more like a simple issue of invalid references rather than a proper javascript error - basically your menu script isnt recognising what you're asking it to display.....
What he said ^^^^

Your "inspection" page is working, but your "classified" one isn't. What I'd do is rename your classified one to "classified-backup", then make a copy of your "inspection" page to be called "classified" and then see if the inspection details appears when you select classified. If it does, it must have been a misnaming of something on the original classified page.

From there you could either double check the original classified page, or simply modifiy the content of the new classified page to display what you want.

hth
I have done that too!! and that bit works but can not get it to dispay any other page that i have created or saved as a backup!

Edited by sportsandclassic on Wednesday 18th August 22:48

BliarOut

72,857 posts

240 months

Wednesday 18th August 2010
quotequote all
I bet the problem isn't on the classified page wink

Is it a new page on the site that didn't previously exist?

sportsandclassic

Original Poster:

3,774 posts

219 months

Wednesday 18th August 2010
quotequote all
BliarOut said:
I bet the problem isn't on the classified page wink

Is it a new page on the site that didn't previously exist?
Yes

sportsandclassic

Original Poster:

3,774 posts

219 months

Wednesday 18th August 2010
quotequote all
Sorry this is abit off topic but I need some help ! to help you ... smile


GreigM

6,733 posts

250 months

Wednesday 18th August 2010
quotequote all
having a quick shufty at the generated code, you have:

ddtabmenu.definemenu("ddtabs1", "auto") //initialize Tab Menu #1 with 1st tab selected
ddtabmenu.definemenu("ddtabs2", 0) //initialize Tab Menu #2 with 2nd tab selected
ddtabmenu.definemenu("ddtabs3", 0) //initialize Tab Menu #3 with 2nd tab selected
ddtabmenu.definemenu("ddtabs4", 0) //initialize Tab Menu #4 with 3rd tab selected
ddtabmenu.definemenu("ddtabs5", 0) //initialize Tab Menu #5 with 1st tab selected


do you need to add ddtabs6 and ddtabs 7 etc...i.e.

ddtabmenu.definemenu("ddtabs6", 0) //initialize Tab Menu #6 with 1st tab selected

the reason being you havent initialised the menu.....

GreigM

6,733 posts

250 months

Wednesday 18th August 2010
quotequote all
oh, and if that doesnt work PM me by clicking on my profile and find a bit about emailing.....or just email

ishouldsticktotheoilybitsbecuasemyphpsucks@mcarthur.org.uk


BliarOut

72,857 posts

240 months

Wednesday 18th August 2010
quotequote all
On the page index.php there will be some code a bit like this as I believe your menu uses a switch statement:



if (isset($_GET['page'])){
$page = $_GET['page'];
}

//============================================================+
//Use a switch statement to get the right content
//============================================================+
switch($page) {

//============================================================+
//For each page of content just add a case block
//$content is the file with the page contents.
//DO not include the header and footer HTML in these files it is already added.
//Then stop the case block, if we do not have this we will get an error.
//============================================================+

case "home":
$content = "home.php";
break;

case "page1":
$content = "page1.php";
break;

case "page2":
$content = "page2.php";
break;

case "page3":
$content = "page3.php";
break;

case "classified":
$content = "classified.php";
break;

//============================================================+
//If the variable didn not match any of the above cases do this.
//============================================================+
default:
$content = "default.php";
break;
}




I think you need to add the following in somewhere before the last curly bracket, I've put it in the right place for you in the example above:

case "classified":
$content = "classified.php";
break;