Changeset 5730

Show
Ignore:
Timestamp:
04/10/08 20:52:43 (9 months ago)
Author:
inureyes
Message:

#920

  • 별표 구현
  • 쓰고 있는 글 구현
    • 제약조건 : 쓰고 있는 글에는 별표를 못 붙입니다. (보통 얼마 되지 않으니 필요가 없겠죠?)
Location:
trunk
Files:
2 added
10 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/entry/add/index.php

    r5285 r5730  
    66    'POST' => array( 
    77        'visibility' => array('int', 0, 3), 
     8        'starred' => array('int', 0, 2), 
    89        'category' => array('int', 'default' => 0), 
    910        'title' => array('string'), 
     
    2728$entry = array(); 
    2829$entry['visibility'] = $_POST['visibility']; 
     30$entry['starred'] = $_POST['starred']; 
    2931$entry['category'] = empty($_POST['category']) ? 0 : $_POST['category']; 
    3032$entry['title'] = $_POST['title']; 
  • trunk/interface/owner/entry/draft/index.php

    r5079 r5730  
    66    'POST' => array( 
    77        'visibility' => array('int', 0, 3), 
     8        'starred' => array('int', 0, 2), 
    89        'category' => array('int', 'default' => 0), 
    910        'title' => array('string'), 
     
    2930$entry['draft'] = 1; 
    3031$entry['visibility'] = $_POST['visibility']; 
     32$entry['starred'] = $_POST['starred']; 
    3133$entry['category'] = $_POST['category']; 
    3234$entry['title'] = $_POST['title']; 
  • trunk/interface/owner/entry/edit/index.php

    r5584 r5730  
    190190                                            } 
    191191                                        } 
    192  
     192                                        var starred = 1; 
     193                                        for (var i = 0; i < oForm.starred.length; i++) { 
     194                                            if (oForm.starred[i].checked) { 
     195                                                starred = oForm.starred[i].value; 
     196                                                break; 
     197                                            } 
     198                                        } 
    193199                                        var entrytype = 0; 
    194200                                        for (var i = 0; i < oForm.entrytype.length; i++) { 
     
    242248                                            published = Math.floor(published / 1000); 
    243249                                        } 
    244  
     250                                         
    245251                                        return ( 
    246252                                            "visibility=" + visibility + 
     253                                            "&starred=" + starred + 
    247254                                            "&title=" + encodeURIComponent(title) + 
    248255                                            "&permalink=" + encodeURIComponent(permalink) + 
     
    713720                                            <input type="button" value="<?php echo _t('미리보기');?>" class="preview-button input-button" onclick="entryManager.preview();return false;" /> 
    714721                                            <span class="hidden">|</span> 
    715                                             <input type="submit" id="saveButton" value="<?php echo _t('저장하기');?>" class="save-button input-button" onclick="entryManager.save();return false;" /> 
     722                                            <input type="submit" id="saveButton" value="<?php echo _t('중간 저장');?>" class="save-button input-button" onclick="entryManager.save();return false;" /> 
    716723                                            <span class="hidden">|</span> 
    717                                             <input type="submit" value="<?php echo _t('저장 후 기');?>" class="save-and-return-button input-button" onclick="entryManager.saveAndReturn();return false;" />                                     
     724                                            <input type="submit" value="<?php echo _t('저장 후 돌아가기');?>" class="save-and-return-button input-button" onclick="entryManager.saveAndReturn();return false;" />                                   
    718725                                        </div> 
    719726<?php 
     
    723730                                            <input type="button" value="<?php echo _t('미리보기');?>" class="preview-button input-button" onclick="entryManager.preview();return false;" /> 
    724731                                            <span class="hidden">|</span> 
    725                                                 <input type="submit" id="saveButton" value="<?php echo _t('저장하기');?>" class="save-button input-button" onclick="entryManager.save();return false;" /> 
     732                                                <input type="submit" id="saveButton" value="<?php echo _t('중간 저장');?>" class="save-button input-button" onclick="entryManager.save();return false;" /> 
    726733                                            <span class="hidden">|</span> 
    727                                             <input type="submit" value="<?php echo _t('저장 후 기');?>" class="save-and-return-button input-button" onclick="entryManager.saveAndReturn();return false;" /> 
     734                                            <input type="submit" value="<?php echo _t('저장 후 돌아가기');?>" class="save-and-return-button input-button" onclick="entryManager.saveAndReturn();return false;" /> 
    728735                                            <span class="hidden">|</span> 
    729736                                            <input type="submit" value="<?php echo _t('목록으로');?>" class="list-button input-button" onclick="returnToList();return false;" /> 
     
    801808                                            </dl> 
    802809<?php 
    803     $countResult = POD::queryExistence("SELECT `id` FROM `{$database['prefix']}Entries` WHERE `blogid` = ".getBlogId()." AND `visibility` = 3 LIMIT 1"); 
     810    $countResult = POD::queryExistence("SELECT `id` FROM `{$database['prefix']}Entries` WHERE `blogid` = ".getBlogId()." AND `visibility` = 3"); 
    804811?> 
    805812                                            <dl id="status-line" class="line"> 
     
    812819                                                </dd> 
    813820                                            </dl> 
    814  
     821                                             
     822                                            <dl id="finish-line" class="line"> 
     823                                                <dt><span class="label"><?php echo _t('완성여부');?></span></dt> 
     824                                                <dd> 
     825                                                    <div id="status-finished" class="status-finished"><input type="radio" id="write_finished" class="radio" name="starred" value="1"<?php echo (abs($entry['starred']) > 0 ? ' checked="checked"' : '');?> /><label for="write_finished"><?php echo _t('완성한 글');?></label></div> 
     826                                                    <div id="status-draft" class="status-draft"><input type="radio" id="write_draft" class="radio" name="starred" value="0"<?php echo (abs($entry['starred']) == 0 ? ' checked="checked"' : '');?> /><label for="write_draft"><?php echo _t('쓰고 있는 글');?></label></div> 
     827                                                    <div id="status-starred" class="status-starred"><input type="radio" id="write_starred" class="radio" name="starred" value="0"<?php echo (abs($entry['starred']) == 2 ? ' checked="checked"' : '');?> /><label for="write_starred"><?php echo _t('별표가 붙은 글');?></label></div> 
     828                                                </dd> 
     829                                            </dl> 
     830                                             
    815831                                            <dl id="power-line" class="line"<?php if($isKeyword) echo _t('style="display: none"');?>> 
    816832                                                <dt><span class="label"><?php echo _t('권한');?></span></dt> 
     
    828844                                        <input type="button" value="<?php echo _t('미리 보기');?>" class="preview-button input-button" onclick="entryManager.preview();return false;" /> 
    829845                                        <span class="hidden">|</span> 
    830                                         <input type="submit" value="<?php echo _t('저장 후 기');?>" class="save-and-return-button input-button" onclick="entryManager.saveAndReturn();return false;" />                                     
     846                                        <input type="submit" value="<?php echo _t('저장 후 돌아가기');?>" class="save-and-return-button input-button" onclick="entryManager.saveAndReturn();return false;" />                                   
    831847                                </div> 
    832848<?php 
     
    836852                                        <input type="button" value="<?php echo _t('미리 보기');?>" class="preview-button input-button" onclick="entryManager.preview();return false;" /> 
    837853                                        <span class="hidden">|</span> 
    838                                         <input type="submit" value="<?php echo _t('저장 후 기');?>" class="save-and-return-button input-button" onclick="entryManager.saveAndReturn();return false;" /> 
     854                                        <input type="submit" value="<?php echo _t('저장 후 돌아가기');?>" class="save-and-return-button input-button" onclick="entryManager.saveAndReturn();return false;" /> 
    839855                                        <span class="hidden">|</span> 
    840856                                        <input type="submit" value="<?php echo _t('목록으로');?>" class="list-button input-button" onclick="returnToList();return false;" /> 
  • trunk/interface/owner/entry/finish/index.php

    r5719 r5730  
    66    'POST' => array( 
    77        'visibility' => array('int', 0, 3), 
    8         'category' => array('int', 'default' => 0), 
    9         'title' => array('string'), 
    10         'content' => array('string'), 
     8        'starred'    => array('int', 0, 2), 
     9        'category'   => array('int', 'default' => 0), 
     10        'title'      => array('string'), 
     11        'content'    => array('string'), 
    1112        'contentFormatter' => array('string'), 
    12         'contentEditor' => array('string'), 
    13         'permalink' => array('string', 'default' => ''), 
    14         'location' => array('string', 'default' => '/'), 
    15         'tag' => array('string', 'default' => ''), 
    16         'acceptComment' => array(array('0', '1'), 'default' => '0'), 
    17         'acceptTrackback' => array(array('0', '1'), 'default' => '0'), 
    18         'published' => array('int', 0, 'default' => 1) 
     13        'contentEditor'    => array('string'), 
     14        'permalink'  => array('string', 'default' => ''), 
     15        'location'   => array('string', 'default' => '/'), 
     16        'tag'        => array('string', 'default' => ''), 
     17        'acceptComment'    => array(array('0', '1'), 'default' => '0'), 
     18        'acceptTrackback'  => array(array('0', '1'), 'default' => '0'), 
     19        'published'  => array('int', 0, 'default' => 1) 
    1920    ) 
    2021); 
    2122require ROOT . '/lib/includeForBlogOwner.php'; 
    2223requireModel('blog.entry'); 
    23  
    2424 
    2525requireStrictRoute(); 
     
    3737if (empty($suri['id']) || !is_null($entry)) { 
    3838    $entry['visibility'] = $_POST['visibility']; 
    39     $entry['category'] = $_POST['category']; 
    40     $entry['location'] = empty($_POST['location']) ? '/' : $_POST['location']; 
    41     $entry['tag'] = empty($_POST['tag']) ? '' : $_POST['tag']; 
    42     $entry['title'] = $_POST['title']; 
    43     $entry['content'] = $_POST['content']; 
     39    $entry['starred']    = $_POST['starred']; 
     40    $entry['category']   = $_POST['category']; 
     41    $entry['location']   = empty($_POST['location']) ? '/' : $_POST['location']; 
     42    $entry['tag']        = empty($_POST['tag']) ? '' : $_POST['tag']; 
     43    $entry['title']      = $_POST['title']; 
     44    $entry['content']    = $_POST['content']; 
    4445    $entry['contentFormatter'] = $_POST['contentFormatter']; 
    45     $entry['contentEditor'] = $_POST['contentEditor']; 
     46    $entry['contentEditor']    = $_POST['contentEditor']; 
    4647    if ((isset($_POST['permalink'])) && ($_POST['permalink'] != '')) { 
    4748        $entry['slogan'] = $_POST['permalink']; 
  • trunk/interface/owner/entry/index.php

    r5632 r5730  
    4444    $_POST['visibility'] = $_GET['visibility']; 
    4545} 
    46  
     46$starred = $visibility = null; 
    4747$tabsClass = array(); 
    4848if (isset($_POST['visibility'])) { 
     
    6565    } else if($_POST['visibility']=='template') { 
    6666//      $categoryId = -4; 
    67         $visibility = null; 
    6867        $tabsClass['template'] = true; 
    6968        $visibilityText = _t('서식'); 
     69    } else if($_POST['visibility']=='starred') { 
     70        $starred = 2; 
     71        $tabsClass['starred'] = true; 
     72        $visibilityText = _t('별표'); 
     73    } else if($_POST['visibility']=='draft') { 
     74        $starred = 0; 
     75        $tabsClass['draft'] = true; 
     76        $visibilityText = _t('작성중'); 
    7077    } else { 
    71         $visibility = null; 
    7278        $tabsClass['all'] = true; 
    7379        $visibilityText = _t('모든'); 
    7480    } 
    7581} else { 
    76     $visibility = null; 
    7782    $tabsClass['all'] = true; 
    7883    $visibilityText = _t('모든'); 
     
    100105else $categoryIdforPrint = $categoryId; // preserves category selection even if template tab is activated. 
    101106 
    102 list($entries, $paging) = getEntriesWithPagingForOwner(getBlogId(), $categoryIdforPrint, $searchKeyword, $suri['page'], $perPage, $visibility); 
     107list($entries, $paging) = getEntriesWithPagingForOwner(getBlogId(), $categoryIdforPrint, $searchKeyword, $suri['page'], $perPage, $visibility, $starred); 
    103108 
    104109// query string 생성. 
     
    190195                                                tempTd = document.getElementById("protectedIcon_" + entry).parentNode; 
    191196                                                tempTr = tempTd.parentNode; 
    192                                                 tempTr.cells[7].innerHTML = ""; 
     197                                                tempTr.cells[8].innerHTML = ""; 
    193198                                                 
    194199                                                break; 
     
    219224                                                tempTd = document.getElementById("protectedIcon_" + entry).parentNode; 
    220225                                                tempTr = tempTd.parentNode; 
    221                                                 tempTr.cells[7].appendChild(tempLink); 
     226                                                tempTr.cells[8].appendChild(tempLink); 
    222227                                                 
    223228                                                break; 
     
    240245                                                tempTd = document.getElementById("protectedIcon_" + entry).parentNode; 
    241246                                                tempTr = tempTd.parentNode; 
    242                                                 tempTr.cells[7].innerHTML = ""; 
     247                                                tempTr.cells[8].innerHTML = ""; 
    243248                                                                                             
    244249                                                break; 
     
    269274                                                countSyndicated = true; 
    270275                                                 
     276                                                break; 
     277                                        } 
     278                                    } 
     279                                    request.onError = function () { 
     280                                        window.location = "<?php echo $blogURL;?>/owner/entry"; 
     281                                    } 
     282                                    request.send(); 
     283                                } 
     284                                 
     285                                function setEntryStar(entry, mark) { 
     286                                    if ((mark < 0) || (mark > 2)) 
     287                                        return false; 
     288                                    var request = new HTTPRequest("<?php echo $blogURL;?>/owner/entry/star/" + entry + "?mark=" + mark); 
     289                                    request.onSuccess = function () { 
     290                                        switch (mark) { 
     291                                            case 1: 
     292                                                document.getElementById("starIcon_" + entry).innerHTML = '<a href="<?php echo $blogURL;?>/owner/entry/star/<?php echo $entry['id'];?>?command=mark" onclick="setEntryStar(<?php echo $entry['id'];?>, 2); return false;" title="<?php echo _t('별표를 줍니다.');?>"><span class="text"><?php echo _t('별표');?></span></a></span>'; 
     293                                                document.getElementById("starIcon_" + entry).className = 'unstar-icon'; 
     294                                                break; 
     295                                            case 2: 
     296                                                document.getElementById("starIcon_" + entry).innerHTML = '<a href="<?php echo $blogURL;?>/owner/entry/star/<?php echo $entry['id'];?>?command=unmark" onclick="setEntryStar(<?php echo $entry['id'];?>, 1); return false;" title="<?php echo _t('별표를 지웁니다.');?>"><span class="text"><?php echo _t('별표');?></span></a></span>'; 
     297                                                document.getElementById("starIcon_" + entry).className = 'star-icon'; 
    271298                                                break; 
    272299                                        } 
     
    580607                                        objTr = getParentByTagName("TR", getObject("trackbackIcon_" + id)); 
    581608                                        objTable.deleteRow(objTr.rowIndex + 1); 
    582                                          
    583609                                        document.getElementById("trackbackIcon_" + id).className = "trackback-off-button button"; 
    584610                                    } else { 
     
    591617                                         
    592618                                        newCell = newRow.insertCell(0); 
    593                                         newCell.colSpan = 10; 
     619                                        newCell.colSpan = 11; 
    594620                                        newCell.setAttribute("align", "right"); 
    595621                                         
     
    712738                            <ul id="entry-tabs-box" class="tabs-box"> 
    713739                                <!-- TODO : $tab['postfix'] 버그 --> 
    714                                 <li<?php echo isset($tabsClass['all']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>"><?php echo _t('모든 글');?></a></li> 
    715                                 <li<?php echo isset($tabsClass['private']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=private"><?php echo _t('비공개 글');?></a></li> 
    716                                 <li<?php echo isset($tabsClass['public']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=public"><?php echo _t('공개된 글');?></a></li> 
    717                                 <li<?php echo isset($tabsClass['protected']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=protected"><?php echo _t('보호된 글');?></a></li> 
    718                                 <li<?php echo isset($tabsClass['reserved']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=reserved"><?php echo _t('예약된 글');?></a></li> 
    719                                 <li<?php echo isset($tabsClass['template']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=template"><?php echo _t('서식');?></a></li> 
     740                                <li class="entry-all<?php echo isset($tabsClass['all']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>"><?php echo _t('모든 글');?></a></li> 
     741                                <li class="entry-draft<?php echo isset($tabsClass['draft']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=draft"><?php echo _t('쓰고 있는 글');?></a></li> 
     742                                <li class="entry-starred<?php echo isset($tabsClass['starred']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=starred"><?php echo _t('별표');?></a></li> 
     743                                <li class="entry-private<?php echo isset($tabsClass['private']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=private"><?php echo _t('비공개 글');?></a></li> 
     744                                <li class="entry-public<?php echo isset($tabsClass['public']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=public"><?php echo _t('공개된 글');?></a></li> 
     745                                <li class="entry-protected<?php echo isset($tabsClass['protected']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=protected"><?php echo _t('보호된 글');?></a></li> 
     746                                <li class="entry-reserved<?php echo isset($tabsClass['reserved']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=reserved"><?php echo _t('예약된 글');?></a></li> 
     747                                <li class="entry-template<?php echo isset($tabsClass['template']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=template"><?php echo _t('서식');?></a></li> 
    720748                            </ul> 
    721749                             
     
    769797                                        <tr> 
    770798                                            <th class="selection"><input type="checkbox" id="allChecked" class="checkbox" onclick="checkAll(this.checked);" /></th> 
     799                                            <th class="starred">&nbsp;</th> 
    771800                                            <th class="date"><span class="text"><?php echo _t('등록일자');?></span></th> 
    772801                                            <th class="status"><span class="text"><?php echo _t('상태');?></span></th> 
     
    794823                                        <tr class="<?php echo $className;?> inactive-class" onmouseover="rolloverClass(this, 'over')" onmouseout="rolloverClass(this, 'out')"> 
    795824                                            <td class="selection"><input type="checkbox" class="checkbox" name="entry" value="<?php echo $entry['id'];?>" onclick="document.getElementById('allChecked').checked=false; toggleThisTr(this);" /></td> 
     825                                            <td class="starred"><?php 
     826    if($entry['starred'] == 2) { 
     827?> 
     828                                                <span id="starIcon_<?php echo $entry['id'];?>" class="star-icon"><a href="<?php echo $blogURL;?>/owner/entry/star/<?php echo $entry['id'];?>?command=unmark" onclick="setEntryStar(<?php echo $entry['id'];?>, 1); return false;" title="<?php echo _t('별표를 지웁니다.');?>"><span class="text"><?php echo _t('별표');?></span></a></span> 
     829<?php 
     830    } else { 
     831?> 
     832                                                <span id="starIcon_<?php echo $entry['id'];?>" class="unstar-icon"><a href="<?php echo $blogURL;?>/owner/entry/star/<?php echo $entry['id'];?>?command=mark" onclick="setEntryStar(<?php echo $entry['id'];?>, 2); return false;" title="<?php echo _t('별표를 줍니다.');?>"><span class="text"><?php echo _t('별표');?></span></a></span> 
     833<?php 
     834    } 
     835?></td> 
    796836                                            <td class="date"><?php echo Timestamp::formatDate($entry['published']);?></td> 
    797837                                            <td class="status"> 
     
    9741014                                        <h2><?php echo _t('기능 설명');?></h2> 
    9751015 
     1016                                        <dl class="starred-description"> 
     1017                                            <dt><?php echo _t('별표');?></dt> 
     1018                                            <dd><?php echo _t('중요한 글에 별표를 매깁니다.');?></dd> 
     1019                                        </dl> 
    9761020                                        <dl class="eolin-description"> 
    9771021                                            <dt><?php echo _t('발행');?></dt> 
  • trunk/interface/owner/entry/update/index.php

    r5481 r5730  
    66    'POST' => array( 
    77        'visibility' => array('int', 0, 3), 
    8         'category' => array('int', 'default' => 0), 
    9         'title' => array('string'), 
    10         'content' => array('string'), 
     8        'starred   ' => array('int', 0, 2), 
     9        'category'   => array('int', 'default' => 0), 
     10        'title'      => array('string'), 
     11        'content'    => array('string'), 
    1112        'contentFormatter' => array('string'), 
    1213        'contentEditor' => array('string'), 
    13         'permalink' => array('string', 'default' => ''), 
    14         'location' => array('string', 'default' => '/'), 
    15         'tag' => array('string', 'default' => ''), 
    16         'acceptComment' => array(array('0', '1'), 'default' => '0'), 
     14        'permalink'  => array('string', 'default' => ''), 
     15        'location'   => array('string', 'default' => '/'), 
     16        'tag'        => array('string', 'default' => ''), 
     17        'acceptComment'   => array(array('0', '1'), 'default' => '0'), 
    1718        'acceptTrackback' => array(array('0', '1'), 'default' => '0'), 
    18         'published' => array('int', 0, 'default' => 1) 
     19        'published'  => array('int', 0, 'default' => 1) 
    1920    ) 
    2021); 
     
    3233if (!is_null($entry)) { 
    3334    $entry['visibility'] = $_POST['visibility']; 
     35    $entry['starred'] = $_POST['starred']; 
    3436    $entry['category'] = $_POST['category']; 
    3537    $entry['location'] = empty($_POST['location']) ? '/' : $_POST['location']; 
  • trunk/lib/model/blog.entry.php

    r5557 r5730  
    5252                'draft'      => 0, 
    5353                'visibility' => 0, 
     54                'starred'    => 1, 
    5455                'category'   => 0, 
    5556                'location'   => '', 
     
    283284} 
    284285 
    285 function getEntriesWithPagingForOwner($blogid, $category, $search, $page, $count, $visibility = null) { 
     286function getEntriesWithPagingForOwner($blogid, $category, $search, $page, $count, $visibility = null, $starred = null, $draft = null) { 
    286287    global $database, $suri; 
    287288    requireComponent('Eolin.PHP.Core'); 
     
    315316        } else { 
    316317            $sql .= ' AND e.visibility '.$visibility; 
     318        } 
     319    } 
     320    if(isset($starred)) { 
     321        if(Validator::isInteger($starred,0,3)) { 
     322            $sql .= ' AND e.starred = '.$starred; 
     323        } else { 
     324            $sql .= ' AND e.starred '.$starred; 
    317325        } 
    318326    } 
     
    522530    } 
    523531    $result = POD::query("INSERT INTO {$database['prefix']}Entries  
    524             (blogid, userid, id, draft, visibility, category, title, slogan, content, contentFormatter, 
     532            (blogid, userid, id, draft, visibility, starred, category, title, slogan, content, contentFormatter, 
    525533             contentEditor, location, password, acceptComment, acceptTrackback, published, created, modified, 
    526534             comments, trackbacks)  
     
    531539            0, 
    532540            {$entry['visibility']}, 
     541            {$entry['starred']}, 
    533542            {$entry['category']}, 
    534543            '$title', 
     
    662671                userid             = {$entry['userid']}, 
    663672                visibility         = {$entry['visibility']}, 
     673                starred            = {$entry['starred']}, 
    664674                category           = {$entry['category']}, 
    665675                draft              = 0, 
     
    797807                userid             = {$entry['userid']}, 
    798808                visibility         = {$entry['visibility']}, 
     809                starred            = {$entry['starred']}, 
    799810                category           = {$entry['category']}, 
    800811                draft              = 1, 
     
    812823    } else { 
    813824        $result = POD::query("INSERT INTO {$database['prefix']}Entries  
    814             (blogid, userid, id, draft, visibility, category, title, slogan, content, contentFormatter, 
     825            (blogid, userid, id, draft, visibility, starred, category, title, slogan, content, contentFormatter,