POST ONCE TO 2 DIFFERENT SECTION EDITORS
34 posts by 4 authors in: Forums > CMS Builder
Last Post: April 5, 2010 (RSS)
By Chris - April 1, 2010
Hi Bob,
Let's stick to one issue at a time so we don't get confused.
The records are not rotating on the lodging-southernvermont.php page? It sounds like the shuffle() isn't working. Can you please post your source code so I can make sure you got all the linebreaks in correctly?
P.S. It would be 10 times easier to help you if you could post your PHP source code. Please try to figure out how to do this. I suspect that your "security issue" from before was related to downloading your own attachment -- it was probably fine.
Let's stick to one issue at a time so we don't get confused.
The records are not rotating on the lodging-southernvermont.php page? It sounds like the shuffle() isn't working. Can you please post your source code so I can make sure you got all the linebreaks in correctly?
P.S. It would be 10 times easier to help you if you could post your PHP source code. Please try to figure out how to do this. I suspect that your "security issue" from before was related to downloading your own attachment -- it was probably fine.
All the best,
Chris
Chris
Re: [chris] POST ONCE TO 2 DIFFERENT SECTION EDITORS
By weblinks - April 2, 2010
Chris...[/#000000]
I'm pasting in the code BELOW. If you wish it sent another way let me know...[/#000000]
<?php
require_once "/netapp/whnas-swamp/s10/s10/01575/www.linkvermont.com/webdocs/cmsAdmin/lib/viewer_functions.php";
?>[/#000000]
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<TITLE> - LinkVermont.com</TITLE>
<META NAME="description" CONTENT="">
<META NAME="KeyWords" CONTENT="">
<meta name="target" contents="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Author" content="WebLinks, Inc." />
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
width:750px;
height:200px;
z-index:1;
}
#apDiv2 {
position:absolute;
width:200px;
height:9000px;
z-index:1;
background: #9966FF;
}
#apDiv3 {
position:absolute;
width:979px;
height:27px;
z-index:2;
left: 8px;
top: 15px;
background-color: #000;
}
#apDiv4 {
position:absolute;
width:777px;
height:218px;
z-index:3;
left: 210px;
top: 42px;
background-color: #000;
}
#apDiv5 {
position:absolute;
width:553px;
height:10000px;
z-index:4;
left: 210px;
top: 261px;
background-color: #FFF;
font-size: small;
font-family: Arial, Helvetica, sans-serif;
}
#apDiv6 {
position:absolute;
width:225px;
height:9000px;
z-index:5;
left: 763px;
top: 181px;
background-color: #CCC;
font-family: Tahoma, Geneva, sans-serif;
font-size: x-small;
font-weight: bold;
}
body {
background-color: #330066;
}
#apDiv7 {
position:absolute;
width:200px;
height:115px;
z-index:7;
left: -22px;
top: 266px;
}
#apDiv5 blockquote p strong black free listings {
color: #000;
}
#apDiv8 {
position:absolute;
width:200px;
height:32px;
z-index:1;
left: 14px;
top: 20px;
font-family: Tahoma, Geneva, sans-serif;
font-size: small;
text-align: center;
color: #000;
}
.bold {
font-weight: bold;
font-family: Tahoma, Geneva, sans-serif;
font-size: small;
}
.small {
font-size: small;
font-family: Tahoma, Geneva, sans-serif;
font-weight: normal;
text-align: left;
}
.alignLEFT {
text-align: left;
font-size: x-small;
}
#apDiv9 {
position:absolute;
width:186px;
height:255px;
z-index:8;
left: 23px;
top: 20px;
}
.DarkGrey {
color: #666;
}
.blue {
color: #00F;
}
.red {
color: #F00;
}
.xsmall {
font-size: x-small;
}
.bold {
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
}
#apDiv10 {
position:absolute;
width:273px;
height:177px;
z-index:1;
left: 38px;
top: -217px;
}
#apDiv11 {
position:absolute;
width:317px;
height:169px;
z-index:6;
left: 34px;
top: 57px;
}
#apDiv12 {
position:absolute;
width:89px;
height:18px;
z-index:7;
left: 174px;
top: 363px;
}
-->
</style>
<style type="text/css">
<!--
p.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Swis721 BT";
}
div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Swis721 BT";
}
.black { color: #000;
}
.arial {
font-family: Arial, Helvetica, sans-serif;
}
.bold {
}
.left {
text-align: left;
font-size: small;
font-weight: normal;
}
-->
</style>
</head>
<body link="#0000FF" vlink="#0000FF" alink="#0000FF">
<!--LEFT COLUMN -->
<!-- DHTML Menu Builder Loader Code START --><script language="JavaScript" type="text/javascript">
var navVer = navigator.appVersion;
if(navVer.substr(0,3) >= 4)
if((navigator.appName=="Netscape") && (parseInt(navigator.appVersion)==4))
document.write('<'+'script language="JavaScript" type="text/javascript" src="/menus/nsmenu.js"><\/script\>');
else
document.write('<'+'script language="JavaScript" type="text/javascript" src="/menus/iemenu.js"><\/script\>');
</script>
<!-- DHTML Menu Builder Loader Code END --><div id="apDiv2">
<p> </p>
</div>
<!-- TOP BAR -->
<div id="apDiv3"><img src="http://www.linkvermont.com/PAGE_LAYOUTS_Layer_Images/LinkVermont_BARLOGO.png" width="200" height="27" /></div>
<!--HEADER IMAGE --><div id="apDiv4">
<p><img src="/PAGE_LAYOUTS_Header_Images/manchester_inn_porch_summer.jpg" alt="Photo: Manchester Vermont - Copyright by LinkVermont" /></p>
<p> </p>
</div>
<!-- HEADER TEXT OVERLAY -->
<div id="apDiv11"><img src="/PAGE_LAYOUTS_Header_Images/p22_welcome_greenmountainstate.png" width="335" height="167" alt="Welcome To The Brattleboro Vermont Area" /></div>
</div>
<!-- BODY COLUMN -->
<div id="apDiv5">
<blockquote>
<p align="center"><strong><span style="font-family:Georgia; font-size:16pt;"><br />
Southern Vermont <br />
Featured Lodging Establishments</span></strong></p>
<p align="center"> </p>
<p align="center"><i>The Featured Listings Below are displayed in Random Order</i></p>
<!-- INSERT PHOTOLINK PHP CODE -->
<?php require_once "/netapp/whnas-swamp/s10/s10/01575/www.linkvermont.com/webdocs/cmsAdmin/lib/viewer_functions.php";
list($lodging_manchesterareaRecords, ) = getRecords(array( 'tableName' => 'lodging_manchesterarea' ));
list($lodging_weston_londonderryRecords, ) = getRecords(array( 'tableName' => 'lodging_weston_londonderry' )); list($lodging_chester_graftonRecords, ) = getRecords(array( 'tableName' => 'lodging_chester_grafton' )); list($lodging_brattleboro_newfaneRecords, ) = getRecords(array( 'tableName' => 'lodging_brattleboro_newfane' )); list($lodging_bellowsfalls_rockinghamRecords, ) = getRecords(array( 'tableName' => 'lodging_bellowsfalls_rockingham' )); list($lodging_bennington_arlingtonRecords, ) = getRecords(array( 'tableName' => 'lodging_bennington_arlington' ));
// combine all records collected above into one big list
$southernvermontRecords = array_merge(
$lodging_manchesterareaRecords,
$lodging_weston_londonderryRecords,
$lodging_chester_graftonRecords,
$lodging_brattleboro_newfaneRecords,
$lodging_bellowsfalls_rockinghamRecords,
$lodging_bennington_arlingtonRecords );
// shuffle our list so the records are displayed in a random order shuffle($southernvermontRecords);
// limit to the first 10 records (remove the // on the next line to make this work) //$southernvermontRecords = array_slice($southernvermontRecords, 0, 10); ?>
<?php foreach($southernvermontRecords as $record): ?>
<?php echo $record['title'] ?><br />
<?php echo $record['town'] ?><br />
<?php echo $record['phone'] ?><br />
<?php echo $record['description'] ?><a href="<?php echo $record['url'] ?>"><?php echo $record['webpage'] ?></a><br />
<!-- Please note: you can copy any or all of the code from your lodging.php page which you attached earlier into this page. If all the sections above have the same fields, you can use them on this page too. -->
<hr />
<?php endforeach ?>
<hr align="center" width="475" noshade="noshade"/>
<p><span style="font-family:Arial; color:black; "><br />
</span><span style="font-family:Arial; "> </span></p>
<div class="MsoNormal" align="center" style="text-align:center;"><span style="font-family:Arial; ">
<hr size="1" width="100%" noshade="noshade" color="#aca899" align="center" />
</span></div>
<div align="center">
<p align="center" class="black">The advertising on this page was created online by the individual advertiser using technology provided by LinkVermont.com. LinkVermont.com therefore bears absolutely no responsibility for the content of the advertisements.</p>
<p align="center"> </p>
</div>
</blockquote>
</div>
<!-- RIGHT COLUMN --><div id="apDiv6">
<center>
<p align="left">
<!-- TEXT BOX FOR ENTERING INFO IN RIGHT COLUMN -->
<b><br />
</b></p>
<p class="DarkGrey"> </p>
</center>
<blockquote>
<div id="apDiv9">
<p align="center" class="bold">Town Locations<br />
& Directions From Anywhere
</p>
<p align="center"><iframe width="150" height="150" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=115655325636906851726.000482a508daddc29e14b&ll=43.032761,-72.619629&spn=0.602295,0.829468&z=8&output=embed"></iframe>
<br />
<br />
View <a href="http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=115655325636906851726.000482a508daddc29e14b&ll=43.032761,-72.619629&spn=0.602295,0.829468&z=8&source=embed" style="color:#0000FF;text-align:center">Brattleboro, Newfane,<br />
<span style="text-align: center"></span>Townshend & Putney Vermont <br />
Area Map</a> on
in a larger map </p>
<p align="left" class="left"><a href="http://www.linkvermont.com/townsvill/brattleboro_newfane/index.htm" target="_self">Area Home Page<br />
</a><a href="http://linkvermont.com/Scenic_Drives/scenic_drives_yearround.htm" target="_blank">Scenic Drives<br />
</a><a href="http://www.linkvermont.com/photogalleries/Brattleboro Area Photo Gallery/">Photo Gallery</a><br />
<a href="/vacationhomerentals.htm" target="_self">Home Rentals</a><br />
<a href="http://www.linkvermont.com/external_links/weather_brattleboro.htm" target="_blank">Weather Conditions & Forecast</a></p>
<p align="center" class="small"><a href="http://linkvermont.com/advertising_LODGING.htm" target="_blank">Advertising Info</a></p>
</div></blockquote>
</div>
</body>
</html>[/#000000]
I'm pasting in the code BELOW. If you wish it sent another way let me know...[/#000000]
<?php
require_once "/netapp/whnas-swamp/s10/s10/01575/www.linkvermont.com/webdocs/cmsAdmin/lib/viewer_functions.php";
?>[/#000000]
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<TITLE> - LinkVermont.com</TITLE>
<META NAME="description" CONTENT="">
<META NAME="KeyWords" CONTENT="">
<meta name="target" contents="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Author" content="WebLinks, Inc." />
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
width:750px;
height:200px;
z-index:1;
}
#apDiv2 {
position:absolute;
width:200px;
height:9000px;
z-index:1;
background: #9966FF;
}
#apDiv3 {
position:absolute;
width:979px;
height:27px;
z-index:2;
left: 8px;
top: 15px;
background-color: #000;
}
#apDiv4 {
position:absolute;
width:777px;
height:218px;
z-index:3;
left: 210px;
top: 42px;
background-color: #000;
}
#apDiv5 {
position:absolute;
width:553px;
height:10000px;
z-index:4;
left: 210px;
top: 261px;
background-color: #FFF;
font-size: small;
font-family: Arial, Helvetica, sans-serif;
}
#apDiv6 {
position:absolute;
width:225px;
height:9000px;
z-index:5;
left: 763px;
top: 181px;
background-color: #CCC;
font-family: Tahoma, Geneva, sans-serif;
font-size: x-small;
font-weight: bold;
}
body {
background-color: #330066;
}
#apDiv7 {
position:absolute;
width:200px;
height:115px;
z-index:7;
left: -22px;
top: 266px;
}
#apDiv5 blockquote p strong black free listings {
color: #000;
}
#apDiv8 {
position:absolute;
width:200px;
height:32px;
z-index:1;
left: 14px;
top: 20px;
font-family: Tahoma, Geneva, sans-serif;
font-size: small;
text-align: center;
color: #000;
}
.bold {
font-weight: bold;
font-family: Tahoma, Geneva, sans-serif;
font-size: small;
}
.small {
font-size: small;
font-family: Tahoma, Geneva, sans-serif;
font-weight: normal;
text-align: left;
}
.alignLEFT {
text-align: left;
font-size: x-small;
}
#apDiv9 {
position:absolute;
width:186px;
height:255px;
z-index:8;
left: 23px;
top: 20px;
}
.DarkGrey {
color: #666;
}
.blue {
color: #00F;
}
.red {
color: #F00;
}
.xsmall {
font-size: x-small;
}
.bold {
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
}
#apDiv10 {
position:absolute;
width:273px;
height:177px;
z-index:1;
left: 38px;
top: -217px;
}
#apDiv11 {
position:absolute;
width:317px;
height:169px;
z-index:6;
left: 34px;
top: 57px;
}
#apDiv12 {
position:absolute;
width:89px;
height:18px;
z-index:7;
left: 174px;
top: 363px;
}
-->
</style>
<style type="text/css">
<!--
p.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Swis721 BT";
}
div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Swis721 BT";
}
.black { color: #000;
}
.arial {
font-family: Arial, Helvetica, sans-serif;
}
.bold {
}
.left {
text-align: left;
font-size: small;
font-weight: normal;
}
-->
</style>
</head>
<body link="#0000FF" vlink="#0000FF" alink="#0000FF">
<!--LEFT COLUMN -->
<!-- DHTML Menu Builder Loader Code START --><script language="JavaScript" type="text/javascript">
var navVer = navigator.appVersion;
if(navVer.substr(0,3) >= 4)
if((navigator.appName=="Netscape") && (parseInt(navigator.appVersion)==4))
document.write('<'+'script language="JavaScript" type="text/javascript" src="/menus/nsmenu.js"><\/script\>');
else
document.write('<'+'script language="JavaScript" type="text/javascript" src="/menus/iemenu.js"><\/script\>');
</script>
<!-- DHTML Menu Builder Loader Code END --><div id="apDiv2">
<p> </p>
</div>
<!-- TOP BAR -->
<div id="apDiv3"><img src="http://www.linkvermont.com/PAGE_LAYOUTS_Layer_Images/LinkVermont_BARLOGO.png" width="200" height="27" /></div>
<!--HEADER IMAGE --><div id="apDiv4">
<p><img src="/PAGE_LAYOUTS_Header_Images/manchester_inn_porch_summer.jpg" alt="Photo: Manchester Vermont - Copyright by LinkVermont" /></p>
<p> </p>
</div>
<!-- HEADER TEXT OVERLAY -->
<div id="apDiv11"><img src="/PAGE_LAYOUTS_Header_Images/p22_welcome_greenmountainstate.png" width="335" height="167" alt="Welcome To The Brattleboro Vermont Area" /></div>
</div>
<!-- BODY COLUMN -->
<div id="apDiv5">
<blockquote>
<p align="center"><strong><span style="font-family:Georgia; font-size:16pt;"><br />
Southern Vermont <br />
Featured Lodging Establishments</span></strong></p>
<p align="center"> </p>
<p align="center"><i>The Featured Listings Below are displayed in Random Order</i></p>
<!-- INSERT PHOTOLINK PHP CODE -->
<?php require_once "/netapp/whnas-swamp/s10/s10/01575/www.linkvermont.com/webdocs/cmsAdmin/lib/viewer_functions.php";
list($lodging_manchesterareaRecords, ) = getRecords(array( 'tableName' => 'lodging_manchesterarea' ));
list($lodging_weston_londonderryRecords, ) = getRecords(array( 'tableName' => 'lodging_weston_londonderry' )); list($lodging_chester_graftonRecords, ) = getRecords(array( 'tableName' => 'lodging_chester_grafton' )); list($lodging_brattleboro_newfaneRecords, ) = getRecords(array( 'tableName' => 'lodging_brattleboro_newfane' )); list($lodging_bellowsfalls_rockinghamRecords, ) = getRecords(array( 'tableName' => 'lodging_bellowsfalls_rockingham' )); list($lodging_bennington_arlingtonRecords, ) = getRecords(array( 'tableName' => 'lodging_bennington_arlington' ));
// combine all records collected above into one big list
$southernvermontRecords = array_merge(
$lodging_manchesterareaRecords,
$lodging_weston_londonderryRecords,
$lodging_chester_graftonRecords,
$lodging_brattleboro_newfaneRecords,
$lodging_bellowsfalls_rockinghamRecords,
$lodging_bennington_arlingtonRecords );
// shuffle our list so the records are displayed in a random order shuffle($southernvermontRecords);
// limit to the first 10 records (remove the // on the next line to make this work) //$southernvermontRecords = array_slice($southernvermontRecords, 0, 10); ?>
<?php foreach($southernvermontRecords as $record): ?>
<?php echo $record['title'] ?><br />
<?php echo $record['town'] ?><br />
<?php echo $record['phone'] ?><br />
<?php echo $record['description'] ?><a href="<?php echo $record['url'] ?>"><?php echo $record['webpage'] ?></a><br />
<!-- Please note: you can copy any or all of the code from your lodging.php page which you attached earlier into this page. If all the sections above have the same fields, you can use them on this page too. -->
<hr />
<?php endforeach ?>
<hr align="center" width="475" noshade="noshade"/>
<p><span style="font-family:Arial; color:black; "><br />
</span><span style="font-family:Arial; "> </span></p>
<div class="MsoNormal" align="center" style="text-align:center;"><span style="font-family:Arial; ">
<hr size="1" width="100%" noshade="noshade" color="#aca899" align="center" />
</span></div>
<div align="center">
<p align="center" class="black">The advertising on this page was created online by the individual advertiser using technology provided by LinkVermont.com. LinkVermont.com therefore bears absolutely no responsibility for the content of the advertisements.</p>
<p align="center"> </p>
</div>
</blockquote>
</div>
<!-- RIGHT COLUMN --><div id="apDiv6">
<center>
<p align="left">
<!-- TEXT BOX FOR ENTERING INFO IN RIGHT COLUMN -->
<b><br />
</b></p>
<p class="DarkGrey"> </p>
</center>
<blockquote>
<div id="apDiv9">
<p align="center" class="bold">Town Locations<br />
& Directions From Anywhere
</p>
<p align="center"><iframe width="150" height="150" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=115655325636906851726.000482a508daddc29e14b&ll=43.032761,-72.619629&spn=0.602295,0.829468&z=8&output=embed"></iframe>
<br />
<br />
View <a href="http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=115655325636906851726.000482a508daddc29e14b&ll=43.032761,-72.619629&spn=0.602295,0.829468&z=8&source=embed" style="color:#0000FF;text-align:center">Brattleboro, Newfane,<br />
<span style="text-align: center"></span>Townshend & Putney Vermont <br />
Area Map</a> on
in a larger map </p>
<p align="left" class="left"><a href="http://www.linkvermont.com/townsvill/brattleboro_newfane/index.htm" target="_self">Area Home Page<br />
</a><a href="http://linkvermont.com/Scenic_Drives/scenic_drives_yearround.htm" target="_blank">Scenic Drives<br />
</a><a href="http://www.linkvermont.com/photogalleries/Brattleboro Area Photo Gallery/">Photo Gallery</a><br />
<a href="/vacationhomerentals.htm" target="_self">Home Rentals</a><br />
<a href="http://www.linkvermont.com/external_links/weather_brattleboro.htm" target="_blank">Weather Conditions & Forecast</a></p>
<p align="center" class="small"><a href="http://linkvermont.com/advertising_LODGING.htm" target="_blank">Advertising Info</a></p>
</div></blockquote>
</div>
</body>
</html>[/#000000]
Re: [chris] POST ONCE TO 2 DIFFERENT SECTION EDITORS
By weblinks - April 2, 2010
Chris....
YES, YES, YES!!!!
I've managed to fix ALL[/#ff0000] of the remaining problems... the images, icons, shuffle, etc. Thanks for getting me to the point that I could.
Best,
Bob
YES, YES, YES!!!!
I've managed to fix ALL[/#ff0000] of the remaining problems... the images, icons, shuffle, etc. Thanks for getting me to the point that I could.
Best,
Bob