搜尋"自動縮圖"靖 寫:請問一下...
放圖片都是以圖片的最大的大小顯示
是否可以改成在不超過頁面的方式顯示圖片
並按下圖片就可以另開視窗顯示圖片的正常大小呢?
[風格][推薦]文章氣泡
點圖看最新OB影片預覽!
Nexon 2004年度MMORPG大作
中文情報集散論壇【Just mabinogi】(女神降臨之章啟動)
架設環境:Duron1.6/KM266/512MBDDR
軟體設定:Win2KPro/Appserv240/PHPBBplus1.3
網路頻寬:SO-Net 2M/384k 固定IP
[外掛]文章泡泡 英文不會自動斷行??
裝了文章泡泡 一切ok,不過因為我的網站是針對過外朋友,所以都是英文,發現英文在文章泡泡裡不會自動斷行??每行最後一個單字可能被拆成2半, 各位大大,有沒有解ㄋ?
在2.0.8版確是可行,但我裝了風格:Morpheus 之後
要改它的viewtopic_body.tpl卻不是這樣了
我把語法貼出來…\r
一成不變照做改完之後,那個氣泡整個好像被推到右邊一樣\r
變得扁扁地,被壓扁在畫面的右邊上
有人能告訴我該怎麼改嗎?
[php]<?php
<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> » <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
<td class="nav" align="right" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a></span></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="middle"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></td>
<td align="right" valign="middle"><div class="pagination">{PAGINATION}</div></td>
</tr>
</table>
{POLL_DISPLAY}
<!-- BEGIN switch_xs_enabled -->
<?php
if($this->vars['TPL_HDR1_POST'])
{
$postrow_count = ( isset($this->_tpldata['postrow.']) ) ? sizeof($this->_tpldata['postrow.']) : 0;
for ($postrow_i = 0; $postrow_i < $postrow_count; $postrow_i++)
{
$postrow_item = &$this->_tpldata['postrow.'][$postrow_i];
// set profile link and search button
if(!empty($postrow_item['PROFILE']) && strpos($postrow_item['POSTER_NAME'], '<') === false)
{
$postrow_item['SEARCH_IMG2'] = str_replace('%s', htmlspecialchars($postrow_item['POSTER_NAME']), $postrow_item['SEARCH_IMG']);
$search = array($lang['Read_profile'], '<a ');
$replace = array($postrow_item['POSTER_NAME'], '<a class="name" ');
$postrow_item['POSTER_NAME'] = str_replace($search, $replace, $postrow_item['PROFILE']);
}
// change view of joined, posts, location items
$data = array();
$profile_data = array();
$data[] = isset($postrow_item['POSTER_JOINED']) ? $postrow_item['POSTER_JOINED'] : '';
$data[] = isset($postrow_item['POSTER_POSTS']) ? $postrow_item['POSTER_POSTS'] : '';
$data[] = isset($postrow_item['POSTER_FROM']) ? $postrow_item['POSTER_FROM'] : '';
for($i=0; $i<count($data); $i++)
{
$arr = explode(': ', $data[$i], 2);
if(count($arr) == 2)
{
$profile_data[] = $arr;
}
}
$postrow_item['xs.'] = array(array());
$str = '';
if(count($profile_data))
{
$str .= '<table width="100%" cellspacing="5" cellpadding="0">';
for($i=0; $i<count($profile_data); $i++)
{
$str .= '<tr><td align="left" nowrap="nowrap"><span class="postdetails">' . $profile_data[$i][0] . ':</span></td><td align="left" width="100%"><span class="postdetails">' . $profile_data[$i][1] . '</span></td></tr>';
}
$str .= '</table>';
}
$postrow_item['XS_PROFILE'] = $str;
// check for new post
$new_post = strpos($postrow_item['MINI_POST_IMG'], '_new') > 0 ? true : false;
$postrow_item['TPL_HDR1'] = $new_post ? $this->vars['TPL_HDR1_NEW'] : $this->vars['TPL_HDR1_POST'];
}
$old_hdr = $this->vars['TPL_HDR1_POST'];
$this->vars['TPL_HDR1_POST'] = '';
}
?>
<!-- END switch_xs_enabled -->
<!-- BEGIN postrow -->
<a name="{postrow.U_POST_ID}"></a>
{TPL_HDR1_POST}{postrow.TPL_HDR1}{postrow.POST_SUBJECT}{TPL_HDR2}<table border="0" cellpadding="0" cellspacing="0" width="100%" class="post">
<tr>
<td width="150" class="row" align="center" valign="top" style="padding: 2px;" rowspan="2">
<div style="padding: 3px;"><span class="name">{postrow.POSTER_NAME}</span><br /></div>
<div style="padding: 2px;"><span class="postdetails">{postrow.POSTER_RANK}</span><br /></div>
{postrow.RANK_IMAGE}
{postrow.POSTER_AVATAR}
<br />
{postrow.XS_PROFILE}
<!-- BEGIN xs -->
<!--
<!-- END xs -->
<table width="100%" cellspacing="5" cellpadding="0">
<tr><td align="left"><span class="postdetails">{postrow.POSTER_JOINED}</span></td></tr>
<tr><td align="left"><span class="postdetails">{postrow.POSTER_POSTS}</span></td></tr>
<tr><td align="left"><span class="postdetails">{postrow.POSTER_FROM}</span></td></tr>
</table>
<!-- BEGIN xs -->
-->
<!-- END xs -->
<img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="150" height="1" border="0" alt="" />
</td>
<td width="1" class="postborder" rowspan="2"><img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="1" height="100" alt="" /></td>
<td width="100%" class="row" align="left" valign="top"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="50%" align="left" style="padding: 3px;"><span class="postdate">{L_POSTED}: {postrow.POST_DATE}</span></td>
<td width="50%"></td>
<td width="23" valign="top" class="posttop" align="left"><img src="{T_TEMPLATE_PATH}/images/posttop_left.gif" width="23" height="9" border="0" alt="" /></td>
<td class="posttop" nowrap="nowrap" valign="top">{postrow.QUOTE_IMG}{postrow.EDIT_IMG}{postrow.DELETE_IMG}{postrow.IP_IMG}</td>
</tr>
<tr>
<td width="50%" class="postline" height="1"><img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="100" height="1" alt="" /></td>
<td colspan="3" height="1"><img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="1" height="1" alt="" /></td>
</tr>
</table>
<div style="padding: 4px;"><span class="postbody">{postrow.MESSAGE}</span></div>
</td>
</tr>
<tr>
<td align="left" valign="bottom">
<div style="padding: 5px;"><span class="signature"><span class="gensmall">{postrow.EDITED_MESSAGE}</span>{postrow.SIGNATURE}</span></div>
<table width="100%" height="9" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="postbottom" height="9" nowrap="nowrap">{postrow.PROFILE_IMG}{postrow.SEARCH_IMG2}{postrow.PM_IMG}{postrow.EMAIL_IMG}{postrow.WWW_IMG}{postrow.AIM_IMG}{postrow.YIM_IMG}{postrow.MSN_IMG}{postrow.ICQ_IMG}</td>
<td width="100%" height="9" align="left"><img src="{T_TEMPLATE_PATH}/images/postbottom_right.gif" width="22" height="9" alt="" /></td>
</tr>
</table></td>
</tr>
</table>{TPL_FTR}
<!-- END postrow -->
{TPL_HDR1_ORANGE}<a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}{TPL_HDR2}<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td class="row" align="left" valign="top">
<table border="0" cellspacing="0" cellpadding="5" width="100%">
<tr>
<td align="left" valign="top">
<span class="gensmall">{S_AUTH_LIST}</span>
</td>
<td align="right" valign="top">
<span class="gensmall">{S_TIMEZONE} <br />
{PAGE_NUMBER} </span>
<div class="pagination">{PAGINATION}</div><br />
<span class="gensmall">{S_WATCH_TOPIC}</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="catBottom" align="center" valign="middle" nowrap="nowrap"><table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<form method="post" action="{S_POST_DAYS_ACTION}"><td align="left" valign="middle" nowrap="nowrap">{S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} <input type="submit" value="{L_GO}" class="liteoption" name="submit" /></td></form>
<td align="right" valign="middle" nowrap="nowrap">{JUMPBOX}</td>
</tr>
</table>
</td>
</tr>
</table>{TPL_FTR}
<table border="0" cellspacing="0" cellpadding="5" width="100%">
<tr>
<td align="left" valign="top"> <a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></td>
<td align="right" valign="top">{S_TOPIC_ADMIN} </td>
</tr>
</table>
<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> » <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
<td class="nav" align="right" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a></span></td>
</tr>
</table>
?>[/php]
要改它的viewtopic_body.tpl卻不是這樣了
我把語法貼出來…\r
一成不變照做改完之後,那個氣泡整個好像被推到右邊一樣\r
變得扁扁地,被壓扁在畫面的右邊上
有人能告訴我該怎麼改嗎?
[php]<?php
<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> » <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
<td class="nav" align="right" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a></span></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="middle"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></td>
<td align="right" valign="middle"><div class="pagination">{PAGINATION}</div></td>
</tr>
</table>
{POLL_DISPLAY}
<!-- BEGIN switch_xs_enabled -->
<?php
if($this->vars['TPL_HDR1_POST'])
{
$postrow_count = ( isset($this->_tpldata['postrow.']) ) ? sizeof($this->_tpldata['postrow.']) : 0;
for ($postrow_i = 0; $postrow_i < $postrow_count; $postrow_i++)
{
$postrow_item = &$this->_tpldata['postrow.'][$postrow_i];
// set profile link and search button
if(!empty($postrow_item['PROFILE']) && strpos($postrow_item['POSTER_NAME'], '<') === false)
{
$postrow_item['SEARCH_IMG2'] = str_replace('%s', htmlspecialchars($postrow_item['POSTER_NAME']), $postrow_item['SEARCH_IMG']);
$search = array($lang['Read_profile'], '<a ');
$replace = array($postrow_item['POSTER_NAME'], '<a class="name" ');
$postrow_item['POSTER_NAME'] = str_replace($search, $replace, $postrow_item['PROFILE']);
}
// change view of joined, posts, location items
$data = array();
$profile_data = array();
$data[] = isset($postrow_item['POSTER_JOINED']) ? $postrow_item['POSTER_JOINED'] : '';
$data[] = isset($postrow_item['POSTER_POSTS']) ? $postrow_item['POSTER_POSTS'] : '';
$data[] = isset($postrow_item['POSTER_FROM']) ? $postrow_item['POSTER_FROM'] : '';
for($i=0; $i<count($data); $i++)
{
$arr = explode(': ', $data[$i], 2);
if(count($arr) == 2)
{
$profile_data[] = $arr;
}
}
$postrow_item['xs.'] = array(array());
$str = '';
if(count($profile_data))
{
$str .= '<table width="100%" cellspacing="5" cellpadding="0">';
for($i=0; $i<count($profile_data); $i++)
{
$str .= '<tr><td align="left" nowrap="nowrap"><span class="postdetails">' . $profile_data[$i][0] . ':</span></td><td align="left" width="100%"><span class="postdetails">' . $profile_data[$i][1] . '</span></td></tr>';
}
$str .= '</table>';
}
$postrow_item['XS_PROFILE'] = $str;
// check for new post
$new_post = strpos($postrow_item['MINI_POST_IMG'], '_new') > 0 ? true : false;
$postrow_item['TPL_HDR1'] = $new_post ? $this->vars['TPL_HDR1_NEW'] : $this->vars['TPL_HDR1_POST'];
}
$old_hdr = $this->vars['TPL_HDR1_POST'];
$this->vars['TPL_HDR1_POST'] = '';
}
?>
<!-- END switch_xs_enabled -->
<!-- BEGIN postrow -->
<a name="{postrow.U_POST_ID}"></a>
{TPL_HDR1_POST}{postrow.TPL_HDR1}{postrow.POST_SUBJECT}{TPL_HDR2}<table border="0" cellpadding="0" cellspacing="0" width="100%" class="post">
<tr>
<td width="150" class="row" align="center" valign="top" style="padding: 2px;" rowspan="2">
<div style="padding: 3px;"><span class="name">{postrow.POSTER_NAME}</span><br /></div>
<div style="padding: 2px;"><span class="postdetails">{postrow.POSTER_RANK}</span><br /></div>
{postrow.RANK_IMAGE}
{postrow.POSTER_AVATAR}
<br />
{postrow.XS_PROFILE}
<!-- BEGIN xs -->
<!--
<!-- END xs -->
<table width="100%" cellspacing="5" cellpadding="0">
<tr><td align="left"><span class="postdetails">{postrow.POSTER_JOINED}</span></td></tr>
<tr><td align="left"><span class="postdetails">{postrow.POSTER_POSTS}</span></td></tr>
<tr><td align="left"><span class="postdetails">{postrow.POSTER_FROM}</span></td></tr>
</table>
<!-- BEGIN xs -->
-->
<!-- END xs -->
<img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="150" height="1" border="0" alt="" />
</td>
<td width="1" class="postborder" rowspan="2"><img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="1" height="100" alt="" /></td>
<td width="100%" class="row" align="left" valign="top"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="50%" align="left" style="padding: 3px;"><span class="postdate">{L_POSTED}: {postrow.POST_DATE}</span></td>
<td width="50%"></td>
<td width="23" valign="top" class="posttop" align="left"><img src="{T_TEMPLATE_PATH}/images/posttop_left.gif" width="23" height="9" border="0" alt="" /></td>
<td class="posttop" nowrap="nowrap" valign="top">{postrow.QUOTE_IMG}{postrow.EDIT_IMG}{postrow.DELETE_IMG}{postrow.IP_IMG}</td>
</tr>
<tr>
<td width="50%" class="postline" height="1"><img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="100" height="1" alt="" /></td>
<td colspan="3" height="1"><img src="{T_TEMPLATE_PATH}/images/spacer.gif" width="1" height="1" alt="" /></td>
</tr>
</table>
<div style="padding: 4px;"><span class="postbody">{postrow.MESSAGE}</span></div>
</td>
</tr>
<tr>
<td align="left" valign="bottom">
<div style="padding: 5px;"><span class="signature"><span class="gensmall">{postrow.EDITED_MESSAGE}</span>{postrow.SIGNATURE}</span></div>
<table width="100%" height="9" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="postbottom" height="9" nowrap="nowrap">{postrow.PROFILE_IMG}{postrow.SEARCH_IMG2}{postrow.PM_IMG}{postrow.EMAIL_IMG}{postrow.WWW_IMG}{postrow.AIM_IMG}{postrow.YIM_IMG}{postrow.MSN_IMG}{postrow.ICQ_IMG}</td>
<td width="100%" height="9" align="left"><img src="{T_TEMPLATE_PATH}/images/postbottom_right.gif" width="22" height="9" alt="" /></td>
</tr>
</table></td>
</tr>
</table>{TPL_FTR}
<!-- END postrow -->
{TPL_HDR1_ORANGE}<a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}{TPL_HDR2}<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td class="row" align="left" valign="top">
<table border="0" cellspacing="0" cellpadding="5" width="100%">
<tr>
<td align="left" valign="top">
<span class="gensmall">{S_AUTH_LIST}</span>
</td>
<td align="right" valign="top">
<span class="gensmall">{S_TIMEZONE} <br />
{PAGE_NUMBER} </span>
<div class="pagination">{PAGINATION}</div><br />
<span class="gensmall">{S_WATCH_TOPIC}</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="catBottom" align="center" valign="middle" nowrap="nowrap"><table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<form method="post" action="{S_POST_DAYS_ACTION}"><td align="left" valign="middle" nowrap="nowrap">{S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} <input type="submit" value="{L_GO}" class="liteoption" name="submit" /></td></form>
<td align="right" valign="middle" nowrap="nowrap">{JUMPBOX}</td>
</tr>
</table>
</td>
</tr>
</table>{TPL_FTR}
<table border="0" cellspacing="0" cellpadding="5" width="100%">
<tr>
<td align="left" valign="top"> <a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></td>
<td align="right" valign="top">{S_TOPIC_ADMIN} </td>
</tr>
</table>
<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> » <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
<td class="nav" align="right" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a></span></td>
</tr>
</table>
?>[/php]