Changeset 850 in ExiteCMS


Ignore:
Timestamp:
09/28/07 22:07:51 (4 years ago)
Author:
hverton
Message:

fixed SVN inconsistency due to a renaming error
updated the forum template because the theme images moved
added a CSS tag for thumbnails in renderpost, and removed hardcoded styles

Location:
trunk
Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/forum/viewthread.php

    r843 r850  
    248248        // check what options to show for this post 
    249249        $data['user_can_edit'] = iMEMBER && $data['post_author'] != 0 && (iMOD || iSUPERADMIN || (!$tdata['thread_locked'] && $userdata['user_id'] == $data['post_author'])); 
    250         $data['show_ip'] = (iMOD || iSUPERADMIN && ($data['post_ip'] != "0.0.0.0" && file_exists(PATH_THEME."forum/ip.gif"))); 
     250        $data['show_ip'] = (iMOD || iSUPERADMIN && ($data['post_ip'] != "0.0.0.0" && file_exists(PATH_THEME."images/ip.gif"))); 
    251251     
    252252        // country flag 
     
    324324                        $adata['size'] = parsebytesize(filesize($file),0); 
    325325                        if (in_array($adata['attach_ext'], $imagetypes)) { 
    326                             // check if it really is an image 
    327                             $imageinfo = @getimagesize($attachrealfile); 
     326                            // check if it really is an image\ 
     327                            $imageinfo = @getimagesize($file); 
    328328                            if (is_array($imageinfo)) { 
    329329                                $adata['is_image'] = true; 
  • trunk/includes/templates/forum.index.tpl

    r843 r850  
    5555                        <td align='center' class='tbl2'> 
    5656                        {if $forums[id].unread_posts == 0} 
    57                             <img src='{$smarty.const.THEME}forum/folder.gif' alt='{$locale.561}' /> 
     57                            <img src='{$smarty.const.THEME}images/folder.gif' alt='{$locale.561}' /> 
    5858                        {elseif $forums[id].unread_posts <= $smarty.const.FOLDER_HOT} 
    59                             <img src='{$smarty.const.THEME}forum/foldernew.gif' alt='{$locale.560}' /> 
     59                            <img src='{$smarty.const.THEME}images/foldernew.gif' alt='{$locale.560}' /> 
    6060                        {else} 
    61                             <img src='{$smarty.const.THEME}forum/folderhot.gif' alt='{$locale.561}' /> 
     61                            <img src='{$smarty.const.THEME}images/folderhot.gif' alt='{$locale.561}' /> 
    6262                        {/if} 
    6363                        </td> 
     
    127127        <td class='forum'> 
    128128            <br /> 
    129             <img src='{$smarty.const.THEME}forum/foldernew.gif' alt='{$locale.560}' style='vertical-align:middle;' /> - {$locale.409} 
     129            <img src='{$smarty.const.THEME}images/foldernew.gif' alt='{$locale.560}' style='vertical-align:middle;' /> - {$locale.409} 
    130130            <br /> 
    131             <img src='{$smarty.const.THEME}forum/folder.gif' alt='{$locale.561}' style='vertical-align:middle;' /> - {$locale.410} 
     131            <img src='{$smarty.const.THEME}images/folder.gif' alt='{$locale.561}' style='vertical-align:middle;' /> - {$locale.410} 
    132132        </td> 
    133133        <td align='right' valign='bottom' class='forum'> 
  • trunk/includes/templates/forum.renderpost.tpl

    r845 r850  
    2626        <td class='tbl_top_mid'> 
    2727            {if $posts[pid].post_sticky} 
    28                 <img src='{$smarty.const.THEME}forum/stickythread.gif' alt='{$locale.572}' style='vertical-align:top;' />&nbsp;&nbsp; 
     28                <img src='{$smarty.const.THEME}images/stickythread.gif' alt='{$locale.572}' style='vertical-align:top;' />&nbsp;&nbsp; 
    2929            {/if} 
    3030            {if $posts[pid].thread_id != 0 && $posts[pid].post_id != 0} 
     
    3737            {/if} 
    3838        </td> 
     39        {if $posts[pid].show_ip} 
    3940        <td class='tbl_top_mid' style='text-align:right;'> 
     41        {else} 
     42        <td colspan='2' class='tbl_top_right' style='text-align:right;'> 
     43        {/if} 
    4044        {if $smarty.const.iMEMBER && $user_can_post} 
    4145            {if $posts[pid].user_can_edit} 
     
    5458        {/if} 
    5559        </td> 
    56         <td width='1%' class='tbl_top_right'> 
    57             {if $posts[pid].show_ip} 
    58                 {if $user_can_blacklist} 
    59                     <a href='{$smarty.const.ADMIN}blacklist.php{$aidlink}&amp;ip={$posts[pid].post_ip}'> 
    60                         <img src='{$smarty.const.THEME}forum/ip.gif' alt='{$locale.570}' title='{$posts[pid].post_ip}{$locale.570a}' style='border:0px;' /> 
    61                     </a> 
    62                 {else} 
    63                     <img src='{$smarty.const.THEME}forum/ip.gif' alt='{$locale.570}' title='{$posts[pid].post_ip}' style='border:0px;' /> 
    64                 {/if} 
    65             {/if} 
    66         </td> 
     60        {if $posts[pid].show_ip} 
     61        <td width='1%' class='tbl_top_right' valign='middle'> 
     62            {if $user_can_blacklist} 
     63                <a href='{$smarty.const.ADMIN}blacklist.php{$aidlink}&amp;ip={$posts[pid].post_ip}'> 
     64                    <img src='{$smarty.const.THEME}images/ip.gif' alt='{$locale.570}' title='{$posts[pid].post_ip}{$locale.570a}' style='border:0px;' /> 
     65                </a> 
     66            {else} 
     67                <img src='{$smarty.const.THEME}images/ip.gif' alt='{$locale.570}' title='{$posts[pid].post_ip}' style='border:0px;' /> 
     68            {/if} 
     69        </td> 
     70        {/if} 
    6771    </tr> 
    6872    <tr> 
     
    126130        </td> 
    127131        <td valign='top' colspan='3' height='{$height}' class='{if $posts[pid].unread}unread{else}tbl_right{/if}' style='border-bottom:none;'> 
    128         {$posts[pid].post_message|default:"&nbsp;"} 
     132        {$posts[pid].post_message|default:" "|escape:"entities"} 
    129133        {section name=id loop=$posts[pid].attachments} 
    130134            {if $smarty.section.id.first} 
     
    144148                    {else} 
    145149                        {if $posts[pid].attachments[id].has_thumbnail} 
    146                             <table cellpadding='0'cellspacing='0' bgcolor='#000000'> 
     150                            <table cellpadding='0'cellspacing='0' class='thumbnail'> 
    147151                                <tr> 
    148152                                    <td> 
     
    150154                                            <a href='{$smarty.const.BASEDIR}getfile.php?type=a&amp;file_id={$posts[pid].attachments[id].attach_id}' title='{$posts[pid].attachments[id].attach_comment}'>{$posts[pid].attachments[id].attach_realname} 
    151155                                        {else} 
    152                                             <a href='{$posts[pid].attachments[id].link}' alt='{$posts[pid].attachments[id].attach_comment}' target='_blank'>{$posts[pid].attachments[id].attach_realname} 
     156                                            <a href='{$posts[pid].attachments[id].link}' title='{$posts[pid].attachments[id].attach_comment}' target='_blank'> 
     157                                            <img src='{$posts[pid].attachments[id].thumbnail}' style='border:1px solid black;' alt='{$posts[pid].attachments[id].attach_realname}' title='{$posts[pid].attachments[id].attach_realname}' /> 
    153158                                        {/if} 
    154                                         <img src='{$posts[pid].attachments[id].thumbnail}' style='border:1px solid black;' alt='{$posts[pid].attachments[id].attach_realname}' title='{$posts[pid].attachments[id].attach_realname}' /></a> 
     159                                        </a> 
    155160                                    </td> 
    156161                                </tr> 
    157162                                <tr> 
    158                                     <td style='color:#ffffff;font-size:10px;text-align:center'> 
     163                                    <td> 
    159164                                        {$posts[pid].attachments[id].imagesize.x}x{$posts[pid].attachments[id].imagesize.y} {$posts[pid].attachments[id].size} 
    160165                                    </td> 
  • trunk/includes/templates/forum.viewforum.tpl

    r843 r850  
    8484                    <td align='center' width='20' class='tbl2'> 
    8585                        {if $threads[id].thread_locked && $threads[id].unread_posts == 0} 
    86                             <img src='{$smarty.const.THEME}forum/folderlock.gif' title='{$locale.564}' alt='{$locale.564}' /> 
     86                            <img src='{$smarty.const.THEME}images/folderlock.gif' title='{$locale.564}' alt='{$locale.564}' /> 
    8787                        {elseif $threads[id].thread_locked && $threads[id].unread_posts > 0} 
    88                             <img src='{$smarty.const.THEME}forum/folderlocknew.gif' title='{$locale.564}' alt='{$locale.564}' /> 
     88                            <img src='{$smarty.const.THEME}images/folderlocknew.gif' title='{$locale.564}' alt='{$locale.564}' /> 
    8989                        {elseif $threads[id].unread_posts == 0} 
    90                             <img src='{$smarty.const.THEME}forum/folder.gif' title='{$locale.561}' alt='{$locale.561}' /> 
     90                            <img src='{$smarty.const.THEME}images/folder.gif' title='{$locale.561}' alt='{$locale.561}' /> 
    9191                        {elseif $threads[id].unread_posts <= $smarty.const.FOLDER_HOT} 
    92                             <img src='{$smarty.const.THEME}forum/foldernew.gif' title='{$locale.560}' alt='{$locale.560}' /> 
     92                            <img src='{$smarty.const.THEME}images/foldernew.gif' title='{$locale.560}' alt='{$locale.560}' /> 
    9393                        {else} 
    94                             <img src='{$smarty.const.THEME}forum/folderhot.gif' title='{$locale.562}' alt='{$locale.562}' /> 
     94                            <img src='{$smarty.const.THEME}images/folderhot.gif' title='{$locale.562}' alt='{$locale.562}' /> 
    9595                        {/if} 
    9696                    </td> 
    9797                    <td align='center' width='20' class='tbl1'> 
    9898                        <a href='viewthread.php?forum_id={$forum_id}&amp;thread_id={$threads[id].thread_id}&amp;pid={$threads[id].last_post}#post_{$threads[id].last_post}'> 
    99                             <img src='{$smarty.const.THEME}forum/last_post.jpg' title='{$locale.574}' alt='{$locale.574}' /> 
     99                            <img src='{$smarty.const.THEME}images/last_post.jpg' title='{$locale.574}' alt='{$locale.574}' /> 
    100100                        </a> 
    101101                    </td> 
    102102                    <td class='tbl1'> 
    103103                        {if $threads[id].thread_sticky} 
    104                             <img src='{$smarty.const.THEME}forum/stickythread.gif' title='{$locale.563}' alt='{$locale.563}' style='vertical-align:middle;' /> 
     104                            <img src='{$smarty.const.THEME}images/stickythread.gif' title='{$locale.563}' alt='{$locale.563}' style='vertical-align:middle;' /> 
    105105                        {/if} 
    106106                        <a href='viewthread.php?forum_id={$forum_id}&amp;thread_id={$threads[id].thread_id}'>{$threads[id].thread_subject}</a> 
     
    201201    <tr> 
    202202        <td class='tbl1'> 
    203             <img src='{$smarty.const.THEME}forum/foldernew.gif' alt='{$locale.560}' style='vertical-align:middle;' /> - {$locale.456} 
    204             (<img src='{$smarty.const.THEME}forum/folderhot.gif' alt='{$locale.562}' style='vertical-align:middle;' /> - {$smarty.const.FOLDER_HOT} {$locale.457} ) 
    205             <br /> 
    206             <img src='{$smarty.const.THEME}forum/folder.gif' alt='{$locale.561}' style='vertical-align:middle;' /> - {$locale.458} 
    207             <br /> 
    208             <img src='{$smarty.const.THEME}forum/folderlock.gif' alt='{$locale.564}' style='vertical-align:middle;' /> - {$locale.459} 
    209             <br /> 
    210             <img src='{$smarty.const.THEME}forum/stickythread.gif' alt='{$locale.563}' style='vertical-align:middle;' /> - {$locale.460} 
     203            <img src='{$smarty.const.THEME}images/foldernew.gif' alt='{$locale.560}' style='vertical-align:middle;' /> - {$locale.456} 
     204            (<img src='{$smarty.const.THEME}images/folderhot.gif' alt='{$locale.562}' style='vertical-align:middle;' /> - {$smarty.const.FOLDER_HOT} {$locale.457} ) 
     205            <br /> 
     206            <img src='{$smarty.const.THEME}images/folder.gif' alt='{$locale.561}' style='vertical-align:middle;' /> - {$locale.458} 
     207            <br /> 
     208            <img src='{$smarty.const.THEME}images/folderlock.gif' alt='{$locale.564}' style='vertical-align:middle;' /> - {$locale.459} 
     209            <br /> 
     210            <img src='{$smarty.const.THEME}images/stickythread.gif' alt='{$locale.563}' style='vertical-align:middle;' /> - {$locale.460} 
    211211        </td> 
    212212    </tr> 
  • trunk/themes/PLiTheme/styles.css

    r838 r850  
    109109.code               { margin:0px; padding:0 0 0 5px; border:1px #bbb solid; background-color:#fff; overflow-x:hidden} 
    110110.codenr             { margin:0px; padding:0px 3px 0px 3px; border:1px #bbb solid; background-color:#ddd; float:left; } 
     111.thumbnail          { color:#ddd;background-color:#333;text-align:center } 
    111112 
    112113/* --- Pollbox --------------------------------------------- */ 
Note: See TracChangeset for help on using the changeset viewer.