link to next page broken, no date in new entries

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

link to next page broken, no date in new entries

Post by ewehdemeyer »

Hi,
owing to my editing in the entries.tpl (still not working: linking from categories to static pages thread 1 ) I lost the designation (" ... vollständig lesen") of the link to extended articles thread 2 - now the footer-link on the startpage to "next page" is broken (status bar is showing a wrong URI is called) and new entries don't get a date anymore. So there's a mess in the entries.tpl - or somewhere else. Any idea to fix all these problems? (and world peace too, while we are at it)

http://kunst-raum-volksdorf.de/kunst-katen-blog/
bulletproof

eva
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Post by ewehdemeyer »

Hi,
the active entries.tpl (fresh downloaded from the template/bulletproof folder)

thx in advance
eva

Code: Select all

<!-- ENTRIES START -->
{serendipity_hookPlugin hook="entries_header" addData="$entry_id"}

{foreach from=$entries item="dategroup"}
<div class="hentry serendipity_Entry_Date{if $dategroup.is_sticky} serendipity_Sticky_Entry{/if}">
    {if $dategroup.is_sticky}
        {if $template_option.show_sticky_entry_heading == 'true'}
            <h3 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h3>
        {/if}
    {else}
        <h3 class="serendipity_date"><abbr class="published" title="{$dategroup.date|@formatTime:'%Y-%m-%dT%H:%M:%S%Z'}">
{$dategroup.date|@formatTime:$template_option.date_format}</abbr></h3>
    {/if}

    {foreach from=$dategroup.entries item="entry"}
        <h4 class="entry-title serendipity_title"><a href="{$entry.link}" rel="bookmark">{$entry.title}</a></h4>

        <div class="serendipity_entry serendipity_entry_author_{$entry.author|@makeFilename} {if $entry.is_entry_owner}serendipity_entry_author_self{/if}">

            {if (not $dategroup.is_sticky or ($dategroup.is_sticky and $template_option.show_sticky_entry_footer == 'true'))}
                {if $template_option.entryfooterpos == 'belowtitle'}
                    <div class='serendipity_entryFooter belowtitle'>
                        {if $template_option.footerauthor == 'true'}
                            {$CONST.POSTED_BY} <address class="author"><a href="{$entry.link_author}">{$entry.author}</a></address>
                        {/if}

                        {if $template_option.footercategories == 'true'}
                            {if $entry.categories}
                                {$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
                            {/if}
                        {/if}

                        {if $template_option.footertimestamp == 'true'}
                            {if $dategroup.is_sticky}
                                {$CONST.ON}
                            {else}
                                {$CONST.AT}
                            {/if}
                            <a href="{$entry.link}">{if $dategroup.is_sticky}{$entry.timestamp|@formatTime:$template_option.date_format} {/if}{$entry.timestamp|@formatTime:'%H:%M'}</a>
                        {/if}

                        {if $template_option.footercomments == 'true'}
                            {if $entry.has_comments}
                                {if $use_popups}
                                    {if $template_option.altcommtrack == 'true'}
                                        | <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
                                    {else}
                                        | <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
                                    {/if}
                                {else}
                                    {if $template_option.altcommtrack == 'true'}
                                        | <a href="{$entry.link}#comments">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
                                    {else}
                                        | <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
                                    {/if}
                                {/if}
                            {/if}
                        {/if}

                        {if $template_option.footertrackbacks == 'true'}
                            {if $entry.has_trackbacks}
                                {if $use_popups}
                                    {if $template_option.altcommtrack == 'true'}
                                        | <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
                                    {else}
                                        | <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
                                    {/if}
                                {else}
                                    {if $template_option.altcommtrack == 'true'}
                                        | <a href="{$entry.link}#trackbacks">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
                                    {else}
                                        | <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
                                    {/if}
                                {/if}
                            {/if}
                        {/if}

                        {if $entry.is_entry_owner and not $is_preview}
                        <div class="editentrylink"><a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a></div>
                        {/if}

                        {$entry.add_footer}

                        {if $template_option.addthiswidget == 'true'}
                            <div class="addthiswidget">
                                <script type="text/javascript">
                                    addthis_url = '{$entry.rdf_ident|escape:url}';
                                    addthis_title = '{$entry.title|escape:url}';
                                    addthis_pub = '{$template_option.addthisaccount}';
                                </script>
                                <script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
                            </div>
                        {/if}

                    </div>
                {/if}

                {if $template_option.entryfooterpos == 'splitfoot'}
                    <div class='serendipity_entryFooter byline'>
                        {if $template_option.footerauthor == 'true'}
                            {$CONST.POSTED_BY} <address class="author"><a href="{$entry.link_author}">{$entry.author}</a></address>
                        {/if}

                        {if $template_option.footercategories == 'true'}
                            {if $entry.categories}
                                {$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
                            {/if}
                        {/if}

                        {if $template_option.footertimestamp == 'true'}
                            {if $dategroup.is_sticky}
                                {$CONST.ON}
                            {else}
                                {$CONST.AT}
                            {/if}
                            <a href="{$entry.link}">{if $dategroup.is_sticky}{$entry.timestamp|@formatTime:$template_option.date_format} {/if}{$entry.timestamp|@formatTime:'%H:%M'}</a>
                        {/if}
                    </div>
                {/if}
            {/if}

            {if $entry.categories}
                <span class="serendipity_entryIcon">
                    {foreach from=$entry.categories item="entry_category"}
                        {if $entry_category.category_icon}
                            <a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
                        {/if}
                    {/foreach}
               </span>
            {/if}
  
            <div class="entry-content serendipity_entry_body">
                {$entry.body}
                {if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
                    <span class="continue_reading"><a href="{$entry.link}#extended" title='{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title|truncate:50:" ..."}'>{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title|truncate:50:" ..."} »</a></span>
                {/if}
           </div>

            {if $entry.is_extended}
                <div class="serendipity_entry_extended"><a id="extended"></a>{$entry.extended}</div>
            {/if}

            {if (not $dategroup.is_sticky or ($dategroup.is_sticky and $template_option.show_sticky_entry_footer == 'true'))}
                {if $template_option.entryfooterpos == 'belowentry'}
                    <div class='serendipity_entryFooter belowentry'>
                        {if $template_option.footerauthor == 'true'}
                            {$CONST.POSTED_BY} <address class="author"><a href="{$entry.link_author}">{$entry.author}</a></address>
                        {/if}

                        {if $template_option.footercategories == 'true'}
                            {if $entry.categories}
                                {$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
                            {/if}
                        {/if}

                        {if $template_option.footertimestamp == 'true'}
                            {if $dategroup.is_sticky}
                                {$CONST.ON}
                            {else}
                                {$CONST.AT}
                            {/if}
                                <a href="{$entry.link}">{if $dategroup.is_sticky}{$entry.timestamp|@formatTime:$template_option.date_format} {/if}{$entry.timestamp|@formatTime:'%H:%M'}</a>
                        {/if}

                        {if $template_option.footercomments == 'true'}
                            {if $entry.has_comments}
                                {if $use_popups}
                                    {if $template_option.altcommtrack == 'true'}
                                        | <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
                                    {else}
                                        | <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
                                    {/if}
                                {else}
                                    {if $template_option.altcommtrack == 'true'}
                                        | <a href="{$entry.link}#comments">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
                                    {else}
                                        | <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
                                    {/if}
                                {/if}
                            {/if}
                        {/if}

                        {if $template_option.footertrackbacks == 'true'}
                            {if $entry.has_trackbacks}
                                {if $use_popups}
                                    {if $template_option.altcommtrack == 'true'}
                                        | <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
                                    {else}
                                        | <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
                                    {/if}
                                {else}
                                    {if $template_option.altcommtrack == 'true'}
                                        | <a href="{$entry.link}#trackbacks">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
                                    {else}
                                        | <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
                                    {/if}
                                {/if}
                            {/if}
                        {/if}

                        {if $entry.is_entry_owner and not $is_preview}
                            <div class="editentrylink"><a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a></div>
                        {/if}

                        {$entry.add_footer}

                        {if $template_option.addthiswidget == 'true'}
                            <div class="addthiswidget">
                                <script type="text/javascript">
                                    addthis_url = '{$entry.rdf_ident|escape:url}';
                                    addthis_title = '{$entry.title|escape:url}';
                                    addthis_pub = '{$template_option.addthisaccount}';
                                </script>
                                <script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
                            </div>
                        {/if}

                    </div>
                {/if}

                {if $template_option.entryfooterpos == 'splitfoot'}
                    <div class='serendipity_entryFooter infofooter'>
                        {if $template_option.footercomments == 'true'}
                            {if $entry.has_comments}
                                {if $use_popups}
                                    {if $template_option.altcommtrack == 'true'}
                                        <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
                                    {else}
                                        <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
                                    {/if}
                                {else}
                                    {if $template_option.altcommtrack == 'true'}
                                        <a href="{$entry.link}#comments">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
                                    {else}
                                        <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
                                    {/if}
                                {/if}
                            {/if}
                        {/if}

                        {if $template_option.footertrackbacks == 'true'}
                            {if $entry.has_trackbacks}
                                {if $use_popups}
                                    {if $template_option.altcommtrack == 'true'}
                                        | <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
                                    {else}
                                        | <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
                                    {/if}
                                {else}
                                    {if $template_option.altcommtrack == 'true'}
                                        | <a href="{$entry.link}#trackbacks">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
                                    {else}
                                        | <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
                                    {/if}
                                {/if}
                            {/if}
                        {/if}

                        {if $entry.is_entry_owner and not $is_preview}
                            <div class="editentrylink"><a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a></div>
                        {/if}

                        {$entry.add_footer}

                        {if $template_option.addthiswidget == 'true'}
                            <div class="addthiswidget">
                                <script type="text/javascript">
                                    addthis_url = '{$entry.rdf_ident|escape:url}';
                                    addthis_title = '{$entry.title|escape:url}';
                                    addthis_pub = '{$template_option.addthisaccount}';
                                </script>
                                <script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
                            </div>
                        {/if}

                    </div>
                {/if}
            {/if}
        </div>

        <!--
        <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
                 xmlns:dc="http://purl.org/dc/elements/1.1/">
        <rdf:Description
                 rdf:about="{$entry.link_rdf}"
                 trackback:ping="{$entry.link_trackback}"
                 dc:title="{$entry.title_rdf|@default:$entry.title}"
                 dc:identifier="{$entry.rdf_ident}" />
        </rdf:RDF>
        -->
        {$entry.plugin_display_dat}

        {if $is_single_entry and not $use_popups and not $is_preview}
            {if $CONST.DATA_UNSUBSCRIBED}
                <div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_UNSUBSCRIBED|@sprintf:$CONST.UNSUBSCRIBE_OK}</div>
            {/if}

            {if $CONST.DATA_TRACKBACK_DELETED}
                <div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_TRACKBACK_DELETED|@sprintf:$CONST.TRACKBACK_DELETED}</div>
            {/if}

            {if $CONST.DATA_TRACKBACK_APPROVED}
                <div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_TRACKBACK_APPROVED|@sprintf:$CONST.TRACKBACK_APPROVED}</div>
            {/if}

            {if $CONST.DATA_COMMENT_DELETED}
                <div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_COMMENT_DELETED|@sprintf:$CONST.COMMENT_DELETED}</div>
            {/if}

            {if $CONST.DATA_COMMENT_APPROVED}
                <div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_COMMENT_APPROVED|@sprintf:$CONST.COMMENT_APPROVED}</div>
            {/if}

            <div class="serendipity_comments serendipity_section_trackbacks">
                <a id="trackbacks"></a>
                <div class="serendipity_commentsTitle">{$CONST.TRACKBACKS}</div>
                <div class="serendipity_center">
                    <a rel="nofollow" style="font-weight: normal" href="{$entry.link_trackback}" onclick="alert('{$CONST.TRACKBACK_SPECIFIC_ON_CLICK|@escape:html}'); return false;" title="{$CONST.TRACKBACK_SPECIFIC_ON_CLICK|@escape}">{$CONST.TRACKBACK_SPECIFIC}</a>
                </div>
                <div id="serendipity_trackbacklist">{serendipity_printTrackbacks entry=$entry.id}</div>
            </div>
        {/if}

        {if $is_single_entry and not $is_preview}
            <div class="serendipity_comments serendipity_section_comments">
                <a id="comments"></a>
                <div class="serendipity_commentsTitle">{$CONST.COMMENTS}</div>
                <div class="serendipity_center">{$CONST.DISPLAY_COMMENTS_AS}
                    {if $entry.viewmode eq $CONST.VIEWMODE_LINEAR}
                        ({$CONST.COMMENTS_VIEWMODE_LINEAR} | <a href="{$entry.link_viewmode_threaded}#comments" rel="nofollow">{$CONST.COMMENTS_VIEWMODE_THREADED}</a>)
                    {else}
                        (<a rel="nofollow" href="{$entry.link_viewmode_linear}#comments">{$CONST.COMMENTS_VIEWMODE_LINEAR}</a> | {$CONST.COMMENTS_VIEWMODE_THREADED})
                    {/if}
                </div>
                <div id="serendipity_commentlist">{serendipity_printComments entry=$entry.id mode=$entry.viewmode}</div>

                {if $entry.is_entry_owner}
                    {if $entry.allow_comments}
                        <div class="serendipity_center">(<a href="{$entry.link_deny_comments}">{$CONST.COMMENTS_DISABLE}</a>)</div>
                    {else}
                        <div class="serendipity_center">(<a href="{$entry.link_allow_comments}">{$CONST.COMMENTS_ENABLE}</a>)</div>
                    {/if}
                {/if}
                <a id="feedback"></a>

                {foreach from=$comments_messagestack item="message"}
                    <div class="serendipity_center serendipity_msg_important">{$message}</div>
                {/foreach}

                {if $is_comment_added}
                    <div class="serendipity_center serendipity_msg_notice">{$CONST.COMMENT_ADDED}</div>
                {elseif $is_comment_moderate}
                    <div class="serendipity_center serendipity_msg_notice">{$CONST.COMMENT_ADDED}<br />{$CONST.THIS_COMMENT_NEEDS_REVIEW}</div>
                {elseif not $entry.allow_comments}
                    <div class="serendipity_center serendipity_msg_important">{$CONST.COMMENTS_CLOSED}</div>
                {else}
                   <div class="serendipity_section_commentform">
                       <div class="serendipity_commentsTitle">{$CONST.ADD_COMMENT}</div>
                       {$COMMENTFORM}
                   </div>
                {/if}
            </div>
        {/if}

        {$entry.backend_preview}
    {/foreach}
</div>

{foreachelse}
    {if not $plugin_clean_page}
        <div class="serendipity_overview_noentries">
            {$CONST.NO_ENTRIES_TO_PRINT}
        </div>
    {/if}
{/foreach}

<div class='serendipity_pageFooter' style="text-align: center">
    {if $footer_prev_page}
        {if $template_option.prev_next_style == 'texticon'}
            {if $template_option.colorset == 'blank'}
                <a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}"><img alt="{$CONST.PREVIOUS_PAGE}" title="{$CONST.PREVIOUS_PAGE}" src="{serendipity_getFile file="img/back.png"}" />{$CONST.PREVIOUS_PAGE}</a>
            {else}
                <a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}"><img alt="{$CONST.PREVIOUS_PAGE}" title="{$CONST.PREVIOUS_PAGE}" src="{$serendipityHTTPPath}templates/{$template}/img/{$template_option.colorset}_back.png" />{$CONST.PREVIOUS_PAGE}</a>
            {/if}
        {elseif  $template_option.prev_next_style == 'icon'}
            {if $template_option.colorset == 'blank'}
                <a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}"><img alt="{$CONST.PREVIOUS_PAGE}" src="{serendipity_getFile file="img/back.png"}" />{$CONST.PREVIOUS_PAGE}</a>
            {else}
                <a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}"><img alt="{$CONST.PREVIOUS_PAGE}" src="{$serendipityHTTPPath}templates/{$template}/img/{$template_option.colorset}_back.png" /></a>
            {/if}
        {else}
            <a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}">« {$CONST.PREVIOUS_PAGE}</a>  
        {/if}
    {/if}

    {if $footer_info}
        ({$footer_info})
    {/if}

    {if $footer_next_page}
        {if $template_option.prev_next_style == 'texticon'}
            {if $template_option.colorset == 'blank'}
                <a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}">{$CONST.NEXT_PAGE}<img alt="{$CONST.NEXT_PAGE}" title="{$CONST.NEXT_PAGE}" src="{serendipity_getFile file="img/forward.png"}" /></a>
            {else}
                <a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}">{$CONST.NEXT_PAGE}<img alt="{$CONST.NEXT_PAGE}" title="{$CONST.NEXT_PAGE}" src="{$serendipityHTTPPath}templates/{$template}/img/{$template_option.colorset}_forward.png" /></a>
            {/if}
        {elseif $template_option.prev_next_style == 'icon'}
            {if $template_option.colorset == 'blank'}
                <a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}"><img alt="{$CONST.NEXT_PAGE}" src="{serendipity_getFile file="img/forward.png"}" /></a>
            {else}
                <a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}"><img alt="{$CONST.NEXT_PAGE}" src="{$serendipityHTTPPath}templates/{$template}/img/{$template_option.colorset}_forward.png" /></a>
            {/if}
        {else}
             <a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}">{$CONST.NEXT_PAGE} »</a>
        {/if}
    {/if}

    {serendipity_hookPlugin hook="entries_footer"}
</div>
<!-- ENTRIES END -->
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: link to next page broken, no date in new entries

Post by yellowled »

ewehdemeyer wrote:So there's a mess in the entries.tpl - or somewhere else. Any idea to fix all these problems?
Use the original entries.tpl provided by BP? Retrace your steps and add the necessary changes to the fresh copy? That's all I can come up with right now, but I'm sure a good night's sleep and some coffee will bring me to look at your mess tomorrow morning :)
ewehdemeyer wrote:(and world peace too, while we are at it)
Uhm, we usually leave that to Garvin. Now that's he's finished the book, it should be fixed quickly :wink:

YL
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Re: link to next page broken, no date in new entries

Post by ewehdemeyer »

yellowled wrote: Use the original entries.tpl provided by BP? Retrace your steps and add the necessary changes to the fresh copy?
tried ... but ... there must be still more imperfection. :oops: I think the page is still practicable for visitors.

Your ideas would be appreciated - but if its to time consuming, maybe its easier to tell me, how to set it to the original state. If I set it to another theme and than back to BP - would that reset my alterations? Tomorrow I'm working until late at night, so I ll see Tuesday, if I can patch it. Or set it up from scratch.

thx
eva
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Make sure you delete all files beginning with "bulletproof" from your /templates_c/ folder - that will ensure that none of the tpl files are cached.

Next - Not sure why new entries do not have dates... are you sure you are not making them "sticky"? Something else to consider - the overview page only shows the date once, then lists all entries for that date.

Regarding the "continue reading" link... It occurs to me that the method we are using is only friendly to languages that place the "continue reading" BEFORE the entry title (ie, English) and not after the entry title (ie, German).

The actual entries.tpl code is this:

Code: Select all

<span class="continue_reading"><a href="{$entry.link}#extended" title='{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title|truncate:50:" ..."}'>{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title|truncate:50:" ..."} »</a></span>
Here are the constant definitions:

English:

Code: Select all

@define('VIEW_EXTENDED_ENTRY', 'Continue reading "%s"');
German:

Code: Select all

@define('VIEW_EXTENDED_ENTRY', '"%s" vollständig lesen');
So, in German, the entry title string comes first, then the language constant "vollständig lesen". Both are truncated to a total of 50 characters, so for German users, the "vollständig lesen" part may be partially or fully missing if the entry title is fairly long......

If anyone has a better solution for this, speak up! Best we look at this issue from a broader perspective than just the bulletproof template. My suggestion is that we just truncate the entry title...
=Don=
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Post by ewehdemeyer »

Don Chambers wrote: Something else to consider - the overview page only shows the date once, then lists all entries for that date.
thats it! ok. so, if I wish to have it explicitly written - the date must be written extra.
Don Chambers wrote: Regarding the "continue reading" link
...
My suggestion is that we just truncate the entry title...
good idea - there isn't much to be said against turning the entry title string in the same way as in the english version - than the entry title is automatically truncated - right? In which file the constant definitions can be found?

Now the only remaining problem is the not working link from the startpage to the "next page". http://www.kunst-raum-volksdorf.de/kuns ... P2/P2.html is the shown link. I'll try tracking how or from which pieces this URI is composed. Maybe $footer_next_page $CONST.NEXT_PAGE at the end of the entries.tpl are the particles I have to follow. Tuesday.

such a splendid community here - founded answers on sunday evening, I'm delighted. :D

eva
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

Don Chambers wrote:Regarding the "continue reading" link... It occurs to me that the method we are using is only friendly to languages that place the "continue reading" BEFORE the entry title (ie, English) and not after the entry title (ie, German).
It's even worse that the German translation is simply misleading. In German, it says "vollständig lesen", which translates into something like "read the entire entry". Yet the extended entry link actually skips to the beginning of the extended entry, so it should be translated differently in the German lang file in my humble opinion. (We should of course discuss this with Garvin first.)
Don Chambers wrote:My suggestion is that we just truncate the entry title...
I don't think there is a better solution in the general picture.

For selected templates, one could opt to leave out the entry title altogether and just have a shortened version without it (i.e. "Continue reading" or "Read more" like in that other blog engine).

YL
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

ewehdemeyer wrote:Now the only remaining problem is the not working link from the startpage to the "next page". http://www.kunst-raum-volksdorf.de/kuns ... P2/P2.html is the shown link. I'll try tracking how or from which pieces this URI is composed.
This is really weird. The link is definitely constructed in a wrong way, but I can't see how this happens.

http://kunst-raum-volksdorf.de/kunst-ka ... es/P2.html should theoretically be the correct link to the second page, but that doesn't seem to work, either. Somehow the archive seems screwed up altogether - just click the link for full view for May. It says there are 11 entries in may, yet the full view and short view of that month only show 6 entries ... :?

YL
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Post by ewehdemeyer »

Hi
yellowled wrote:This is really weird. The link is definitely constructed in a wrong way, but I can't see how this happens.
I think that got mix-uped while klicking and copy/Pasting and writing to get the static pages linking from the category-entries. It's not working anyway, so I'll try correcting it back. But i'm about to leave for today - so I hope to find the answer tomorrow.

thx
eva
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

yellowled wrote:In German, it says "vollständig lesen", which translates into something like "read the entire entry". Yet the extended entry link actually skips to the beginning of the extended entry, so it should be translated differently in the German lang file in my humble opinion. (We should of course discuss this with Garvin first.)
The link itself is responsible for skipping to the beginning of the extended body: <a href="{$entry.link}#extended.... and I'm not sure that is inconsistent with "read the entire story", as a viewer has presumably already read the entry body when they get to the "continue reading" link. Anyway, since I don't speak German, let me ask: If the translation is roughly "read the entire entry", can that appear BEFORE the entry title, or does it not make sense that way?
yellowled wrote:For selected templates, one could opt to leave out the entry title altogether and just have a shortened version without it (i.e. "Continue reading" or "Read more" like in that other blog engine).
Omitting the "%s" from the language constant would do exactly that, and there would be no need to change the template code. I have, in fact, already done this in a template....
=Don=
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

Don Chambers wrote:If the translation is roughly "read the entire entry", can that appear BEFORE the entry title, or does it not make sense that way?
Doesn't make sense. Or, it actually does, but no one would use it that way :) I'll have to think about that to come up with something more sensible.

YL
ewehdemeyer
Regular
Posts: 62
Joined: Fri Jan 19, 2007 6:59 pm
Location: Hamburg

Post by ewehdemeyer »

Hi,

Today I was switched off by a gastric flu, so I'm only now on it.
I think the archive and the paths are confused and I don't know where to adjust that, so my plan is, to delete the template_c folder-content, reset the entire blog to another template and than back to BP. Will that reset all files and paths and so on to default values?
Or do I have to a do a MySQL Dump and set it up from the scratch?

eva
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

ewehdemeyer wrote:I think the archive and the paths are confused and I don't know where to adjust that
Maybe in the administration panel. There's a Permalink section in the configuration part where you can modify database password etc. I'm not 100% sure that's the way to fix this, though, it's just an idea ...
ewehdemeyer wrote:delete the template_c folder-content, reset the entire blog to another template and than back to BP. Will that reset all files and paths and so on to default values?
Maybe. Or maybe not :) It can't hurt, though.
ewehdemeyer wrote:Or do I have to a do a MySQL Dump and set it up from the scratch?
Let's say, I'd do a backup just in case. And I'd try some other things before actually setting it up from scratch. It's now Windows, you know? :wink:

YL
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

Part of the problem is the configuration.....

The full and absolute path to your installation is:
/full_path_details/kunst-raum-volksdorf.de/kunst-katen-blog/

The configured URL to the site is:
http://www.kunst-raum-volksdorf.de/

You then configured your "home" link, via the bulletproof template, to point to:
http://kunst-raum-volksdorf.de/kunst-katen-blog/

Provided that "home" link points to http://kunst-raum-volksdorf.de/, or preferrably http://www.kunst-raum-volksdorf.de/ (or you also add some htaccess rules to redirect the www to non-www or vice versa), the "next page/previous page" links will work just fine.

Maybe someone with better DNS experience will chime in here - is the domain simply not pointing at the right folder in the first place, or should this have been installed in the document root?
Last edited by Don Chambers on Wed Jun 04, 2008 3:56 pm, edited 1 time in total.
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Serendipity does not support running the blog on different paths. If you use different hostnames, you must use the same path (always / or always /blog) - else you will get trouble.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply