Show
Ignore:
Timestamp:
02/10/09 10:58:57 (3 years ago)
Author:
daris
Message:

portal: fixes for panels on all pages option

Location:
branches/portal_by_daris
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/portal_by_daris/manifest.xml

    r20 r21  
    6060                ]]></hook> 
    6161 
     62                <hook id="vt_qpost_output_start"><![CDATA[ 
     63 
     64if ($forum_config['o_portal_panels_all_pages'] == 1) 
     65        echo '<div>'."\n\t".'<p></p>'."\n".'</div>'; 
     66 
     67                ]]></hook> 
     68 
    6269                <hook id="hd_head"><![CDATA[ 
    6370// hd_head hook could be executed from a function (like message), so we need to globalize language variable 
     
    8491 
    8592 
    86 if (!defined('FORUM_PORTAL') && $forum_config['o_portal_panels_all_pages'] == 1 && strpos(FORUM_PAGE, 'admin-') === false && FORUM_PAGE != 'message') 
     93if (!defined('FORUM_PORTAL') && $forum_config['o_portal_panels_all_pages'] == 1 && strpos(FORUM_PAGE, 'profile-') === false && strpos(FORUM_PAGE, 'admin-') === false && FORUM_PAGE != 'message') 
    8794        define('FORUM_PORTAL', $ext_info['path'].'/'); 
    8895 
     
    9198        $forum_head['style_portal'] = '<link rel="stylesheet" type="text/css" media="screen" href="'. $ext_info['url'].'/style/style.css" />'; 
    9299 
     100        $tpl_main = str_replace('<!-- forum_crumbs_top -->', '', $tpl_main); 
    93101        $tpl_main = str_replace('<!-- forum_crumbs_end -->', '', $tpl_main); 
    94          
     102 
    95103        // add portal_top before forum_main 
    96         $tpl_main = str_replace('<!-- forum_main_menu -->', '<!-- portal_top -->'."\n".'<!-- forum_main_menu -->', $tpl_main); 
     104        $tpl_main = str_replace('<div id="brd-main">', '<!-- forum_crumbs_top -->'."\n".'<!-- portal_top -->'."\n".'<div id="brd-main">', $tpl_main); 
    97105         
    98106/*      if (FORUM_PAGE == 'news' || FORUM_PAGE == 'pages') 
     
    100108        */ 
    101109        // add portal_bottom before forum_stats 
    102         $tpl_main = str_replace('<!-- forum_qpost -->', '<!-- forum_qpost -->'."\n".'<!-- portal_bottom -->'."\n".'<!-- forum_crumbs_end -->', $tpl_main); 
     110        $tpl_main = str_replace('<!-- forum_info -->', "\n".'<!-- portal_bottom -->'."\n".'<!-- forum_crumbs_end -->'."\n".'<!-- forum_info -->', $tpl_main); 
    103111         
    104112         
  • branches/portal_by_daris/panels.php

    r18 r21  
    2929                foreach ($panels as $cur_panel) 
    3030                { 
    31                         if ($left_width == 0 && $location == 0 || $right_width == 0 && $location == 3 || FORUM_PAGE == 'pages' && $location == 3) 
     31                        if ($left_width == 0 && $location == 0 || $right_width == 0 && $location == 3 || FORUM_PAGE == 'pages' && $location == 3 || $forum_config['o_portal_panels_all_pages'] == 1 && $location == 3) 
    3232                                continue; 
    3333                         
     
    9898 
    9999        $tpl_temp .= "\n".'<div style="clear: both"></div>'; 
    100  
    101100        $tpl_main = str_replace('<!-- portal_bottom -->', $tpl_temp, $tpl_main); 
    102101