dating-layout-flower 2.0.2-2.0.4 changelog

Code operations
/layout.php
PHP5 support (feature)
1
FIND - Line 3
function frontend_handle( &$this )
{
    global $data;
    global $_langs;

    // geometric sizes
    $this->assign( 'content_width', 600 );
    $this->assign( 'content_cellspacing', 0 );
    $this->assign( 'content_cellpadding', 5 );
    $this->assign( 'page_width', 605 );
    $this->assign( 'page_height', 360 );
    $this->assign( 'member_console_width', 160 );
    $this->assign( 'member_console_height', 350 );
   
    // Register functions
    $this->register_function( 'search_rows_iam_weare', 'search_rows_iam_weare', true );
    $this->register_function( 'search_select_age_start', 'search_select_age_start', true );
    $this->register_function( 'search_select_age_end', 'search_select_age_end', true );
    $this->register_function( 'profile_field_display', 'profile_field_display', true );
    $this->register_function( 'lang_switch', 'lang_switch', true );
    $this->register_function( 'nav_menu', 'nav_menu', true );
    $this->register_function( 'last_activity', 'last_activity', true );
    $this->register_function( 'last_activity_string', 'last_activity_string', true );
    $this->register_function( 'fields_display', 'fields_display', true );
    $this->register_function( 'folders_list', 'folders_list', true );
    $this->register_function( 'messages_list', 'messages_list', true );
    $this->register_function( 'search_field_entry', 'search_field_entry', true );
    $this->register_block( 'form_signin', 'block_form_signin', true );
    $this->register_block( 'form_sendmsg', 'block_form_sendmsg', true );
    $this->register_block( 'form_profile_edit', 'block_form_profile_edit', true );
    $this->register_block( 'form_search', 'block_form_search', true );
    $this->register_function( 'show_units', 'show_units', true );
    $this->register_function( 'news_block', 'news_block', true );
    $this->register_function( 'comment_block', 'comment_block', true );
    $this->register_function( 'print_npages', 'print_npages', true );
    $this->register_function( 'print_abpages', 'print_abpages', true );
    $this->register_function( 'article_modify_links', 'article_modify_links', true );
    $this->register_function( 'exp_page_block', 'exp_page_block', true );
    $this->register_function( 'article_page_form', 'article_page_form', true );
    $this->register_function( 'display_ads', 'display_ads', true );
    $this->register_function( 'print_perpages', 'print_perpages', true );
    $this->register_function( 'print_artpages', 'print_artpages', true );
    $this->register_function( 'print_percrits', 'print_percrits', true );
    $this->register_function( 'trunc_desc', 'trunc_desc', true );

    if( count( $_langs ) > 1 )
        $this->assign( 'show_lang_switch', 1 );
}
AND REPLACE WITH
function frontend_handle( &$handle )
{
    global $data;
    global $_langs;

    // geometric sizes
    $handle->assign( 'content_width', 600 );
    $handle->assign( 'content_cellspacing', 0 );
    $handle->assign( 'content_cellpadding', 5 );
    $handle->assign( 'page_width', 605 );
    $handle->assign( 'page_height', 360 );
    $handle->assign( 'member_console_width', 160 );
    $handle->assign( 'member_console_height', 350 );
   
    // Register functions
    $handle->register_function( 'search_rows_iam_weare', 'search_rows_iam_weare', true );
    $handle->register_function( 'search_select_age_start', 'search_select_age_start', true );
    $handle->register_function( 'search_select_age_end', 'search_select_age_end', true );
    $handle->register_function( 'profile_field_display', 'profile_field_display', true );
    $handle->register_function( 'lang_switch', 'lang_switch', true );
    $handle->register_function( 'nav_menu', 'nav_menu', true );
    $handle->register_function( 'last_activity', 'last_activity', true );
    $handle->register_function( 'last_activity_string', 'last_activity_string', true );
    $handle->register_function( 'fields_display', 'fields_display', true );
    $handle->register_function( 'folders_list', 'folders_list', true );
    $handle->register_function( 'messages_list', 'messages_list', true );
    $handle->register_function( 'search_field_entry', 'search_field_entry', true );
    $handle->register_block( 'form_signin', 'block_form_signin', true );
    $handle->register_block( 'form_sendmsg', 'block_form_sendmsg', true );
    $handle->register_block( 'form_profile_edit', 'block_form_profile_edit', true );
    $handle->register_block( 'form_search', 'block_form_search', true );
    $handle->register_function( 'show_units', 'show_units', true );
    $handle->register_function( 'news_block', 'news_block', true );
    $handle->register_function( 'comment_block', 'comment_block', true );
    $handle->register_function( 'print_npages', 'print_npages', true );
    $handle->register_function( 'print_abpages', 'print_abpages', true );
    $handle->register_function( 'article_modify_links', 'article_modify_links', true );
    $handle->register_function( 'exp_page_block', 'exp_page_block', true );
    $handle->register_function( 'article_page_form', 'article_page_form', true );
    $handle->register_function( 'display_ads', 'display_ads', true );
    $handle->register_function( 'print_perpages', 'print_perpages', true );
    $handle->register_function( 'print_artpages', 'print_artpages', true );
    $handle->register_function( 'print_percrits', 'print_percrits', true );
    $handle->register_function( 'trunc_desc', 'trunc_desc', true );

    if( count( $_langs ) > 1 )
        $handle->assign( 'show_lang_switch', 1 );
}

2
FIND - Line 377
function admin_handle( &$this )
{
    $this->assign( 'dirs_count', current( db_arr( "SELECT COUNT(*) FROM`m_Directory_Categories`WHERE`Status`='2'" ) ) );
    $this->assign( 'links_count', current( db_arr( "SELECT COUNT(*) FROM`m_Directory_Links`WHERE`Status`='2'" ) ) );

    $this->assign( 'admin', 1 );
    $this->assign( 'no_inv0', 1 );
    $this->assign( 'no_bottom_stuff', 1 );
    $this->assign( 'show_lang_switch', 0 );
}
AND REPLACE WITH
function admin_handle( &$handle )
{
    $handle->assign( 'dirs_count', current( db_arr( "SELECT COUNT(*) FROM`m_Directory_Categories`WHERE`Status`='2'" ) ) );
    $handle->assign( 'links_count', current( db_arr( "SELECT COUNT(*) FROM`m_Directory_Links`WHERE`Status`='2'" ) ) );

    $handle->assign( 'admin', 1 );
    $handle->assign( 'no_inv0', 1 );
    $handle->assign( 'no_bottom_stuff', 1 );
    $handle->assign( 'show_lang_switch', 0 );
}
Javascript (bugfix)
3
FIND - Line 421
<a class="nm_links" href="Javascript:void(0);" onclick="delNblock(\''.str_replace( "'", "`" , $title ).'\', \''.$id.'\')">['.$_lang['_delete'].']</a>';
AND REPLACE WITH
<a class="nm_links" href="#" onclick="delNblock(\''.str_replace( "'", "`" , $title ).'\', \''.$id.'\')">['.$_lang['_delete'].']</a>';

4
FIND - Line 499
$del = '<div class="cmm_del"><a href="Javascript:void(0);" onclick="delCBlock( \''.$cblock['id'].'\', \''.$cblock['name'].'\' )">['.$_lang['_delete'].']</a></div>';
AND REPLACE WITH
$del = '<div class="cmm_del"><a href="#" onclick="delCBlock( \''.$cblock['id'].'\', \''.$cblock['name'].'\' )">['.$_lang['_delete'].']</a></div>';

5
FIND - Line 674
<a class="mod" href="javascript:deleteArticle(\''.$article['id'].'\');void(0);">['.$_lang['_delete'].']</a>';
AND REPLACE WITH
<a class="mod" href="#" onclick="deleteArticle(\''.$article['id'].'\');">['.$_lang['_delete'].']</a>';
/templates/404.html
CSS validation (bugfix)
6
FIND - Line 10
<div id="404error">
AND REPLACE WITH
<div id="error404">
/templates/article_comment.html
Template bug fixes (bugfix)
7
FIND - Line 30
    {if $_page.comments}
    <div><h3 class="cmm_h3">{$_lang._comments}</h3></div>
        {foreach from=$_page.comments item=cblock}
            {comment_block cblock=$cblock}
        {/foreach}
    {else}
        <div><h3>{$_lang._no_comments}</h3></div>
    {/if}
</div>
AND REPLACE WITH
    {if $_page.comments}
    <div><h3 class="cmm_h3">{$_lang._comments}</h3></div>
        {foreach from=$_page.comments item=cblock}
            {comment_block cblock=$cblock}
        {/foreach}
    {else}
        <div><h3>{$_lang._no_comments}</h3></div>
    {/if}

8
FIND - Line 101
        <td><script language="JavaScript" type="text/javascript">
                <!--
                document.write( '<input name="counter" type="text" class="counter" size="3" value="0" disabled>' );
// -->
        </script></td>
AND REPLACE WITH
        <td>
            <input name="counter" type="text" class="counter" size="3" value="0" disabled="disabled">
        </td>
/templates/_header.html
Usability enhancement (feature)
9
FIND - Line 1
{* Smarty *}
{strip}
AND AFTER IT INSERT
<a name="top"></a>
/templates/mem_list.html
Usability enhancement (feature)
10
FIND - Line 1
{* Smarty *}
AND REPLACE WITH
{assign var=top_link value=1}
/templates/mem_messages.html
Cosmetic changes (feature)
11
FIND - Line 151
                <div id="prof_report">
                    <a href="{$_href.report_message}">{$_lang._report_this_message}</a><br />
                <a href="{$_url.faq_scammers}" title="{$_lang._faq}" style="text-decoration:none">({$_lang._faq_scammers})</a>
                </div>
            </td>
            </tr>
            </table>
        </div>   
    </div>
AND AFTER IT INSERT
    <br class="clearboth" />
/templates/mem_profile.html
Usability enhancement (feature)
12
FIND - Line 1
{* Smarty *}
AND AFTER IT INSERT
{assign var=top_link value=1}
/templates/_footer.html
Usability enhancement (feature)
13
FIND - Line 1
{* Smarty *}
{strip}
AND REPLACE WITH
{if $top_link}
<div id="top_link">
    <a href="#top">{$_lang._top}</a>
</div>
{/if}
Cosmetic changes (feature)
14
FIND - Line 19
<div id="footer">{text c="copy_stuff"}
AND REPLACE WITH
<div id="footer">{text c="copy_stuff"}&nbsp;
/templates/news_comment.html
Javascript (bugfix)
15
FIND - Line 101
        <td><script language="JavaScript" type="text/javascript"><!-- document.write( '<input name="counter" type="text" class="counter" size="3" value="0" disabled>' ); // --> </script></td>
AND REPLACE WITH
        <td>
            <input name="counter" type="text" class="counter" size="3" value="0" disabled>
        </td>
/themes/main/layout.css
CSS validation (bugfix)
16
FIND - Line 302
#404error {
AND REPLACE WITH
#error404 {

17
FIND - Line 410
#inv_line
{
    position: relative;
    right: 0px;
    color:#fff;
    text-align: right;
    float:right;
    bottom:4px;
    padding-right:9px;
    position:absolute;
}
AND REPLACE WITH
#inv_line
{
    position: relative;
    right: 0;
    color:#fff;
    text-align: right;
    float:right;
    bottom:4px;
    padding-right:9px;
    position:absolute;
}

18
FIND - Line 1504
#msg_messages p {
    font-size:10px;
    padding:0px;
    margin-left:3px;
    margin-top:0px;
    margin-bottom:0px;
}
AND REPLACE WITH
#msg_messages p {
    font-size:10px;
    padding:0;
    margin-left:3px;
    margin-top:0;
    margin-bottom:0px;
}
Usability enhancement (feature)
19
FIND - Line 4365
#pers_pic{
    float:left;
    margin:6px;
    text-align:center;
}
AND AFTER IT INSERT
#top_link {

    text-align:left;
    margin-left:15px;
    margin-bottom:15px;
}