Changeset 33 for branches

Show
Ignore:
Timestamp:
02/11/09 14:46:07 (3 years ago)
Author:
daris
Message:

portal: changed hook names for active topics page and increased version to 2.4.1

Location:
branches/portal_by_daris
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branches/portal_by_daris/lang/English/admin_panels.php

    r23 r33  
    4848'Right side'                                    => 'Right side', 
    4949 
    50 'Panel added'                                   => 'Panel added.', 
    51 'Panel updated'                                 => 'Panel updated.', 
    52 'Panel deleted'                                 => 'Panel deleted.', 
    53 'Panels updated'                                => 'Panels updated.', 
    54 'Panel moved'                                   => 'Panel moved.', 
    55 'Panel enabled'                                 => 'Panel enabled.', 
    56 'Panel disabled'                                => 'Panel disabled.', 
    57  
    5850); 
  • branches/portal_by_daris/manifest.xml

    r27 r33  
    44        <id>portal_by_daris</id> 
    55        <title>Portal by Daris</title> 
    6         <version>2.4.0</version> 
     6        <version>2.4.1</version> 
    77        <description>Adds a portal to forum</description> 
    88        <author>Daris</author> 
  • branches/portal_by_daris/panels/active_topics.php

    r22 r33  
    4848        ); 
    4949 
    50         ($hook = get_hook('vf_qr_get_has_posted')) ? eval($hook) : null; 
     50        ($hook = get_hook('xn_portal_by_daris_at_qr_get_has_posted')) ? eval($hook) : null; 
    5151        $query['SELECT'] .= ', ('.$forum_db->query_build($subquery, true).') AS has_posted'; 
    5252} 
    5353 
    54 ($hook = get_hook('vf_qr_get_topics')) ? eval($hook) : null; 
     54($hook = get_hook('xn_portal_by_daris_at_qr_get_topics')) ? eval($hook) : null; 
    5555$result_at = $forum_db->query_build($query) or error(__FILE__, __LINE__); 
    5656 
     
    6060 
    6161 
    62 ($hook = get_hook('vf_pre_header_load')) ? eval($hook) : null; 
     62($hook = get_hook('xn_portal_by_daris_at_pre_header_load')) ? eval($hook) : null; 
    6363 
    6464 
     
    7272$forum_page['item_header']['info']['lastpost'] = '<strong class="info-lastpost">'.$lang_forum['last post'].'</strong>'; 
    7373 
    74 ($hook = get_hook('vf_main_output_start')) ? eval($hook) : null; 
     74($hook = get_hook('xn_portal_by_daris_at_main_output_start')) ? eval($hook) : null; 
    7575 
    7676// If there are topics in this forum 
     
    8585<?php 
    8686 
    87         ($hook = get_hook('vf_pre_topic_loop_start')) ? eval($hook) : null; 
     87        ($hook = get_hook('xn_portal_by_daris_at_pre_topic_loop_start')) ? eval($hook) : null; 
    8888 
    8989        $forum_page['item_count'] = 0; 
     
    9191        while ($cur_topic = $forum_db->fetch_assoc($result_at)) 
    9292        { 
    93                 ($hook = get_hook('vf_topic_loop_start')) ? eval($hook) : null; 
     93                ($hook = get_hook('xn_portal_by_daris_at_topic_loop_start')) ? eval($hook) : null; 
    9494 
    9595                ++$forum_page['item_count']; 
     
    110110                        $forum_page['item_body']['subject']['title'] = '<h3 class="hn"><span class="item-num">'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).'</span>'.$forum_page['item_title']['link'].'</h3>'; 
    111111 
    112                         ($hook = get_hook('vf_topic_loop_moved_topic_pre_item_subject_merge')) ? eval($hook) : null; 
     112                        ($hook = get_hook('xn_portal_by_daris_at_topic_loop_moved_topic_pre_item_subject_merge')) ? eval($hook) : null; 
    113113 
    114114                        if ($forum_config['o_topic_views'] == '1') 
     
    141141                        } 
    142142 
    143                         ($hook = get_hook('vf_topic_loop_normal_topic_pre_item_title_status_merge')) ? eval($hook) : null; 
     143                        ($hook = get_hook('xn_portal_by_daris_at_topic_loop_normal_topic_pre_item_title_status_merge')) ? eval($hook) : null; 
    144144 
    145145                        if (!empty($forum_page['item_title_status'])) 
     
    148148                        $forum_page['item_title']['link'] = '<a href="'.forum_link($forum_url['topic'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))).'">'.forum_htmlencode($cur_topic['subject']).'</a>'; 
    149149 
    150                         ($hook = get_hook('vf_topic_loop_normal_topic_pre_item_title_merge')) ? eval($hook) : null; 
     150                        ($hook = get_hook('xn_portal_by_daris_at_topic_loop_normal_topic_pre_item_title_merge')) ? eval($hook) : null; 
    151151 
    152152                        $forum_page['item_body']['subject']['title'] = '<h3 class="hn"><span class="item-num">'.$forum_page['item_count'].'</span> '.implode(' ', $forum_page['item_title']).'</h3>'; 
     
    169169                        } 
    170170 
    171                         ($hook = get_hook('vf_topic_loop_normal_topic_pre_item_nav_merge')) ? eval($hook) : null; 
     171                        ($hook = get_hook('xn_portal_by_daris_at_topic_loop_normal_topic_pre_item_nav_merge')) ? eval($hook) : null; 
    172172 
    173173                        if (!empty($forum_page['item_nav'])) 
    174174                                $forum_page['item_subject']['nav'] = '<span class="item-nav">'.sprintf($lang_forum['Topic navigation'], implode('&#160;&#160;', $forum_page['item_nav'])).'</span>'; 
    175175 
    176                         ($hook = get_hook('vf_topic_loop_normal_topic_pre_item_subject_merge')) ? eval($hook) : null; 
     176                        ($hook = get_hook('xn_portal_by_daris_at_topic_loop_normal_topic_pre_item_subject_merge')) ? eval($hook) : null; 
    177177 
    178178                        $forum_page['item_body']['info']['replies'] = '<li class="info-replies"><strong>'.forum_number_format($cur_topic['num_replies']).'</strong> <span class="label">'.(($cur_topic['num_replies'] == 1) ? $lang_forum['reply'] : $lang_forum['replies']).'</span></li>'; 
     
    187187                $forum_page['item_body']['subject']['desc'] = implode(' ', $forum_page['item_subject']); 
    188188 
    189                 ($hook = get_hook('vf_row_pre_item_status_merge')) ? eval($hook) : null; 
     189                ($hook = get_hook('xn_portal_by_daris_at_row_pre_item_status_merge')) ? eval($hook) : null; 
    190190 
    191191                $forum_page['item_style'] = (($forum_page['item_count'] % 2 != 0) ? ' odd' : ' even').(($forum_page['item_count'] == 1) ? ' main-first-item' : '').((!empty($forum_page['item_status'])) ? ' '.implode(' ', $forum_page['item_status']) : ''); 
    192192 
    193                 ($hook = get_hook('vf_row_pre_display')) ? eval($hook) : null; 
     193                ($hook = get_hook('xn_portal_by_daris_at_row_pre_display')) ? eval($hook) : null; 
    194194 
    195195?> 
     
    218218        $forum_page['item_body']['subject']['desc'] = '<p>'.$lang_forum['First topic nag'].'</p>'; 
    219219 
    220         ($hook = get_hook('vf_no_results_row_pre_display')) ? eval($hook) : null; 
     220        ($hook = get_hook('xn_portal_by_daris_at_no_results_row_pre_display')) ? eval($hook) : null; 
    221221 
    222222?> 
  • branches/portal_by_daris/style/style.css

    r23 r33  
    66.panel .panel-content { 
    77        padding: 1em; 
     8        width: auto; 
    89} 
    910 
     
    1819.panel .panel-content.news { 
    1920        padding-bottom: 0px; 
    20         width: auto; 
    2121} 
    2222