Changeset 744

Show
Ignore:
Timestamp:
12/25/07 11:25:42 (11 months ago)
Author:
michiel
Message:

- fixed readmore and link to comments on main page.
- only show settings menu when logged in as user, not when logged in as author.
Closes #176

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/common/mvblog.php

    r733 r744  
    274274                                                        if ($this->limit_text($text)) { 
    275275                                                                echo $text; 
    276                                                                 ?><br /><br /><a href="<?php echo $link; ?>" class="link_readmore"><?php echo gettext("read more"); ?></a><?php 
     276                                                                ?><br /><br /><a href="<?php echo sprintf($link, $row["id"]); ?>" class="link_readmore"><?php echo gettext("read more"); ?></a><?php 
    277277                                                        } else { 
    278278                                                                echo $text; 
     
    283283                                        <div class="log_post_foot"> 
    284284                                                <?php if ($row["aside"] !=1) { ?> 
    285                                                         <span class="log_post_commentslink"><a href="<?php echo $link; ?>#comments"><?php echo sprintf(ngettext("%d Comment", "%d Comments", $comments_count[0]), $comments_count[0]); ?></a><br /></span> 
     285                                                        <span class="log_post_commentslink"><a href="<?php echo sprintf($link, $row["id"]); ?>#comments"><?php echo sprintf(ngettext("%d Comment", "%d Comments", $comments_count[0]), $comments_count[0]); ?></a><br /></span> 
    286286                                                        <span class="log_post_author"><?php echo gettext("By").": <i>".htmlspecialchars($this->authors[$row["authors_id"]]["fullname"]); ?></i></span> 
    287287                                                        <span class="log_post_date">| <?php echo gettext("On").": <i>".date("d-m-Y H:i", $row["date"]); ?></i></span> 
     
    807807                                <li class="default_list_item"><a href="admin/index.php" title="admin"><?php echo gettext("Admin"); ?></a></li> 
    808808                        <?php } ?> 
    809                         <?php if (array_key_exists("blog_user", $_SESSION)) { ?> 
     809                        <?php if (array_key_exists("blog_user", $_SESSION) && !array_key_exists("author_id", $_SESSION)) { ?> 
    810810                                <li class="default_list_item"><a href="index.php?action=user_settings" title="settings"><?php echo gettext("Settings"); ?></a></li> 
    811811                        <?php } ?>