Jump to content

mikeskinner

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by mikeskinner

  1. Hi, I am working with a template I purchased that will loop a series of header images. I would like to know how to stop the image series from going back to the beginning once the series of images cycles through. For instance, if there were 3 images in the sequence; currently the script cycles through all 3 images and then starts from the beginning after the 3rd image is displayed (a continuous loop). I would like the script to stop on the last image (so that image stays displayed) and not start the sequence again from the beginning. I couldn't get any support for hacking this script from the developers. The php file that handles this operation is attached and i was told by the support forum I posted in that some Javascript skill would be needed, hence the reason for posting in this section of the forum. Thanks for looking [attachment deleted by admin]
  2. Thanks for responding. here is the other include file: dochead.php: <!-- dochead start --> <base href="<?= BASE_HREF ?>" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="common/frame.css" rel="stylesheet" type="text/css" /> <link href="common/style.css" rel="stylesheet" type="text/css" /> <script language="JavaScript" src="common/functions.js"></script> <!-- dochead end -->
  3. Just took over this site for a client. I did not build it nor do i know much about PHP. I am currently running WAMP for testing purposes on my local machine. Problem: The site tests fine and displays fine on my local machine as long as there is an internet connection. So the testing site is pulling something from the live site and I am not sure what it is. Seems related to styles, as the content displays without formatting and I get the error below. Here is the error: Notice: Use of undefined constant USE_BASE_ROOT - assumed 'USE_BASE_ROOT' in C:\Documents and Settings\username\My Documents\wamp\www\MySite\local\local.php on line 17 Here is the code for local.php: <?php // ------------------------------------------------------------ // ROOT // // Defines a relative path, if needed // ------------------------------------------------------------ if (USE_BASE_ROOT === false) { DEFINE("ROOT", "../"); } DEFINE("ROOT", ""); DEFINE("BASE_HREF", "http://www.mysite.com/"); // ------------------------------------------------------------ // DATABASE // // Database connection URL: // mysql://[user]:[password]@[hostname]/[tablename] // ------------------------------------------------------------ $MYSQL_URL = "mysql://mysite@localhost/mysite"; ?> This last question might be related. When testing on my local machine, when I test one page and try to navigate to another page, the nav link brings me to the live site on the internet. This is due to the use of absolute urls on the site. Is there a reason it was set up that way? Why not use relative urls? The way it is currently set up i have to navigate to each page by manually typing in the url or else I am brought to the live site. Any thoughts on this? Thanks
  4. So this is a followup question. Now the site displays properly, however when I click the links, the browser pulls the pages from the web server and not the local server. If i manually type in the pages I want to view, they show now problem via local server . Ie : http://localhost/site/page2.php. It looks like the nav links are pointing to absolute URL's as apposed to relative. When I look in the php nav fil , here is a snippet of what is see: <!-- ============================== navigation ================================= --> <div id="navigation-frame"><div id="navigation"> <a href="teachers.php" onMous How would I change the nav to root relative links and why were they set up this way in the first place? Any ideas?
  5. Well that just goes to show that knowledge is power. Thanks for the quick response and for pointing me in the right direction. I accessed the PHP settings through the WAMP system tray icon and put a check mark next to "short open tag", and that took care of it. What a bunch of time I wasted. Wish i had posted here to start with Best Wishes
  6. Hi, I am not a PHP programmer. I took on a new client with a simple PHP site, without any databases. The site is up and running on the web. I would like to get it running on my local machine for further development. I have latest version of WAMP installed, running Apache version 2.2.11 and PHP version 5.3.0 I created a directory in the WAMP "www" project directory and it shows up there like it's supposed to when I browse to "localhost" Problem: The home page of website displays text but no, images, styles, footer, header, nav links, etc. Here is the code for the home page: <? define("NAV","home"); require_once('local/local.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>TITLE</title> <meta name="keywords" content=""> <meta name="Description" content=""> <? include("common/dochead.php"); ?> </head> <body onLoad="<? include('common/preloads.php'); ?>"> <!-- ============================ main ============================= --> <div id="main-frame"><div id="main" class="noCollapse"> <? include("common/sign.php"); ?> <div id="right-frame"> <? include("common/navigation.php"); ?> <div id="content-frame"> <div id="content"> <h1>Welcome</h1> <p>This is the content area. This is the content area. This is the content area. </p> </div><!-- end content --> </div><!-- end content-frame --> </div><!-- end right-frame --> <div class="clearFloats"></div> </div><!-- end main --></div><!-- end main-frame --> <? include("common/footer.php"); ?> </body> </html> Any help would be greatly appreciated. I have spent many hours on this. Regards
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.