• Dead images on BlogByDay

    By Rune Carlsen 2 decades ago

    When using the blogbyday view (selecting day in the calendar), i get dead images. The url of the images are:



    http://www.domain.no/directory/database.nsf/2/


    • and nothing more. What's up?



      Rune
    • what about this one? what's the secret?

      By Rune Carlsen 2 decades ago
      • confirmed, this is a bug

        By Christian Brandlehner 2 decades ago

        I can reproduce the issue. I am not using this feature by myself so I didn't tested it.

        It will take some time to fix this, anybody in this forum willing to look into this one?



        Christian

        • too bad

          By Rune Carlsen 2 decades ago

          Post it in the forum - more likely that ppl will read your shout for help there…



          Rune

          • fix attempt

            By Christian Brandlehner 2 decades ago

            open the view "HTML\Single Day Blog".

            Replace the formula in the 4th column with:

            permalink := "/"+@WebDbName + "/images/permalink.gif";



            Subject := @ReplaceSubstring(Subject;"&";"&");

            Subject := @ReplaceSubstring(Subject;"\"";""");

            Subject := @ReplaceSubstring(Subject;"";" ");



            TitleHTML := "<span style=\"float:left;\"><a href=\"plinks/"+permalink+"\" title=\"PermaLink : "+
            Subject+"\"><img alt=\"Permalink: "+ Subject+"\" src=\"pushpin.gif\" border=\"0\">"+Subject+"</a></span>";



            PreLine2 := @If(ShowAuthor="Yes" | ShowCategory="Yes";"<div class=\"storytitle\"><p class=\"storytitletext\">";"");



            CategoryHTML := "<span style=\"float:right;\">" + $$Categories + "</span>";



            PostLine2 := @If(ShowAuthor="Yes" | ShowCategory="Yes";"</p></div>";"");



            PreLine3 := @If(ShowLocation="Yes";"<div class=\"storytitle\"><p class=\"storytitletext\">";"");



            LocationHTML := "<span style=\"float:left;\">, " + text_Land + "</span>";



            PostLine3 := @If(ShowLocation="Yes";"</p></div>";"");



            ShowCat := @If(ShowCategory="No"; ""; CategoryHTML);

            ShowLoc := @If(ShowLocation="No"; ""; LocationHTML);



            readmore := @If(FinalReadMoreText != "";"<br/><a title=\"Read More On This Entry…\" href=\"plinks/"+permalink+"\">Read More . . .</a>";"");

            thumbnail := "/" + @WebDbName + "/plinks/"+PermaLink+"/$File/" + Thumbnail;



            ShowPicture := @If(Thumbnail="None";"";"<img alt=\"Preview: "+_Subject +"\" src=\""+thumbnail+"\">");



            HTML :=

                &quot;&lt;div class=\&quot;storytitle\&quot;&gt;&lt;p class=\&quot;storytitletext\&quot;&gt;&quot; +<br/>
                TitleHTML+ &quot;&lt;/p&gt;&lt;/div&gt;&quot;+<br/>
                PreLine2 + ShowCat + PostLine2 +<br/>
                PreLine3 + PostLine3 +<br/>
                &quot;&lt;div class=\&quot;StoryContents\&quot;&gt;&lt;p class=\&quot;StoryContentsText\&quot; &gt;&quot;+<br/>
                &quot;&lt;br/&gt;&quot;+ ShowPicture + FinalStoryText+ReadMore+<br/>
                &quot;&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&quot;;<br/>
            





            @If(@IsResponseDoc;"";HTML)





            Please report if this fix fits your requirements.



            Christian