• RSS icon

    By Brian W Wiggins 2 decades ago

    I have noticed that if I turn off syndication in the configuration, then where the RSS icon should be in a topic (next to subject) it will say "undefined". If I turn on syndication then the RSS icon displays properly. However I do not see this "undefined" string appear for any categories or anywhere else.

    • will look into it. thanks

      By Michael Bourak 2 decades ago
      • "undefined" can be fixed with this small change

        By Rohit Choudha 2 decades ago

        I was able to fix it.



        Now the "undefined" tag is removed when we turn off the RSS feed.

        Below is the function for 'topic RSS'. Since the else part was missing, it was returning nothing/null and that had been treated as 'undefined'.I have added the same and now it is working fine.



        function _doTopicRSSLink(id)

        {

        if (onimod_rss=="YES")

        {

          return '&lt;A HREF=&quot;/'+onimod_webdbname+'/rssfeed.xml?OpenPage&amp;MainId='+id+'&quot; alt=&quot;'+text_rsstopic+'&quot; title=&quot;'+text_rsstopic+'&quot;&gt;&lt;img src=&quot;rss.gif&quot; border=0&gt;&lt;/a&gt;';<br/>
        

        }

        else

        {

          return &quot;&quot; <br/>
        

        }

        }

    • "undefined" can be fixed with this small change

      By Rohit Choudha 2 decades ago

      I was able to fix it.



      Now the "undefined" tag is removed when we turn off the RSS feed.

      Below is the function for 'topic RSS'. Since the else part was missing, it was returning nothing/null and that had been treated as 'undefined'.I have added the same and now it is working fine.



      function _doTopicRSSLink(id)

      {

      if (onimod_rss=="YES")

      {

      return '';

      }

      else

      {

      return ""

      }

      }