Any Website Guru's on here ?
Discussion
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
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
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....
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....
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...!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....
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
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
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
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
Edited by sportsandclassic on Wednesday 18th August 22:48
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.....
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.....
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;
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;
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff