[小技巧]attachment檔案註解突破30字限制

MODs Released by Other phpbb Sites
非官方認證通過之 MOD ,或許有安全性之疑慮,所有問題由原發表者回覆!

版主: 版主管理群

主題已鎖定
頭像
shindler
星球普通子民
星球普通子民
文章: 8
註冊時間: 2002-04-09 14:46

[小技巧]attachment檔案註解突破30字限制

文章 shindler »

1. /templates/urtemp/posting_attach_body.tpl
<td class="row1"><span class="gen"><b>{L_FILE_COMMENT}</b></span></td>
<td class="row2"><span class="genmed"> <input type="text" name="filecomment" size="40" maxlength="60" value="{FILE_COMMENT}" class="post">  
裡頭的maxlength="60" 改多點,我是設1000...

2. /db/schemas/attach_mysql_schema.sql
搜尋comment char(60),將裡頭的60改為你要的數字,我也是改1000.

3. 用phpmyadmin 修改資料庫
phpbb_attach_desc->comment
將comment值型態由varchar(255) 改成blob 即可。


4. 如果要將註解文字放在圖片左邊的話\r
/templates/ur temp/viewtopic_attach_body.tpl

找\r
<span class="postbody">
<img src="{postrow.attach.cat_images.IMG_SRC}" alt="{postrow.attach.cat_images.DOWNLOAD_NAME}" align="left"/>{postrow.attach.cat_images.DOWNLOAD_NAME}</span>
將這段變成
<table width="100%" border="0">
<tr>
<td><span class="postbody">
<img src="{postrow.attach.cat_images.IMG_SRC}" alt="{postrow.attach.cat_images.DOWNLOAD_NAME}" align="left"/>{postrow.attach.cat_images.DOWNLOAD_NAME}</span></td></tr><br /></table>
也就是加上align="left" 及table 就對了!!

範例如下
http://k.dln.ks.edu.tw/forum/viewtopic.php?t=195
splin
星球公民
星球公民
文章: 73
註冊時間: 2002-04-17 20:21
來自: CPalm漢化聯盟
聯繫:

文章 splin »

這樣連檔案的註解不就全部在左邊了?
圖檔http://cpalm.org/ , Palm 軟體中文化的專業站台。
頭像
shindler
星球普通子民
星球普通子民
文章: 8
註冊時間: 2002-04-09 14:46

文章 shindler »

splin 寫:這樣連檔案的註解不就全部在左邊了?
這樣圖片就會在檔案註解的左邊。

可以看自己的需要修改。

我是需要看圖說故事,把註解放在圖的右邊比較適合。
主題已鎖定

回到「非官方認證外掛」