我把 DannyJ 的中文圖檔和友善列印MOD套用了這個風格,可以在文章內容上下方各有顯示友善列印。
代碼: 選擇全部
#
#[color=red]------[ 打開 ] ------[/color]
#
viewtopic.php
#
#[color=red]----[ 尋找 ] ----[/color]
#
'POST_IMG' => $post_img,
'REPLY_IMG' => $reply_img,
#
#[color=red]----[ 在這之後加入] ------[/color]
#
'L_PRINT' => ($lang['Print_View']) ? $lang['Print_View'] : 'Printable version',
'U_PRINT' => append_sid("printview.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start"),
'U_PRINT_IMG_A' => $images['print_topic_a'], // Printable Page
'U_PRINT_IMG_B' => $images['print_topic_b'], // Printable Page
#
#[color=red]------[ 打開 ]-----[/color]
#
templates/fiapple/fiapple.cfg
#
#[color=red]----[ 尋找 ] ----[/color]
#
$images['reply_new'] = "$current_template_images/{LANG}/reply.gif";
$images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif";
#
#[color=red]----[ 在這之後加入] ------[/color]
#
$images['print_topic_a'] = "$current_template_images/{LANG}/print-topic-a.gif";
$images['print_topic_b'] = "$current_template_images/{LANG}/print-topic-b.gif";
#
#[color=red]------[ 打開 ]-----[/color]
#
templates/fiapple/viewtopic_body.tpl
#
#[color=red]--- [ 尋找 ] [ 約 18 行左右 ] [ 切記 這是上方的修改地方 ]----
#
<a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
#
#[color=red]--- [ 在 </a> </span> 的中間加入] ----[/color]
#
<td align="right" valign="bottom"><span class="mainmenu"><a href="{U_PRINT}" title="{L_PRINT}" class="mainmenu"><img src="{U_PRINT_IMG_A}" alt="{L_PRINT}" border="0" /></a>
#
#[color=red]--- [ 尋找 ] [ 約 66 行左右 ] [ 切記 這是下方的修改地方 ]----[/color]
#
<a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
#
#[color=red]--- [ 在 </a> </span> 的中間加入] ----[/color]
#
<td align="right" valign="bottom"><span class="mainmenu"><a href="{U_PRINT}" title="{L_PRINT}" class="mainmenu"><img src="{U_PRINT_IMG_B}" alt="{L_PRINT}" border="0" /></a>
#
#[color=red]--- [ 存檔 ] ---[/color]
#
#[color=red]--- [ 在將下載的檔案 ( printview.php ) 上傳至 ( phpBB主目錄 ) ] ---[/color]
#
#[color=red]--- [ 在將下載的檔案 ( viewtopic_print.tpl ) 上傳至 ( /templates/fiapple/ ) ] ---[/color]
#
#[color=red]--- [ 上傳圖檔( print-topic-a.gif ) ( print-topic-b.gif ) ] ---[/color]
/templates/fiapple/images/lang_english/
********完成"友善列印" FI Apple Theme 版********

┼





