![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Problem after template update??
I am using a CSS layout template in DW. If I create a new page from the
template, add my php and text, then save and choose 'preview in browser', it works fine. .....BUT if I modify the template and choose update dependent files, then when I preview all the pages I have made from the template they show up with no layout, as if the CSS was not present, but the php info is there. IF I go to my root folder and manually open the file in browser, the layout shows up but the php info will not. What the hell is going on?? |
|
|||
|
Re: Problem after template update??
> IF I go to my > root folder and manually open the file in browser, the layout shows up but the > php info will not. Is there a testing server? Is this the difference between viewing a file from a web server but the change isn't seen because of browser cache, and then viewing the file directly from the hard drive with no server, so the change is seen but the php is ignored? -- Alan Adobe Community Expert, dreamweaver http://www.adobe.com/communities/experts/ |
|
|||
|
Re: Problem after template update??
> then when
> I preview all the pages I have made from the template they show up with no > layout, as if the CSS was not present, but the php info is there. If you preview the pages, and can see the PHP markup then this definitely means you have not defined a testing server. That's OK, but you will not be able to preview the pages properly in that case. > What the hell is going on?? We'd really need to see the code on one of these pages, and know lots more about how your site is defined to tell you. Can you help us? -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "Brandon7777" <webforumsuser@macromedia.com> wrote in message news:fsnc3q$1ep$1@forums.macromedia.com... >I am using a CSS layout template in DW. If I create a new page from the > template, add my php and text, then save and choose 'preview in browser', > it > works fine. > > > .....BUT if I modify the template and choose update dependent files, then > when > I preview all the pages I have made from the template they show up with no > layout, as if the CSS was not present, but the php info is there. IF I go > to my > root folder and manually open the file in browser, the layout shows up but > the > php info will not. > > What the hell is going on?? > |
|
|||
|
Re: Problem after template update??
Thank you for the replies...
I have an apache server set up on my computer for the testing server, so that should not be the problem. Here is the code for the page: <?php require_once('Connections/dbase2.php'); ?> <?php require_once('Connections/Dbase.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } mysql_select_db($database_dbase2, $dbase2); $query_Recordset1 = "SELECT info.info_english FROM info"; $Recordset1 = mysql_query($query_Recordset1, $dbase2) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1); mysql_select_db($database_Dbase, $Dbase); $query_Recordset2 = "SELECT info.info_english FROM info"; $Recordset2 = mysql_query($query_Recordset2, $Dbase) or die(mysql_error()); $row_Recordset2 = mysql_fetch_assoc($Recordset2); $totalRows_Recordset2 = mysql_num_rows($Recordset2); ?> <!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" ><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" --> <head> <!-- InstanceBeginEditable name="doctitle" --> <title>Something in blue - Web design by Giant Systems</title> <!-- InstanceEndEditable --> <link rel="stylesheet" type="text/css" href="file:///C|/Documents and Settings/Owner.YOUR-3D2871726C/Desktop/Oral History Project/Franco American Archives/Something_in_Blue/defaultblue.css" media="screen" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <style type="text/css"> <!-- .style1 { font-size: 16px } .style2 {font-size: smaller} .style3 {font-size: xx-small} --> </style> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --><!-- InstanceParam name="OptionalRegion1" type="boolean" value="true" --> </head> <body> <div> <div class="top"> <div class="header"> <div class="left style1"> <span class="style2">Franco-American Oral History Archives</span></div> <div class="right"> <div> <p><img src="orbs.jpg" width="168" height="64" /></p> </div> </div> </div> </div> <div class="container"> <div class="navigation"><a href="#" title="Contact">HOME</a><a href="#" title="Home">ARCHIVES</a><a href="#" title="Archives">ABOUT</a><a href="#" title="About">LINKS</a><a href="#" title="Links">SPONSORS</a><a href="#" title="Contact">CONTACT</a> <div class="clearer"><span></span></div> </div> <div class="main"> <div class="content"> <h1><!-- InstanceBeginEditable name="EditRegion5" -->Welcome!<!-- InstanceEndEditable --></h1> <!-- InstanceBeginEditable name="EditRegion4" --> <p><?php echo $row_Recordset2['info_english']; ?></p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> <!-- InstanceEndEditable --> <p> </p> <p> </p> <p></p> <p> </p> </div> <div class="sidenav"> <h2>Language Selection </h2> <p> English </p> <p>Fran?ais</p> <ul> <li></li><li></li> <li></li> <li></li> <li></li> </ul> <h2>Archives</h2> <p>Franco American</p> <p>Acadian</p> <p>Quebecian</p> <ul><li></li> <li></li> </ul> <h2>Contact info</h2> <p>Click here</p> <p> </p> <ul><li></li> <li></li> <li></li> <li></li> </ul> <p><br /> </p> </div> <div class="clearer"><span></span></div> </div> <div class="footer">© 2008 Brandon Chase and UMaine Franco American Centre. All Rights Reserved.</div> </div> </div> </body> <!-- InstanceEnd --></html> <?php mysql_free_result($Recordset1); mysql_free_result($Recordset2); ?> |
|
|||
|
Re: Problem after template update??
> I have an apache server set up on my computer for the testing server, so
> that > should not be the problem. Here is the code for the page: If you see the PHP code when you preview as you stated, it's definitely a problem. What happens when you browse to http://localhost? -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "Brandon7777" <webforumsuser@macromedia.com> wrote in message news:fso8ej$2jm$1@forums.macromedia.com... > Thank you for the replies... > > > I have an apache server set up on my computer for the testing server, so > that > should not be the problem. Here is the code for the page: > > <?php require_once('Connections/dbase2.php'); ?> > <?php require_once('Connections/Dbase.php'); ?> > <?php > if (!function_exists("GetSQLValueString")) { > function GetSQLValueString($theValue, $theType, $theDefinedValue = "", > $theNotDefinedValue = "") > { > $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : > $theValue; > > $theValue = function_exists("mysql_real_escape_string") ? > mysql_real_escape_string($theValue) : mysql_escape_string($theValue); > > switch ($theType) { > case "text": > $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; > break; > case "long": > case "int": > $theValue = ($theValue != "") ? intval($theValue) : "NULL"; > break; > case "double": > $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : > "NULL"; > break; > case "date": > $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; > break; > case "defined": > $theValue = ($theValue != "") ? $theDefinedValue : > $theNotDefinedValue; > break; > } > return $theValue; > } > } > > mysql_select_db($database_dbase2, $dbase2); > $query_Recordset1 = "SELECT info.info_english FROM info"; > $Recordset1 = mysql_query($query_Recordset1, $dbase2) or > die(mysql_error()); > $row_Recordset1 = mysql_fetch_assoc($Recordset1); > $totalRows_Recordset1 = mysql_num_rows($Recordset1); > > mysql_select_db($database_Dbase, $Dbase); > $query_Recordset2 = "SELECT info.info_english FROM info"; > $Recordset2 = mysql_query($query_Recordset2, $Dbase) or > die(mysql_error()); > $row_Recordset2 = mysql_fetch_assoc($Recordset2); > $totalRows_Recordset2 = mysql_num_rows($Recordset2); > ?> > > <!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" ><!-- InstanceBegin > template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" --> > <head> > <!-- InstanceBeginEditable name="doctitle" --> > <title>Something in blue - Web design by Giant Systems</title> > <!-- InstanceEndEditable --> > <link rel="stylesheet" type="text/css" href="file:///C|/Documents and > Settings/Owner.YOUR-3D2871726C/Desktop/Oral History Project/Franco > American > Archives/Something_in_Blue/defaultblue.css" media="screen" /> > <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> > <style type="text/css"> > <!-- > .style1 { > font-size: 16px > } > .style2 {font-size: smaller} > .style3 {font-size: xx-small} > --> > </style> > <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --><!-- > InstanceParam name="OptionalRegion1" type="boolean" value="true" --> > </head> > > > > > <body> > <div> > <div class="top"> > > <div class="header"> > > <div class="left style1"> <span class="style2">Franco-American Oral > History Archives</span></div> > > <div class="right"> > <div> > <p><img src="orbs.jpg" width="168" height="64" /></p> > </div> > </div> > > </div> > > </div> > > <div class="container"> > > <div class="navigation"><a href="#" title="Contact">HOME</a><a href="#" > title="Home">ARCHIVES</a><a href="#" title="Archives">ABOUT</a><a href="#" > title="About">LINKS</a><a href="#" title="Links">SPONSORS</a><a href="#" > title="Contact">CONTACT</a> > <div class="clearer"><span></span></div> > </div> > > <div class="main"> > <div class="content"> > > <h1><!-- InstanceBeginEditable name="EditRegion5" -->Welcome!<!-- > InstanceEndEditable --></h1> > <!-- InstanceBeginEditable name="EditRegion4" --> > <p><?php echo $row_Recordset2['info_english']; ?></p> > <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do > eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad > minim > veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea > commodo consequat. Duis aute irure dolor in reprehenderit in voluptate > velit > esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat > cupidatat > non proident, sunt in culpa qui officia deserunt mollit anim id est > laborum.</p> > <!-- InstanceEndEditable --> > <p> </p> > <p> </p> > <p></p> > <p> </p> > </div> > > <div class="sidenav"> > <h2>Language Selection </h2> > <p> English </p> > <p>Fran?ais</p> > <ul> > <li></li><li></li> > <li></li> > <li></li> > <li></li> > </ul> > > <h2>Archives</h2> > <p>Franco American</p> > <p>Acadian</p> > <p>Quebecian</p> > <ul><li></li> > <li></li> > </ul> > > <h2>Contact info</h2> > <p>Click here</p> > <p> </p> > <ul><li></li> > <li></li> > <li></li> > <li></li> > </ul> > <p><br /> > </p> > </div> > > <div class="clearer"><span></span></div> > > </div> > > <div class="footer">© 2008 Brandon Chase and UMaine Franco American > Centre. All Rights Reserved.</div> > </div> > > > > > </div> > </body> > <!-- InstanceEnd --></html> > <?php > mysql_free_result($Recordset1); > > mysql_free_result($Recordset2); > ?> > |
|
|||
|
Re: Problem after template update??
> they show up with no layout
<link rel="stylesheet" type="text/css" href="file:///C|/Documents and Settings/Owner.YOUR-3D2871726C/Desktop/Oral History Project/Franco American Archives/Something_in_Blue/defaultblue.css" media="screen" /> that's an absolute path to Your hard drive. There should be no file:/// paths in a website. -- Alan Adobe Community Expert, dreamweaver http://www.adobe.com/communities/experts/ |
|
|||
|
Re: Problem after template update??
When I type http://localhost, I get the correct response (a page that says 'it
works!'). I have a virtual host setup so that I have archives.local and another called beaver.local. I tried getting rid of the file:/// and it didnt find the stylesheet at all. Any idea why it works the first time I preview but not after I update the template? |
|
|||
|
Re: Problem after template update??
Brandon7777 posted something on 3/30/08 5:37 PM so i blathered about to and
fro: > I tried getting rid of the file:/// and it didnt find the stylesheet at all. In code, delete the link tag for the stylesheet. Then in the CSS panel, ATTACH that stylesheet, browsing to and select the correct file. That will ensure dw writes the correct path. if the file isn't inside of this Local Site Folder, copy it over. -- Alan Adobe Community Expert, dreamweaver http://www.adobe.com/communities/experts/ |
|
|||
|
Re: Problem after template update??
[q]Originally posted by: Newsgroup User
Brandon7777 posted something on 3/30/08 5:37 PM so i blathered about to and fro: > I tried getting rid of the file:/// and it didnt find the stylesheet at all. In code, delete the link tag for the stylesheet. Then in the CSS panel, ATTACH that stylesheet, browsing to and select the correct file. That will ensure dw writes the correct path. if the file isn't inside of this Local Site Folder, copy it over. [/q] OK, that worked for getting the path straightened out, but now when I preview I get a blank page (as opposed to the un-styled layout I was getting). Also, I still dont see the database info when I manually test the pages in my browser (but it is styled correctly) |
|
|||
|
Re: Problem after template update??
> I get a blank page (as opposed to the un-styled layout I was getting). Also, I > still dont see the database info when I manually test the pages in my browser Database info? Do you have a local testing server set up and defined in dreamweaver? On the blank page, can you give a link to the uploaded page? -- Alan Adobe Community Expert, dreamweaver http://www.adobe.com/communities/experts/ |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|