Changeset 1688 in ExiteCMS


Ignore:
Timestamp:
08/25/08 18:33:12 (3 years ago)
Author:
hverton
Message:

fixed ajax issues with hiding div's with Konqueror
fixed panel body text alignment issues in IE

Location:
themes/PLi-Fusion/PLiTheme/php-files/themes/PLiTheme
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • themes/PLi-Fusion/PLiTheme/php-files/themes/PLiTheme/exitecms.css

    r1679 r1688  
    4343 
    4444                        /* column definitions (left, center, right) */ 
    45 .side-border-left       { padding:5px 5px 0px 0px; } 
     45.side-border-left       { text-align:left; padding:5px 5px 0px 0px; } 
    4646.main-bg                { padding:5px 0px 5px 0px; } 
    47 .side-border-right      { padding:5px 0px 0px 5px; } 
     47.side-border-right      { text-align:left; padding:5px 0px 0px 5px; } 
    4848 
    4949                        /* panels in the center column */ 
    50 .main-body              { color:#444; background-color:#eee; padding:4px 0px 6px 0px; } 
     50.main-body              { text-align:left;color:#444; background-color:#eee; padding:4px 0px 6px 0px; } 
    5151 
    5252                        /* panels in the left & right columns (with and without padding, p.e. for images) */ 
  • themes/PLi-Fusion/PLiTheme/php-files/themes/PLiTheme/templates/templates/_header.tpl

    r1679 r1688  
    151151    // check for new forum messages 
    152152    var newmsg = AjaxCall("includes/ajax.response.php?request=posts"); 
    153     if (document.getElementById("new_posts_header")) { 
     153    if (newmsg != null && document.getElementById("new_posts_header")) { 
    154154        if (newmsg > 0) { 
    155155            document.getElementById("new_posts_header").innerHTML = "<a href='{/literal}{$smarty.const.BASEDIR}{literal}modules/forum_threads_list_panel/new_posts.php'><img src='{/literal}{$smarty.const.THEME}{literal}images/newposts.gif' height='9' alt='{/literal}{$locale.028}{literal}' /></a>&nbsp;"; 
    156             document.getElementById("new_posts_header").style.display = 'inline'; 
    157         } else { 
    158             document.getElementById("new_posts_header").style.display = 'none'; 
    159         } 
    160     } 
    161     if (document.getElementById("new_posts_panel")) { 
     156        } else { 
     157            document.getElementById("new_posts_header").innerHTML = ""; 
     158        } 
     159    } 
     160    if (newmsg != null && document.getElementById("new_posts_panel")) { 
    162161        if (newmsg > 0) { 
    163162            document.getElementById("new_posts_panel_value").innerHTML = AjaxCall("includes/ajax.response.php?request=posts&parms=text"); 
     
    169168    // check for new pm messages 
    170169    var newpm = AjaxCall("includes/ajax.response.php?request=pm"); 
    171     if (document.getElementById("new_pm_header")) { 
     170    if (newpm != null && document.getElementById("new_pm_header")) { 
    172171        if (newpm > 0) { 
    173172            document.getElementById("new_pm_header").innerHTML = "<a href='{/literal}{$smarty.const.BASEDIR}{literal}pm.php?action=show_new'><img src='{/literal}{$smarty.const.THEME}{literal}images/newmsgs.gif' height='9' alt='' /></a>&nbsp;"; 
    174             document.getElementById("new_pm_header").style.display = 'inline'; 
    175         } else { 
    176             document.getElementById("new_pm_header").style.display = 'none'; 
    177         } 
    178     } 
    179     if (document.getElementById("new_pm_panel")) { 
     173        } else { 
     174            document.getElementById("new_pm_header").innerHTML = ""; 
     175        } 
     176    } 
     177    if (newpm != null && document.getElementById("new_pm_panel")) { 
    180178        if (newpm > 0) { 
    181179            document.getElementById("new_pm_panel_value").innerHTML = AjaxCall("includes/ajax.response.php?request=pm&parms=text"); 
     
    188186    msgtimerid = setTimeout("checkMessages()", 300000); 
    189187} 
    190  
     188{/literal} 
     189{if iMEMBER} 
    191190// wait 15 seconds, then check for messages 
    192191msgtimerid = setTimeout("checkMessages()", 15000); 
    193  
     192{/if} 
    194193/* ]]> */ 
    195194</script>{/literal} 
     
    245244        <td class='sub-cap-main'> 
    246245            <a href='.' onclick='fontGroter(-0.1); return false' title='Decrease font-size'><img src='{$smarty.const.THEME}images/minus.gif' alt='' border='0' /></a><a href='.' onclick='fontReset(0.7); return false' title='Restore default font-sizes'><img src='{$smarty.const.THEME}images/reset.gif' hspace='2' alt='' border='0' /></a><a href='.' onclick='fontGroter(0.1); return false' title='Increase font-size'><img src='{$smarty.const.THEME}images/plus.gif' alt='' border='0' /></a> 
    247             <div id='new_posts_header' style='display:{if $new_posts}inline{else}none{/if};'>{if $new_posts}<a href='{$smarty.const.BASEDIR}modules/forum_threads_list_panel/new_posts.php'><img src='{$smarty.const.THEME}images/newposts.gif' height='9' alt='{$locale.028}' /></a>{/if}</div> 
    248             <div id='new_pm_header' style='display:none;'>[placeholder for new pm image and link]</div> 
     246            <div id='new_posts_header' style='display:inline;'> 
     247                {if $new_posts} 
     248                    <a href='{$smarty.const.BASEDIR}modules/forum_threads_list_panel/new_posts.php'><img src='{$smarty.const.THEME}images/newposts.gif' height='9' alt='{$locale.028}' /></a> 
     249                {/if} 
     250            </div> 
     251            <div id='new_pm_header' style='display:inline;'> 
     252            </div> 
    249253            {section name=index loop=$headermenu} 
    250254                {if !$smarty.section.index.first} &middot;{/if} <a href='{$headermenu[index].link_url}' {if $headermenu[index].link_window == 1}target='_blank' {/if}><span class='small'>{$headermenu[index].link_name}</span></a> 
Note: See TracChangeset for help on using the changeset viewer.