Update of /cvsroot/phpslash/phpslash-dev/include/templates/en/basic
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15732/phpslash-dev/include/templates/en/basic
Modified Files:
commentSubmitForm.tpl slashFoot.tpl
Added Files:
slashHead-fckeditor.tpl
Log Message:
added fckeditor to comment submittal.
--- NEW FILE: slashHead-fckeditor.tpl ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<!-- START slashHead.tpl -->
<html>
<head>
<title>{SITE_NAME} - {SECTION} {SITETITLE}</title>
<!-- 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.php" />
<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/office2003/' ;
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
// if((document.all && document.designMode) || (document.designMode)) {
// 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>
<div id="header">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!-- START: Title and Search -->
<tr>
<td><a href="{ROOTDIR}"><img src="{IMAGEDIR}/new-logo.gif" border="0" alt="" /></a></td>
<td width="50%" align="center">
<form method="get" action="{SEARCH_ACTION_URL}">
<input type="text" name=query value="" size="15" />
<input type="submit" value="Search" />
<input type="hidden" name="topic_id" value="" />
<input type="hidden" name="section_id" value="" />
<input type="hidden" name="author_id" value="" />
</form>
</td>
</tr>
</table>
<!-- END: Title and Search -->
{TOPICBAR}
{NAVBAR}
</div> <!-- id="header" -->
<!-- END slashHead.tpl -->
Index: commentSubmitForm.tpl
===================================================================
RCS file: /cvsroot/phpslash/phpslash-dev/include/templates/en/basic/commentSubmitForm.tpl,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** commentSubmitForm.tpl 12 Mar 2003 16:12:52 -0000 1.1.1.1
--- commentSubmitForm.tpl 28 Oct 2004 20:15:17 -0000 1.2
***************
*** 4,8 ****
{PARENT}
! <form action="{ACTION_URL}" method="post">
<input type="hidden" name="story_id" value="{STORY_ID}" />
<input type="hidden" name="comment_id" value="{COMMENT_ID}" />
--- 4,8 ----
{PARENT}
! <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}" />
***************
*** 36,40 ****
<tr>
<td class="descr">Comment</td>
! <td><textarea wrap="virtual" name="comment_text" rows="10" cols="50">{COMMENT}</textarea></td>
</tr>
<tr>
--- 36,49 ----
<tr>
<td class="descr">Comment</td>
! <td><textarea wrap="virtual" id="comment_text" name="comment_text" rows="10" cols="50">{COMMENT}</textarea></td>
! </tr>
! <tr>
! <td class="descr"><b>WYSIWYG Editor</b><br />
! <small></small></td>
! <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>
Index: slashFoot.tpl
===================================================================
RCS file: /cvsroot/phpslash/phpslash-dev/include/templates/en/basic/slashFoot.tpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** slashFoot.tpl 1 Sep 2004 18:59:59 -0000 1.2
--- slashFoot.tpl 28 Oct 2004 20:15:17 -0000 1.3
***************
*** 4,8 ****
<!-- insert the small logo here -->
<p class="copyright">This site is powered by <a href="http://www.php-slash.org/">phpslash</a> -
! Copyright © 1998 - 2002 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 ----
<!-- insert the small logo here -->
<p class="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>
|