<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>RSS feed error message/Headlines from multiple sections</title>
        <link>https://interactivetools.com/forum/forum-posts.php?RSS-feed-error-message-Headlines-from-multiple-sections-70200</link>
        <description></description>
        <pubDate>Mon, 20 Jul 2026 02:48:28 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;RSS-feed-error-message-Headlines-from-multiple-sections-70200" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [Dave] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198440#post2198440</link>
          <description><![CDATA[Thanks, Dave.<br /><br />I figured out why the errant headline wasn't appearing at the top. The article was created a few days ago, but gets updated every day (it's tracking the medical condition of a Formula 1 driver who was injured in a crash).<br /><br />Cheers,<br />]]></description>
          <pubDate>Thu, 30 Jul 2009 11:07:19 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198440#post2198440</guid>
        </item>
                <item>
          <title>Re: [NigelGordijk] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198438#post2198438</link>
          <description><![CDATA[Yes, you're only going to be able to display images or thumbnails if the section has been configured to have uploads and thumbnails.<br /><br />&gt;Any idea why the latest headline is missing, please? <br /><br />I'm not sure, I'd check if the record is hidden, or has a publishDate or removeDate field.  Or anything in a &quot;where&quot; option that might be filtering it out.<br /><br />Hope that helps!<br />]]></description>
          <pubDate>Thu, 30 Jul 2009 11:01:03 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198438#post2198438</guid>
        </item>
                <item>
          <title>Re: [Dave] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198429#post2198429</link>
          <description><![CDATA[Unfortunately, I'm getting an error message when I add that code: <a target="_blank" href="http://www.yallaf1.com/index2.php">http://www.yallaf1.com/index2.php</a>. Might this be because the Daily News section doesn't have any images, only the Galleries section does?<br /><br />Also, I just noticed that the Updates list on this page seems to be omitting the most recent headline taken from the Daily News section. You can see the full list of Daily News headlines here: <a target="_blank" href="http://www.yallaf1.com/index.php">http://www.yallaf1.com/index.php</a>. Any idea why the latest headline is missing, please?<br />]]></description>
          <pubDate>Wed, 29 Jul 2009 14:53:57 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198429#post2198429</guid>
        </item>
                <item>
          <title>Re: [NigelGordijk] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198427#post2198427</link>
          <description><![CDATA[Great, so the sorting is working?<br /><br />&gt;Any advice on the thumbnails, please? <br /><br />Yes, if you're using these variables to display an image:<br />&lt;?php echo $upload['urlPath'] ?&gt;<br />&lt;?php echo $upload['width'] ?&gt;<br />&lt;?php echo $upload['height'] ?&gt;<br /><br />You can use this to access the first thumbnail:<br />&lt;?php echo $upload['thumbUrlPath'] ?&gt;<br />&lt;?php echo $upload['thumbWidth'] ?&gt;<br />&lt;?php echo $upload['thumbHeight'] ?&gt;<br /><br />And this to access thumbnails 2 through 4<br />&lt;?php echo $upload['thumbUrlPath2'] ?&gt;<br />&lt;?php echo $upload['thumbWidth2'] ?&gt;<br />&lt;?php echo $upload['thumbHeight2'] ?&gt;<br /><br />Hope that helps!<br />]]></description>
          <pubDate>Wed, 29 Jul 2009 14:30:08 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198427#post2198427</guid>
        </item>
                <item>
          <title>Re: [Dave] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198426#post2198426</link>
          <description><![CDATA[Perfect! Thanks.<br /><br />Any advice on the thumbnails, please?<br />]]></description>
          <pubDate>Wed, 29 Jul 2009 13:57:12 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198426#post2198426</guid>
        </item>
                <item>
          <title>Re: [NigelGordijk] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198425#post2198425</link>
          <description><![CDATA[Hi Nigel,<br /><br />Let's start with the sorting problem, try reverse the variable names in the custom sorting function we wrote for you:<br /><br /><code>function _sortByDate($recordA, $recordB) { <br />  return strcmp($record<b><span style="color:red">B</span></b>['createdDate'], $record<b><span style="color:red">A</span></b>['createdDate']); <br />}</code><br /><br />Let me know if that fixes the sort order for you.<br />]]></description>
          <pubDate>Wed, 29 Jul 2009 13:51:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198425#post2198425</guid>
        </item>
                <item>
          <title>Re: [ross] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198424#post2198424</link>
          <description><![CDATA[Hi, Ross.<br /><br />Managed to get most of this working, but with one problem.<br /><br /><a target="_blank" href="http://www.yallaf1.com/index2.php">http://www.yallaf1.com/index2.php</a><br /><br />As you can see, the items are listed with the oldest one at the top and the most recent at the bottom. Please can you tell me how I do this the other way round? The Updates are taken from these two sections - <a target="_blank" href="http://www.yallaf1.com/news-latest.php">http://www.yallaf1.com/news-latest.php</a> and <a target="_blank" href="http://www.yallaf1.com/galleries_video.php">http://www.yallaf1.com/galleries_video.php</a> - where they are appearing in the correct order.<br /><br />Also, I've set up the admin for both of these sections - Daily News and Galleries - so that it creates one large image, a medium thumbnail, and a small thumbnail (&quot;Create thumbnail 2&quot;). I'd like the small thumbnail to appear next to the relevant headline, but I can only set this up so that the medium thumbnail shows up. Please can you advise on how I can choose which of the three image sizes appear?<br /><br />Thanks!<br />]]></description>
          <pubDate>Wed, 29 Jul 2009 13:25:28 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198424#post2198424</guid>
        </item>
                <item>
          <title>Re: [ross] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198347#post2198347</link>
          <description><![CDATA[Thanks, Ross. I'll give this a try.<br />]]></description>
          <pubDate>Thu, 23 Jul 2009 13:24:01 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198347#post2198347</guid>
        </item>
                <item>
          <title>Re: [NigelGordijk] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198345#post2198345</link>
          <description><![CDATA[Hi Nigel<br /><br />That makes sense. This one ended up being a little trickier than expected but I do have some code you can try out:<br /><br /><code>&lt;?php $mergedArray = array_merge($news1Records, $news2Records, $news3Records); ?&gt; <br />&lt;?php<br /><br />uasort($mergedArray, '_sortByDate');<br />function _sortByDate($recordA, $recordB) {<br />  return strcmp($recordA['createdDate'], $recordB['createdDate']);<br />}<br /><br />?&gt;<br /><br />&lt;?php foreach ($mergedArray as $record): ?&gt; <br />&lt;?php echo $record['createdDate']; ?&gt; -  &lt;?php echo $record['title']; ?&gt;&lt;br/&gt; <br />&lt;?php endforeach ?&gt;</code><br /><br />The first line you just need to swap in your arrays, then in the foreach loop, you can swap in the approriate fields. I have it displaying the created date and title.  <br /><br />This will sort your list based on when each item was created.<br /><br />Give this a shot and let me know how you make out :).<br />]]></description>
          <pubDate>Thu, 23 Jul 2009 13:18:29 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198345#post2198345</guid>
        </item>
                <item>
          <title>Re: [ross] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198302#post2198302</link>
          <description><![CDATA[Hi, Ross.<br /><br />Thanks for your reply.<br /><br />Creating one list from two sets of data isn't a problem for me; it's creating a single list that is chronological based on the order that the content was added, regardless of which section it is taken from.<br /><br />For example, say the list is made up of five headlines that is made up of the five most recent articles in the Top Stories and Daily News sections. It might be that the headline at the top of the list comes from Daily News because that was the article that was added most recently. The second might be from Top Stories because it was the second most recent, and so on.<br /><br />Does that description make sense? I'm not trying to have, say, all of the most recent Top Stories' headlines followed by all of the ones for Daily News. We'd like them to be mixed up, if possible.<br /><br />Kind regards,<br />]]></description>
          <pubDate>Mon, 20 Jul 2009 08:25:17 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198302#post2198302</guid>
        </item>
                <item>
          <title>Re: [NigelGordijk] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198268#post2198268</link>
          <description><![CDATA[Hi Nigel<br /><br />You should be able to get one list of records from two different sections in CMS Builder. The way I would do is stick the viewer code for both sections at the top of your page. This will give you one array of records for each section.<br /><br />You would then need to combine those sections (there's a php function for that) and then voila. One list of records that's actually comprised from two sections.<br /><br />Let me know if that makes sense. Can I go over the code in some more detail for you?  It's probably going to get a little advanced.  The best place to start would be if you could just set me up a test.php page with the viewers for both sections you want to combine in it. Just post that as an attachment.<br /><br />Thanks!<br />]]></description>
          <pubDate>Fri, 17 Jul 2009 15:08:40 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198268#post2198268</guid>
        </item>
                <item>
          <title>Re: [isdoo] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198259#post2198259</link>
          <description><![CDATA[Bizarrely, the RSS feed is working perfectly now! Thanks for your help, Isdoo.<br /><br />Does anyone know the answer to my other question, please? On the homepage - http://www.yallaf1.com - is a column of headlines under the title &quot;Daily News&quot;. These headlines all come from a single section of the site that is controlled with CMSB. Is there a way of collating headlines from more than one section so that they are all chronological? Therefore, just as an example, there might be two &quot;Top Stories&quot; headlines next to each other because they've been added most recently, followed by a headline from &quot;Daily News&quot;, two from &quot;Blog&quot;, etc.<br /><br />Thanks,<br />]]></description>
          <pubDate>Fri, 17 Jul 2009 13:24:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198259#post2198259</guid>
        </item>
                <item>
          <title>Re: [NigelGordijk] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198258#post2198258</link>
          <description><![CDATA[I can't see a style now for your page at http://www.yallaf1.com/rss.xml.php - but I can see a desciption now :)<br />]]></description>
          <pubDate>Fri, 17 Jul 2009 11:02:43 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198258#post2198258</guid>
        </item>
                <item>
          <title>Re: [isdoo] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198257#post2198257</link>
          <description><![CDATA[Actually, this line should read:<br /><br />&lt;description&gt;&lt;?php echo htmlspecialchars($record['introduction']); ?&gt;&lt;/description&gt;<br /><br />I've corrected the name error - thanks for pointing that out - but still no joy.<br />]]></description>
          <pubDate>Fri, 17 Jul 2009 10:44:43 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198257#post2198257</guid>
        </item>
                <item>
          <title>Re: [NigelGordijk] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198256#post2198256</link>
          <description><![CDATA[certainly looking at your rss feed, I can't see a summary or content, so it certainly looks like the line...<br /><br />&lt;description&gt;&lt;?php echo htmlspecialchars($record['summary']); ?&gt;&lt;/description&gt; <br /><br />is at fault. If your field is called summary, then I can't see where the issue might lie, especially as the other fields are working.<br />]]></description>
          <pubDate>Fri, 17 Jul 2009 09:39:44 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198256#post2198256</guid>
        </item>
                <item>
          <title>Re: [isdoo] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198255#post2198255</link>
          <description><![CDATA[Thanks for the swift reply, Isdoo.<br /><br />I've tried your suggestion - including limiting the number of characters -  but the same thing is happening. <br /><br />I actually think that the feed isn't accessing the updated version of the rss.xml.php file. I compacted the code in this file now there isn't a line 22, which is where it says the error is. <br /><br />I tried deleting this file from the server but the same error message appears, whereas I would have expected a message that tells me the feed can't be read.<br />]]></description>
          <pubDate>Fri, 17 Jul 2009 09:16:44 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198255#post2198255</guid>
        </item>
                <item>
          <title>Re: [NigelGordijk] RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198254#post2198254</link>
          <description><![CDATA[Assuming that your description field is called summary rather than say content, then I can't see why this line should not work - however confirm to see the field name within your table.<br /><br />&lt;description&gt;&lt;?php echo htmlspecialchars($record['summary']); ?&gt;&lt;/description&gt; <br /><br />incidentally, I use, the code below to limit my content to 75 characters rather than posting the ful article in the RSS feed.<br /><code>&lt;?php <br /> <br />  // Usage: &lt; ?php print maxWords($content, 25); ? &gt; <br />  function maxWords($textOrHtml, $maxWords) { <br />  $text = strip_tags($textOrHtml); <br />  $words = preg_split(&quot;/\s+/&quot;, $text, $maxWords+1); <br />  if (count($words) &gt; $maxWords) { unset($words[$maxWords]); } <br />  $output = join(' ', $words); <br /> <br />  return $output; <br />  } <br />?&gt; <br />     <br />      <br />&lt;?php foreach ($news1Records as $record): ?&gt; <br />        &lt;item&gt; <br />          &lt;title&gt;&lt;?php echo htmlspecialchars($record['title']) ?&gt;&lt;/title&gt; <br />          &lt;link&gt;http://www.fansfocus.com&lt;?php echo $record['_link'] ?&gt;&lt;/link&gt; <br />          &lt;description&gt;&lt;?php echo maxWords(htmlspecialchars($record['content']), 75); ?&gt;....&lt;/description&gt; <br />          &lt;pubDate&gt;&lt;?php echo date(&quot;r&quot;, strtotime($record['date'])) ?&gt;&lt;/pubDate&gt; <br />          &lt;guid isPermaLink=&quot;true&quot;&gt;http://www.fansfocus.com&lt;?php echo $record['_link'] ?&gt;&lt;/guid&gt; <br />        &lt;/item&gt; <br />&lt;?php endforeach ?&gt;</code><br />]]></description>
          <pubDate>Fri, 17 Jul 2009 09:07:12 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198254#post2198254</guid>
        </item>
                <item>
          <title>RSS feed error message/Headlines from multiple sections</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2198253#post2198253</link>
          <description><![CDATA[Hi, All.<br /><br />I have two CMS Builder issues I'd like to sort out.<br /><br />======<br /><br />1. RSS feed: I've got this to work on <a target="_blank" href="http://www.yallaf1.com">http://www.yallaf1.com</a>, and the feeds are appearing when I add them to Google and Yahoo. However, I'm getting the following error message, which appears under the headline link: <br /><br />&quot;Notice: Undefined index: summary in /home/yallaf5/public_html/rss.xml.php on line 22&quot;<br /><br />This is the code that I'm using in the file called rss.xml.php:<br /><br />&lt;?php header('Content-type: application/xml; charset=utf-8'); ?&gt;&lt;?php echo '&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;'; ?&gt;<br />&lt;?php<br />  <br />  require_once &quot;/home/yallaf5/public_html/cmsAdmin/lib/viewer_functions.php&quot;;<br /><br />  list($top_storiesRecords, $top_storiesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'top_stories',<br />  ));<br /><br />?&gt;<br />&lt;rss version=&quot;2.0&quot;&gt; <br />  &lt;channel&gt; <br />    &lt;title&gt;YallaF1 - Daily Formula 1 News&lt;/title&gt; <br />      &lt;link&gt;http://www.yallaf1.com&lt;/link&gt; <br />      &lt;description&gt;YallaF1.com Daily Formula 1 News&lt;/description&gt; <br />      &lt;pubDate&gt;&lt;?php echo date('r'); ?&gt;&lt;/pubDate&gt; <br />      &lt;language&gt;en-us&lt;/language&gt;<br />&lt;?php foreach ($top_storiesRecords as $record): ?&gt; <br />        &lt;item&gt; <br />          &lt;title&gt;&lt;?php echo htmlspecialchars($record['title']) ?&gt;&lt;/title&gt; <br />          &lt;link&gt;http://www.yallaf1.com&lt;?php echo $record['_link'] ?&gt;&lt;/link&gt;<br />		  &lt;description&gt;&lt;?php echo htmlspecialchars($record['summary']); ?&gt;&lt;/description&gt; <br />          &lt;pubDate&gt;&lt;?php echo date(&quot;r&quot;, strtotime($record['date'])) ?&gt;&lt;/pubDate&gt; <br />          &lt;guid isPermaLink=&quot;true&quot;&gt;http://www.yallaf1.com&lt;?php echo $record['_link'] ?&gt;&lt;/guid&gt; <br />        &lt;/item&gt; <br />&lt;?php endforeach ?&gt;  <br />  &lt;/channel&gt; <br />&lt;/rss&gt;<br /><br />Can anyone tell me where I'm going wrong, please?<br /><br />======<br /><br />2. On the homepage - <a target="_blank" href="http://www.yallaf1.com">http://www.yallaf1.com</a> - is a column of headlines under the title &quot;Daily News&quot;. These headlines all come from a single section of the site that is controlled with CMSB. Is there a way of collating headlines from more than one section so that they are all chronological? Therefore, just as an example, there might be two &quot;Top Stories&quot; headlines next to each other because they've been added most recently, followed by a headline from &quot;Daily News&quot;, two from &quot;Blog&quot;, etc.<br /><br />Thanks!<br />]]></description>
          <pubDate>Fri, 17 Jul 2009 08:44:35 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2198253#post2198253</guid>
        </item>
              </channel>
    </rss>
  