Update of /cvsroot/phpslash/phpslash-skins/include/templates/en/ShankZen
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16106/phpslash-skins/include/templates/en/ShankZen
Modified Files:
commentSubmitForm.tpl slashFoot.tpl
Added Files:
slashHead-fckeditor.tpl
Log Message:
add fckeditor to comment submit
--- NEW FILE: slashHead-fckeditor.tpl ---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- START slashHead.tpl -->
<html>
<head>
<title>{SITE_NAME} :: {SITETITLE}</title> <!-- {SECTION} :: -->
<!-- theme design: Peter Cruickshank < in...@cr... > -->
<!-- Enter Your Desired META Tags Below Here -->
<!-- This Meta Tag is Defined In Each Page By Setting The Variable
$xsiteobject = "HomePage"; to the page type HomePage, Glossary,
Info, etc.. -->
<meta name="object" content="{XSITEOBJECT}" />
<!-- Enter Your META Tags Above Here -->
<!-- BEGIN each_metatag -->
<meta name="{METANAME}" content="{METADESCRIPTION}" />
<!-- END each_metatag -->
<link rel="alternate" type="application/rss+xml" title="RSS" href="{ROOTDIR}/backend.php3" />
<link rel="stylesheet" type="text/css" href="{ROOTDIR}/styles/{SKIN}.css" />
<style type="text/css" media="screen">@import "{ROOTDIR}/styles/{SKIN}_ext.css";</style>
<!-- BEGIN FCKeditor Javascript -->
<script type="text/javascript" src="{ROOTDIR}/scripts/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
// this function will get called at body.onload
function initEditor() {
/*
var oFCKeditor = new FCKeditor( 'intro_text' );
oFCKeditor.BasePath = '{ROOTDIR}/scripts/fckeditor/';
oFCKeditor.ReplaceTextarea() ;
var oFCKeditor = new FCKeditor( 'body_text' ) ;
oFCKeditor.BasePath = '{ROOTDIR}/scripts/fckeditor/';
oFCKeditor.ReplaceTextarea() ;
*/
var oFCKeditor = new FCKeditor( 'comment_text' ) ;
oFCKeditor.BasePath = '{ROOTDIR}/scripts/fckeditor/';
oFCKeditor.ToolbarSet = "Basic" ;
oFCKeditor.Config['SkinPath'] = '{ROOTDIR}/scripts/fckeditor/editor/skins/silver/' ;
oFCKeditor.ReplaceTextarea() ;
//---------------------------------------------------------------------
};
function PSL_chooseEditor(onLoad) {
// if IE 5.5 or W3C/Moz 1.3+ - Can't combine the two due to problems with reload() & IE
// IE 5.5 - Eliminating reload() because it pulled down new form data
if(document.all && document.designMode) {
// HTML or htmlArea
if (document.editNew.content_type[0].checked) {
// HTMLArea.replace('en');
// HTMLArea.replaceAll();
initEditor();
} else {
// how to remove in IE?
}
// W3C/Moz 1.3+ - reload() without adjusting form data
} else if(document.designMode) {
// HTML or htmlArea
if (document.editNew.content_type[0].checked) {
// HTMLArea.replace('en');
// HTMLArea.replaceAll();
initEditor();
} else {
if(onLoad == 1) {
onLoad = 2;
window.location.reload();
}
}
}
}
</script>
<!-- END HTMLAREA3 Javascript -->
</head>
<body onload="PSL_chooseEditor()">
<a name="top"> </a>
<table id="header" width=80%>
<tr><td>
<div style="vertical-align:bottom">
<div class="psl-logo">
<a href="{ROOTDIR}"><img src="{IMAGEDIR}/topics/topicphpslash.gif" alt="{SITE_NAME}" border="0" width="100" height="40"/></a>
</div>
<div class="psl-title">
{SITETITLE}
</div>
</div>
<!-- Search box
<div class="psl-search">
<form method="get" action="{SEARCH_ACTION_URL}">
<input type="text" name="query" value="" size="15" class="psl-text" />
<input type="submit" value="Search" class="psl-button" />
<input type="hidden" name="topic_id" value="" />
<input type="hidden" name="section_id" value="" />
<input type="hidden" name="author_id" value="" />
</form>
</div> end: search -->
<!-- TOPICBAR -->
</td></tr>
<tr><td>
{NAVBAR}
</td></tr>
</table> <!-- end: header -->
<!-- END slashHead.tpl -->
Index: commentSubmitForm.tpl
===================================================================
RCS file: /cvsroot/phpslash/phpslash-skins/include/templates/en/ShankZen/commentSubmitForm.tpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** commentSubmitForm.tpl 8 Apr 2003 21:12:32 -0000 1.1
--- commentSubmitForm.tpl 28 Oct 2004 20:16:45 -0000 1.2
***************
*** 1,57 ****
! <!-- start commentSubmitForm.tpl -->
! {PARENT}
!
! <div class="psl-block">
! <h4>Write your comment here</h4>
!
! <form action="{ACTION_URL}" method="post">
! <input type="hidden" name="story_id" value="{STORY_ID}" />
! <input type="hidden" name="comment_id" value="{COMMENT_ID}" />
! <input type="hidden" name="parent_id" value="{PARENT_ID}" />
!
! <table border="0" cellpadding="1">
! <tr>
! <td class="psl-descr">Name</td>
! <td><input type="text" name="name" size="50" value="{NAME}" /></td>
! </tr>
! <tr>
! <td class="psl-descr">Email</td>
! <td><input type="text" name="email" size="50" value="{EMAIL}" /></td>
! </tr>
! <tr>
! <td class="psl-descr">Subject</td>
! <td><input type="text" name="subject" size="50" value="{SUBJECT}" /></td>
! </tr>
! <tr>
! <td class="psl-descr">Comment</td>
! <td><textarea wrap="virtual" name="comment_text" rows="10" cols="50">{COMMENT}</textarea></td>
! </tr>
! <tr>
! <td class="psl-descr">Options</td>
! <td>
! <input type="radio" {PLAIN} name="content" value="plain" /> Plain Text
! <input type="radio" {HTML} name="content" value="html" /> HTML
! <input type="radio" {EXTTRANS} name="content" value="exttrans" /> Extended Translation<br />
! <input type="checkbox" name="cookiebox" /> Save me in a cookie
! </td>
! </tr>
! <tr>
! <td colspan="2">
! <input type="submit" name="submit" value="save" class="psl-button" />
! <input type="submit" name="submit" value="preview" class="psl-button" />
! </td>
! </tr>
! </table>
! </form>
!
! <ul>
! <li><span class="psl-descr">Plain Text:</span> A CRLF will be replaced by break <br> tag, all other allowable HTML is intact</li>
! <li><span class="psl-descr">HTML:</span> No formatting of any kind is done without explicitly being written in</li>
! <li><span class="psl-descr">Extended Translation:</span>Like Plain Text, and translates & -> &amp, < -> &lt; and > -> &gt;</li>
! </ul>
! <p><span class="psl-descr">Allowed HTML Tags:</span>
! {ALLOWED_TAGS}</p>
! <p class="psl-hint">
! Problems regarding the comments section need to be sent to this site's <a href="mailto:{OWNER}">maintainer</a></p>
! </div> <!-- id="commentSubmitForm" -->
! <!-- END commentSubmitForm.tpl -->
--- 1,114 ----
! <!-- start commentSubmitForm.tpl -->
!
! {PARENT}
!
!
!
! <div class="psl-block">
!
! <h4>Write your comment here</h4>
!
! <form name="editNew" action="{ACTION_URL}" method="post">
! <input type="hidden" name="story_id" value="{STORY_ID}" />
!
! <input type="hidden" name="comment_id" value="{COMMENT_ID}" />
!
! <input type="hidden" name="parent_id" value="{PARENT_ID}" />
!
!
! <td>
! <input type="radio" checked name="content_type" value="yes" onClick="PSL_chooseEditor(1);" /> Yes
! <br />
! <input type="radio" name="content_type" value="no" onClick="PSL_chooseEditor(1);" /> No
! </td>
! </tr>
! <tr>
!
! <td class="psl-descr">Name</td>
!
! <td><input type="text" name="name" size="50" value="{NAME}" /></td>
!
! </tr>
!
! <tr>
!
! <td class="psl-descr">Email</td>
!
! <td><input type="text" name="email" size="50" value="{EMAIL}" /></td>
!
! </tr>
!
! <tr>
!
! <td class="psl-descr">Subject</td>
!
! <td><input type="text" name="subject" size="50" value="{SUBJECT}" /></td>
!
! </tr>
!
! <tr>
!
! <td class="psl-descr">Comment</td>
!
! <td><textarea wrap="virtual" id="comment_text" name="comment_text" rows="10" cols="50">{COMMENT}</textarea></td>
!
! </tr>
!
! <tr>
!
! <td class="psl-descr">Options</td>
!
! <td>
!
! <input type="radio" {PLAIN} name="content" value="plain" /> Plain Text
!
! <input type="radio" {HTML} name="content" value="html" /> HTML
!
! <input type="radio" {EXTTRANS} name="content" value="exttrans" /> Extended Translation<br />
!
! <input type="checkbox" name="cookiebox" /> Save me in a cookie
!
! </td>
!
! </tr>
!
! <tr>
!
! <td colspan="2">
!
! <input type="submit" name="submit" value="save" class="psl-button" />
!
! <input type="submit" name="submit" value="preview" class="psl-button" />
!
! </td>
!
! </tr>
!
! </table>
!
! </form>
!
!
!
! <ul>
!
! <li><span class="psl-descr">Plain Text:</span> A CRLF will be replaced by break <br> tag, all other allowable HTML is intact</li>
!
! <li><span class="psl-descr">HTML:</span> No formatting of any kind is done without explicitly being written in</li>
!
! <li><span class="psl-descr">Extended Translation:</span>Like Plain Text, and translates & -> &amp, < -> &lt; and > -> &gt;</li>
!
! </ul>
!
! <p><span class="psl-descr">Allowed HTML Tags:</span>
!
! {ALLOWED_TAGS}</p>
!
! <p class="psl-hint">
!
! Problems regarding the comments section need to be sent to this site's <a href="mailto:{OWNER}">maintainer</a></p>
!
! </div> <!-- id="commentSubmitForm" -->
!
! <!-- END commentSubmitForm.tpl -->
!
Index: slashFoot.tpl
===================================================================
RCS file: /cvsroot/phpslash/phpslash-skins/include/templates/en/ShankZen/slashFoot.tpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** slashFoot.tpl 1 Sep 2004 19:17:00 -0000 1.2
--- slashFoot.tpl 28 Oct 2004 20:16:45 -0000 1.3
***************
*** 4,8 ****
{NAVBAR}
<p class="psl-copyright">This site is powered by <a href="http://www.php-slash.org/">phpslash</a> -
! Copyright © 1998 - 2003 and licensed under the
<a href="http://www.gnu.org/copyleft/gpl.html">GPL</a> -
No warranty is, has, or will be given in any way whatsoever to anyone.</p>
--- 4,8 ----
{NAVBAR}
<p class="psl-copyright">This site is powered by <a href="http://www.php-slash.org/">phpslash</a> -
! Copyright © 1998 - 2004 and licensed under the
<a href="http://www.gnu.org/copyleft/gpl.html">GPL</a> -
No warranty is, has, or will be given in any way whatsoever to anyone.</p>
|