Changeset 1689 in ExiteCMS


Ignore:
Timestamp:
08/25/08 18:34:23 (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/PLiXmas/php-files/themes/PLiXmas
Files:
2 edited

Legend:

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

    r1677 r1689  
    4444 
    4545                        /* column definitions (left, center, right) */ 
    46 .side-border-left       { padding:0px 5px 0px 0px; } 
     46.side-border-left       { text-align:left; padding:0px 5px 0px 0px; } 
    4747.main-bg                { padding:0px 0px 0px 0px; } 
    48 .side-border-right      { padding:0px 0px 0px 5px; } 
     48.side-border-right      { text-align:left; padding:0px 0px 0px 5px; } 
    4949 
    5050                        /* panels in the center column */ 
    51 .main-body              { color:#003300; background-color:#fff; padding:4px; } 
     51.main-body              { text-align:left; color:#003300; background-color:#fff; padding:4px; } 
    5252 
    5353                        /* panels in the left & right columns (with and without padding, p.e. for images) */ 
  • themes/PLi-Fusion/PLiXmas/php-files/themes/PLiXmas/templates/templates/_header.tpl

    r1677 r1689  
    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  
    191 // wait 15 secconds, then check for messages 
     188{/literal} 
     189{if iMEMBER} 
     190// wait 15 seconds, then check for messages 
    192191msgtimerid = setTimeout("checkMessages()", 15000); 
    193  
     192{/if} 
    194193/* ]]> */ 
    195194</script>{/literal} 
     
    200199                <div style='display:inline;float:left;margin-top:135px;margin-left:10px;width:100px;'> 
    201200                    <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> 
    202                     <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> 
    203                     <div id='new_pm_header' style='display:none;'>[placeholder for new pm image and link]</div> 
     201                        <div id='new_posts_header' style='display:inline;'> 
     202                            {if $new_posts} 
     203                                <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> 
     204                            {/if} 
     205                        </div> 
     206                        <div id='new_pm_header' style='display:inline;'> 
     207                        </div> 
    204208                </div> 
    205209                <div style='display:inline;float:left;margin-top:32px;margin-left:15px;'><img src='{$smarty.const.THEME}images/bells.gif' alt='' /></div> 
Note: See TracChangeset for help on using the changeset viewer.