Changeset 850 in ExiteCMS
- Timestamp:
- 09/28/07 22:07:51 (4 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
- 1 moved
-
forum/viewthread.php (modified) (2 diffs)
-
includes/template-plugins (moved) (moved from trunk/includes/template_plugins)
-
includes/templates/forum.index.tpl (modified) (2 diffs)
-
includes/templates/forum.renderpost.tpl (modified) (6 diffs)
-
includes/templates/forum.viewforum.tpl (modified) (2 diffs)
-
themes/PLiTheme/styles.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/viewthread.php
r843 r850 248 248 // check what options to show for this post 249 249 $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"))); 251 251 252 252 // country flag … … 324 324 $adata['size'] = parsebytesize(filesize($file),0); 325 325 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); 328 328 if (is_array($imageinfo)) { 329 329 $adata['is_image'] = true; -
trunk/includes/templates/forum.index.tpl
r843 r850 55 55 <td align='center' class='tbl2'> 56 56 {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}' /> 58 58 {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}' /> 60 60 {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}' /> 62 62 {/if} 63 63 </td> … … 127 127 <td class='forum'> 128 128 <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} 130 130 <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} 132 132 </td> 133 133 <td align='right' valign='bottom' class='forum'> -
trunk/includes/templates/forum.renderpost.tpl
r845 r850 26 26 <td class='tbl_top_mid'> 27 27 {if $posts[pid].post_sticky} 28 <img src='{$smarty.const.THEME} forum/stickythread.gif' alt='{$locale.572}' style='vertical-align:top;' /> 28 <img src='{$smarty.const.THEME}images/stickythread.gif' alt='{$locale.572}' style='vertical-align:top;' /> 29 29 {/if} 30 30 {if $posts[pid].thread_id != 0 && $posts[pid].post_id != 0} … … 37 37 {/if} 38 38 </td> 39 {if $posts[pid].show_ip} 39 40 <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} 40 44 {if $smarty.const.iMEMBER && $user_can_post} 41 45 {if $posts[pid].user_can_edit} … … 54 58 {/if} 55 59 </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}&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}&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} 67 71 </tr> 68 72 <tr> … … 126 130 </td> 127 131 <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:" "}132 {$posts[pid].post_message|default:" "|escape:"entities"} 129 133 {section name=id loop=$posts[pid].attachments} 130 134 {if $smarty.section.id.first} … … 144 148 {else} 145 149 {if $posts[pid].attachments[id].has_thumbnail} 146 <table cellpadding='0'cellspacing='0' bgcolor='#000000'>150 <table cellpadding='0'cellspacing='0' class='thumbnail'> 147 151 <tr> 148 152 <td> … … 150 154 <a href='{$smarty.const.BASEDIR}getfile.php?type=a&file_id={$posts[pid].attachments[id].attach_id}' title='{$posts[pid].attachments[id].attach_comment}'>{$posts[pid].attachments[id].attach_realname} 151 155 {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}' /> 153 158 {/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> 155 160 </td> 156 161 </tr> 157 162 <tr> 158 <td style='color:#ffffff;font-size:10px;text-align:center'>163 <td> 159 164 {$posts[pid].attachments[id].imagesize.x}x{$posts[pid].attachments[id].imagesize.y} {$posts[pid].attachments[id].size} 160 165 </td> -
trunk/includes/templates/forum.viewforum.tpl
r843 r850 84 84 <td align='center' width='20' class='tbl2'> 85 85 {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}' /> 87 87 {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}' /> 89 89 {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}' /> 91 91 {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}' /> 93 93 {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}' /> 95 95 {/if} 96 96 </td> 97 97 <td align='center' width='20' class='tbl1'> 98 98 <a href='viewthread.php?forum_id={$forum_id}&thread_id={$threads[id].thread_id}&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}' /> 100 100 </a> 101 101 </td> 102 102 <td class='tbl1'> 103 103 {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;' /> 105 105 {/if} 106 106 <a href='viewthread.php?forum_id={$forum_id}&thread_id={$threads[id].thread_id}'>{$threads[id].thread_subject}</a> … … 201 201 <tr> 202 202 <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} 211 211 </td> 212 212 </tr> -
trunk/themes/PLiTheme/styles.css
r838 r850 109 109 .code { margin:0px; padding:0 0 0 5px; border:1px #bbb solid; background-color:#fff; overflow-x:hidden} 110 110 .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 } 111 112 112 113 /* --- Pollbox --------------------------------------------- */
Note: See TracChangeset
for help on using the changeset viewer.
