cliffmurphy Posted April 23, 2009 Posted April 23, 2009 Here is something that I cannot find any support for online: go to: http://www.bmwpartsource.com then go to: http://www.bmwpartsource.com/index.php My banner only shows when I fully type out the index.php! Any ideas? So far I have downgraded my php version and that has not helped. Thanks in advance. BTW: Its a Win 2003 server running IIS
masat Posted April 23, 2009 Posted April 23, 2009 It appears you have the image in the banner module. Have you tried placing the image manually (not using the banner manager). While I can not pinpoint the exact issue I will say the issue lies with using the banner module. Have a look and let us know. Just so as not to jump the gun... There are not any other index pages in your root directory are there? Any entries that may affect page display in htaccess? How do you know when you know what you want to do for the rest of your life?
cliffmurphy Posted April 23, 2009 Author Posted April 23, 2009 It appears you have the image in the banner module. Have you tried placing the image manually (not using the banner manager). While I can not pinpoint the exact issue I will say the issue lies with using the banner module. Have a look and let us know. Just so as not to jump the gun... There are not any other index pages in your root directory are there? Any entries that may affect page display in htaccess? Thanks for the quick reply. THere are no other index files on the server. Also, I dont see an .htaccess file in the root dir. Could I make a .htaccess and configure it to point to the .php? I would be completely fine with placing the banner manually - bypassing the manager totally, but I dont know which files to edit. I am assuming the index.php? any help is appreciated. THanks
cliffmurphy Posted April 23, 2009 Author Posted April 23, 2009 Thanks for the quick reply. THere are no other index files on the server. Also, I dont see an .htaccess file in the root dir. Could I make a .htaccess and configure it to point to the .php? I would be completely fine with placing the banner manually - bypassing the manager totally, but I dont know which files to edit. I am assuming the index.php? any help is appreciated. THanks I have added an .htaccess with a redirect to index.php and it did not help. THanks.
masat Posted April 23, 2009 Posted April 23, 2009 Placing a redirect on your index page is not a good idea. The SE's frown on redirects. Are you sure you did not have an htaccess file? Often times they are hidden from view. My point is this... osCommerce comes with a root directory htaccess file so if you loaded as directed you would have overwritten the htaccess that was in effect and now it is gone. Restore the old htaccess file and set your image manually. <img src="images/banner2.jpg" border="0" alt="banner2" title=" banner2 " width="940" height="259"> Set that snippet (taken from view source) and set it "TEMPORARILY" on the index page just after the opening body tag. It will appear similar to this... </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <img src="images/banner2.jpg" border="0" alt="banner2" title=" banner2 " width="940" height="259"> This effectly will tell you if the banner manager is the trouble. If the temp image shows (and there are no other java/css scripts or addon settings involved) you have three choices... 1. Troubleshoot the banner script to see why the image does not show up and change it to your liking 2. Take the image out of the banner script and place it manually. 3. check the different outputs of the index.php page. The behaviors of the page under varying page state. (if(xxx)else(yyy)) I am curious as to why it is being displayed via the banner script. I don't know your reason but you might consider a slide show instead. That is assuming you require a rotating image in that spot. I have looked a little harder at your page and I see the point and I see there are two totally different pages being loaded. This is not standard operation for this page at this point. Normally $category_depth would control this type of behavior on page->index.php. Maybe try to echo out that variable and see what it says. You can then track it down in the code. Notice I am shifting opinion here. The issue COULD (and now that I have considered longer) be normal operation for your script. The issue answer could be due to the behavior of the script driving index.php. I hope you get what I'm saying. How do you know when you know what you want to do for the rest of your life?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.