หน้าเว็บ

วันพฤหัสบดีที่ 15 ธันวาคม พ.ศ. 2554

ทำให้กระดานข่าวโพสไฟล์ได้

วิธีการติดตั้งกระดานข่าวให้สามารถโพสไฟล์ได้ สามารถนำไปใช้งานกับหลายๆธีมได้ แต่ก็ต้องแก้ไขบ้างในส่วนของ class ที่อาจจะไม่ตรงกัน


[code filename="attachment_mod_for_christmas_style.txt"] 

#-----[ COPY ]------------------------------------------ 

copy templates/subSilver/viewtopic_attach_body.tpl to templates/Christmas/viewtopic_attach_body.tpl 
copy templates/subSilver/add_attachment_body.tpl to templates/Christmas/add_attachment_body.tpl 



#-----[ OPEN ]--------------------------------------------- 

templates/Christmas/modcp_body.tpl 



#-----[ FIND ]--------------------------------------------- 

{topicrow.TOPIC_TYPE} 



#-----[ IN-LINE FIND ]--------------------------------------------- 

{topicrow.TOPIC_TYPE} 



#-----[ IN-LINE BEFORE, ADD ]--------------------------------------- 

{topicrow.TOPIC_ATTACHMENT_IMG} 



#-----[ OPEN ]--------------------------------------------- 

templates/Christmas/posting_body.tpl 



#-----[ FIND ]--------------------------------------------- 

<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)"> 



#-----[ IN-LINE FIND ]--------------------------------------------- 

onsubmit="return checkForm(this)" 



#-----[ IN-LINE AFTER, ADD ]--------------------------------------- 

{S_FORM_ENCTYPE} 



#-----[ FIND ]--------------------------------------------- 

{POLLBOX} 



#-----[ BEFORE, ADD ]--------------------------------------- 

{ATTACHBOX} 



#-----[ OPEN ]--------------------------------------------- 

templates/Christmas/posting_preview.tpl 



#-----[ FIND ]--------------------------------------------- 

<td class="post-top2 postbody">{MESSAGE}</td> 



#-----[ AFTER, ADD ]--------------------------------------- 

<tr> 
<td class="post-top2 postbody"> 
<!-- BEGIN postrow --> 
{ATTACHMENTS} 
<!-- END postrow --> 
</td> 
</tr> 



#-----[ OPEN ]--------------------------------------------- 

templates/Christmas/posting_topic_review.tpl 



#-----[ FIND ]--------------------------------------------- 

<td colspan="2"><span class="postbody">{postrow.MESSAGE}</span></td> 



#-----[ IN-LINE FIND ]--------------------------------------------- 

{postrow.MESSAGE}</span> 



#-----[ IN-LINE AFTER, ADD ]--------------------------------------- 

{postrow.ATTACHMENTS} 



#-----[ OPEN ]--------------------------------------------- 

templates/Christmas/privmsgs_body.tpl 



#-----[ FIND ]--------------------------------------------- 

<td align="left" valign="bottom">{POST_PM_IMG}</td> 



#-----[ REPLACE WITH ]--------------------------------------------- 

<td align="left"> 
<!-- BEGIN switch_box_size_notice --> 
<table width="190" cellspacing="1" cellpadding="2" border="0" class="forumline"> 
<tr> 
<td colspan="3" width="190" class="row" nowrap="nowrap"><span class="gensmall">{ATTACH_BOX_SIZE_STATUS}</span></td> 
</tr> 
<tr> 
<td colspan="3" width="190" class="row" nowrap="nowrap"><img src="{T_TEMPLATE_PATH}/images/voting_left.gif" width="4" height="12" border="0" /><img src="{T_TEMPLATE_PATH}/images/voting_bar.gif" width="{ATTACHBOX_LIMIT_IMG_WIDTH}" height="12" alt="{ATTACH_LIMIT_PERCENT}" title="{ATTACH_LIMIT_PERCENT}" /><img src="{T_TEMPLATE_PATH}/images/voting_right.gif" width="4" height="12" border="0" alt="" /></td> 
</tr> 
<tr> 
<td width="33%" class="row"><span class="gensmall">0%</span></td> 
<td width="34%" align="center" class="row"><span class="gensmall">50%</span></td> 
<td width="33%" align="right" class="row"><span class="gensmall">100%</span></td> 
</tr> 
</table> 
<!-- END switch_box_size_notice --> 
</td> 



#-----[ FIND ]--------------------------------------------- 

<!-- END switch_box_size_notice --> 
</td> 
</tr> 



#-----[ AFTER, ADD ]--------------------------------------- 

<tr> 
<td align="left" valign="bottom" colspan="3"><br />{POST_PM_IMG}</td> 
</tr> 



#-----[ FIND ]--------------------------------------------- 

<td valign="middle" class="row"><span class="topiclink">&nbsp;<a href="{listrow.U_READ}" class="topiclink">{listrow.SUBJECT}</a></span></td> 



#-----[ IN-LINE FIND ]--------------------------------------------- 

<span class="topiclink"> 


#-----[ IN-LINE BEFORE, ADD ]--------------------------------------- 

{listrow.PRIVMSG_ATTACHMENTS_IMG} 



#-----[ OPEN ]--------------------------------------------- 

templates/Christmas/privmsgs_preview.tpl 



#-----[ FIND ]--------------------------------------------- 

<tr> 
<td class="post-top2 postbody">{MESSAGE}</td> 
</tr> 



#-----[ AFTER, ADD ]--------------------------------------------- 

<tr> 
<td class="post-top2 postbody"> 
<!-- BEGIN postrow --> 
{ATTACHMENTS} 
<!-- END postrow --> 
</td> 
</tr> 



#-----[ OPEN ]--------------------------------------------- 

templates/Christmas/privmsgs_read_body.tpl 



#-----[ FIND ]--------------------------------------------- 

<tr> 
<td class="post-top2 postbody">{MESSAGE}</td> 
</tr> 



#-----[ AFTER, ADD ]--------------------------------------------- 

<tr> 
<td class="post-top2 postbody"> 
<!-- BEGIN postrow --> 
{ATTACHMENTS} 
<!-- END postrow --> 
</td> 
</tr> 



#-----[ FIND ]--------------------------------------------- 

<td class="post-bottom3 postbody" align="right"><br /><span class="gensmall"><input type="submit" name="save" value="{L_SAVE_MSG}" class="liteoption" />&nbsp;<input type="submit" name="delete" value="{L_DELETE_MSG}" class="liteoption" />&nbsp;</span></td> 



#-----[ REPLACE WITH ]--------------------------------------------- 

<td class="post-bottom3 postbody" align="right"> 
<br /><span class="gensmall"> 
<input type="submit" name="save" value="{L_SAVE_MSG}" class="liteoption" />&nbsp; 
<input type="submit" name="delete" value="{L_DELETE_MSG}" class="liteoption" />&nbsp; 
<!-- BEGIN switch_attachments --> 
<input type="submit" name="pm_delete_attach" value="{L_DELETE_ATTACHMENTS}" class="liteoption" /> 
<!-- END switch_attachments --> 
</span> 
</td> 



#-----[ OPEN ]--------------------------------------------- 

templates/Christmas/profile_view_body.tpl 



#-----[ FIND ]--------------------------------------------- 

<td> <b><span class="gen">{INTERESTS}</span></b></td> 
</tr> 



#-----[ AFTER, ADD ]--------------------------------------------- 


<!-- BEGIN switch_upload_limits --> 
<tr> 
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_UPLOAD_QUOTA}:&nbsp;</span></td> 
<td> 
<table width="190" cellspacing="1" cellpadding="2" border="0" class="forumline"> 
<tr> 
<td colspan="3" width="190" class="row" nowrap="nowrap"><span class="gensmall">{L_UPLOAD_QUOTA}:</span></td> 
</tr> 
<tr> 
<td colspan="3" width="190" class="row" nowrap="nowrap"><img src="{T_TEMPLATE_PATH}/images/voting_left.gif" width="4" height="12" border="0" /><img src="{T_TEMPLATE_PATH}/images/voting_bar.gif" width="{UPLOAD_LIMIT_IMG_WIDTH}" height="12" alt="{UPLOAD_LIMIT_PERCENT}" title="{UPLOAD_LIMIT_PERCENT}" /><img src="{T_TEMPLATE_PATH}/images/voting_right.gif" width="4" height="12" border="0" alt="" /></td> 
</tr> 
<tr> 
<td width="33%" class="row"><span class="gensmall">0%</span></td> 
<td width="34%" align="center" class="row"><span class="gensmall">50%</span></td> 
<td width="33%" align="right" class="row"><span class="gensmall">100%</span></td> 
</tr> 
</table> 

<span class="genmed">[{UPLOADED} / {QUOTA} / {PERCENT_FULL}]</span><br /> 
<span class="genmed"><a href="{U_UACP}" class="genmed">{L_UACP}</a></span> 
</td> 
</tr> 
<!-- END switch_upload_limits --> 



#-----[ OPEN ]--------------------------------------------- 

templates/Christmas/viewforum_body.tpl 



#-----[ FIND ]--------------------------------------------- 

<td class="row" width="100%"><span class="genmed">{topicrow.NEWEST_POST_IMG} 



#-----[ IN-LINE FIND ]--------------------------------------------- 

{topicrow.NEWEST_POST_IMG} 



#-----[ IN-LINE AFTER, ADD ]--------------------------------------- 

{topicrow.TOPIC_ATTACHMENT_IMG} 



#-----[ OPEN ]--------------------------------------------- 

templates/Christmas/viewtopic_body.tpl 



#-----[ FIND ]--------------------------------------------- 

<td class="post-bottom3 postbody"><span class="signature"><span class="gensmall"><br />{postrow.EDITED_MESSAGE}</span>{postrow.SIGNATURE}</span></td> 



#-----[ IN-LINE FIND ]--------------------------------------------- 

{postrow.SIGNATURE} 



#-----[ IN-LINE BEFORE, ADD ]--------------------------------------- 

</span>{postrow.ATTACHMENTS}<span class="post-bottom3 postbody"> 



#-----[ OPEN ]--------------------------------------------- 

templates/Christmas/admin/group_edit_body.tpl 



#-----[ FIND ]--------------------------------------------- 

<!-- END group_edit --> 



#-----[ BEFORE, ADD ]--------------------------------------- 

<tr> 
<td class="row1" width="38%"><span class="gen">{L_UPLOAD_QUOTA}</span></td> 
<td class="row2" width="62%">{S_SELECT_UPLOAD_QUOTA}</td> 
</tr> 
<tr> 
<td class="row1" width="38%"><span class="gen">{L_PM_QUOTA}</span></td> 
<td class="row2" width="62%">{S_SELECT_PM_QUOTA}</td> 
</tr> 



#-----[ OPEN ]--------------------------------------------- 

templates/Christmas/admin/user_edit_body.tpl 



#-----[ FIND ]--------------------------------------------- 

<td class="row1" colspan="2"><span class="gensmall">{L_SPECIAL_EXPLAIN}</span></td> 
</tr> 



#-----[ AFTER, ADD ]--------------------------------------- 

<tr> 
<td class="row1"><span class="gen">{L_UPLOAD_QUOTA}</span></td> 
<td class="row2">{S_SELECT_UPLOAD_QUOTA}</td> 
</tr> 
<tr> 
<td class="row1"><span class="gen">{L_PM_QUOTA}</span></td> 
<td class="row2">{S_SELECT_PM_QUOTA}</td> 
</tr> 



#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 

# EoM 
[/code]

ไม่มีความคิดเห็น:

แสดงความคิดเห็น