PEAK XOOPS - Re: Comment anywhere How to change Plain text in englishin japanese

Re: Comment anywhere How to change Plain text

List posts in the topic

none Re: Comment anywhere How to change Plain text

msg# 1.5
depth:
1
Previous post - Next post | Parent - No child | Posted on 2009/8/20 18:34
xsell  二等兵   Posts: 6
Hello
This is me again .. Finaly Found simple Code and Done , if any looking to how . Just copy and Past the text below to the commentany_center.html template..
<html>
<head>
<title>Javascript Form Validation</title>
<script language='JavaScript' type='text/JavaScript'>
<!--
function validate() {
	if(document.com_title.com_title.value=='')
		{
		alert('Fill the Input box before submitting');
		return false;
		}
	
	else	{
		return true;
			}
}
//-->
</script>
</head>
<body>

<{if $commentany.com_itemid}>
<form name='com_title' action='comment_post.php' method='post' 
				onSubmit='return validate();'>
	<input type="hidden" name="com_itemid" value="<{$commentany.com_itemid}>">
	<input type="hidden" name="XOOPS_TOKEN_REQUEST" value="<{$commentany.xoops_token_request}>">
	<table class='outer' cellspacing='1' style="margin-top:2em;">
		<tr>
			<th colspan="2"><{$smarty.const._MB_COMMENTANY_LANG_NEW_COMMENT}></th>
		</tr>
		<{*
		<tr>
			<td class='head' align='left'><{$smarty.const._MB_COMMENTANY_LANG_RULE}></td>
			<td class='odd' align='left'>
				<{$commentany.rule_text}>
			</td>
		</tr>
		*}>
		<tr>
			<td class='head' align='left'><{$smarty.const._MB_COMMENTANY_LANG_ICON}></td>
			<td class='odd' align='left'>
				<{foreach item=i from=$commentany.com_icon}>
					<input type="radio" name="com_icon" value="<{$i}>"><img src="<{$smarty.const.XOOPS_URL}>/images/subject/<{$i}>">
				<{/foreach}>
			</td>
		</tr>
		<tr>
			<td class='head' align='left'><{$smarty.const._MB_COMMENTANY_LANG_TITLE}></td>
			<td class='odd' align='left'>

Title :<input type=text name=com_title value='' size="55">
			</td>
		</tr>
		<tr>
			<td class='head' align='left'><{$smarty.const._MB_COMMENTANY_LANG_TEXT}></td>
			<td class='odd' align='left'>
				<textarea name="com_text" cols=64 rows=12></textarea>
			</td>
		</tr>
		<{*
		<tr>
			<td class='head' align='left'><{$smarty.const._MB_COMMENTANY_LANG_OPTION}></td>
			<td class='odd' align='left'>
				<input type="checkbox" name="dosmiley" value="1" checked><{$smarty.const._CM_DOSMILEY}><br/>
				<input type="checkbox" name="doxcode" value="1" checked><{$smarty.const._CM_DOXCODE}><br/>
				<input type="checkbox" name="dobr" value="1" checked><{$smarty.const._CM_DOAUTOWRAP}><br/>
			</td>
		</tr>
		*}>
		<tr>
			<td class='head' align='left'></td>
			<td class='even' align='left'>
				<input type='submit' class='formButton' name='com_dopreview' id='com_dopreview' value='<{$smarty.const._MB_COMMENTANY_LANG_PREVIEW}>' />
				&nbsp;<input type='submit' class='formButton' name='com_dopost'  id='com_dopost' value='<{$smarty.const._MB_COMMENTANY_LANG_SUBMIT}>' />
			</td>
		</tr>
	</table>
	</form>
</body>
</html>
	<input type="hidden" name="dohtml" value="0" />
	<input type="hidden" name="dosmiley" value="1" />
	<input type="hidden" name="doxcode" value="1" />
	<input type="hidden" name="dobr" value="1" />

<{/if}>

<{$commentsnav|replace:'button':'hidden'}>

Votes:8 Average:8.75

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!