• Topic title - WebBoardSub

    By Martin Clayton 2 decades ago

    After the topic title in the WebBoardSub view, the word 'Undefined' appears. What should be showing there and how do I fix it? This only happens for the first entry, not the replies.

    • RSS

      By Jamie Jenkins 2 decades ago

      I believe that is because the RSS feed is turned off.



      Try going into the config document, and enabling RSS under the Syndication & Emails section..

      • By Martin Clayton 2 decades ago

        Thanks for that - you are right. I had tried turning on RSS before but still got the 'undefined' text - must have been cached in my browser. It would be nice to not have the undefined text at all if RSS is turned off - so would still like to know how to remove/change the text.

        • else condition missing... fixed

          By Rohit Choudha 2 decades ago

          I have removed the "undefined" tag when we turn off the RSS feed.



          Below is the function for 'topic RSS'. Since the else part was not handled it was returning undefined. I have added the same and now it is working fine.



          function doTopicRSSLink(id)

          {

          if (onimod_rss=="YES")

          {

          return '';

          }

          else

          {

          return ""

          }

          }



          You can find the same in the common.js in script library under RSS section along with other functions to show the RSS icon for database and categories.

          I have listed the for your reference.



          function
          doRSSLink(category) {if (onimod_rss=="YES") {document.write('')}}



          function doDbRSSLink() {if (onimod_rss=="YES") {document.write('')}}



          function
          doTopicRSSLink(id) {if (onimod_rss=="YES") {return '';}else{return "" }}

          • By Martin Clayton 2 decades ago

            Many thanks for that - the boss is now happy (well, happier anyway!!!) :)