[2.0.7] Message too short

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
13
72%
Very Good
2
11%
Good
3
17%
Fair
0
No votes
Poor
0
No votes
 
Total votes: 18

ace2ace
Registered User
Posts: 364
Joined: Sat Aug 14, 2004 3:48 pm

Post by ace2ace »

I have not installed the MOD. But I would like it not to count anything in Quotations.
Some people have this annoying habit of quoting a long message, then add a 'Yahooo - Great Job' at the bottom of the long quote.
User avatar
SparkleGirlSparkle
Registered User
Posts: 43
Joined: Thu Jul 21, 2005 9:43 pm

Post by SparkleGirlSparkle »

I have just installed, but I have the Simple Quick Reply function also installed. When you click reply and write something too short, you get the "Too short" message appear. If you post via the Quick Reply, the minimum limit is not applied. Anyone sorted this yet?
Leo_gr
Registered User
Posts: 4
Joined: Sun Mar 12, 2006 10:25 am

Post by Leo_gr »

I also have exactly the same problem. I am using the mod you see in image.
Image
User avatar
Saeru
Registered User
Posts: 622
Joined: Sun Feb 19, 2006 5:44 am
Location: Under a pile of PHP code.
Contact:

Post by Saeru »

I have sorted it out for the Simple Quick Reply Mod!!
This now will apply the message to short to the Quick Reply box.

Open
{templet}/viewtopic_body.tpl
Find

Code: Select all

				<script language="JavaScript" type="text/javascript"><!--
function checkForm() {
	formErrors = false;
	if (document.post.message.value.length < 2) {
	formErrors = '{L_EMPTY_MSG}';
	}
	if (formErrors) {
		alert(formErrors);
		return false;
	} else {
		return true;
	}
}
Replace with

Code: Select all

				<script language="JavaScript" type="text/javascript"><!--
function checkForm() {
	formErrors = false;
	if (document.post.message.value.length < 5) {
		formErrors = "{L_MESSAGE_TOO_SHORT}";
	}
	if (formErrors) {
		alert(formErrors);
		return false;
	} else {
		return true;
	}
}
Open
viewtopic.php
Find

Code: Select all

	'L_POST_SUBJECT' => $lang['Post_subject'],
After add

Code: Select all

	'L_MESSAGE_TOO_SHORT' => $lang['Message_too_short'],
Save, close all, upload.. and it should work..


As for other quick reply mods... Not to sure.. but it may also work.

By the way your mod works good for 19 :3
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]
KMike
Registered User
Posts: 12
Joined: Thu Apr 06, 2006 1:59 pm

Post by KMike »

Hi Xpert,

Since I made a few changes to your mod, I want to thank you for the basic idea :-).
As far as I can see (remember), your mod must be working without any problems on a phpBB 2.0.19 and should be running fine.

Disregarding that, I was in need of a forum based limit (rather than a global limit), so that I can set each forum an a specific limit (yes - heavy used spamboxes are evil ;)).

I posted my "mod-mod" as alpha in the dev-corner*. If you like to implement this modification in your mod, then please leave me a short message (then I will discontinue on developing it - not seeing any sense in developing a mod, which does basicly the same, as another one ;)).

Best regards & many thanks,
Mike

*http://www.phpbb.com/phpBB/viewtopic.php?t=380473
pinkcat
Registered User
Posts: 8
Joined: Sat Apr 08, 2006 10:37 am

Post by pinkcat »

beggers wrote: One problem about this mod is that a person can just add a bunch of spaces to the short message. For example, if they just enter "No" and try to save it they get the "message too short" error but they just add a bunch of spaces after it to bypass the error. The result is that they can end up posting "No" anyway.



Is there a solution for this problem? As every board has some geniuses to discover this..
Blaster95
Registered User
Posts: 40
Joined: Sun Apr 09, 2006 3:36 am

Post by Blaster95 »

It doesn't seem to be working for me. I installed it and it is set to 5 and i typed in test and nothing came up when i replyed.
pfeilmayer
Registered User
Posts: 39
Joined: Fri Sep 08, 2006 5:48 am
Location: inside n-oferte.ro
Contact:

Post by pfeilmayer »

hello
I have a problem

in installation notes you said :
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl

#
#-----[ FIND ]------------------------------------------
#
if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}


.... I did what you sait but the prblem is that I can't find anything like that in the file ..

this is the file I have to modify ... :

<!-- BEGINGLOBAL switch_standalone -->
<!-- BEGIN left_part -->
<script language="JavaScript" type="text/javascript" src="./includes/js_dom_menus.js"></script>
<!-- END left_part -->

<!-- BEGIN privmsg_extensions -->
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
<tr>
<td valign="top" align="center" width="100%">
<table height="40" cellspacing="2" cellpadding="2" border="0">
<tr valign="middle">
<td>{INBOX_IMG}</td>
<td><span class="cattitle">{INBOX_LINK}&nbsp;&nbsp;</span></td>
<td>{SENTBOX_IMG}</td>
<td><span class="cattitle">{SENTBOX_LINK}&nbsp;&nbsp;</span></td>
<td>{OUTBOX_IMG}</td>
<td><span class="cattitle">{OUTBOX_LINK}&nbsp;&nbsp;</span></td>
<td>{SAVEBOX_IMG}</td>
<td><span class="cattitle">{SAVEBOX_LINK}&nbsp;&nbsp;</span></td>
</tr>
</table>
</td>
</tr>
</table>

<br clear="all" />
<!-- END privmsg_extensions -->

<!-- INCLUDE posting_bbcode.tpl -->
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" {S_FORM_ENCTYPE}>

{NAVIGATION_BOX}

<!-- BEGIN switch_not_privmsg -->
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="bottom"><span class="maintitle">
<a class="maintitle" href="{U_TITLE}">{TITLE}</a>
</span></td>
</tr>
</table>
<!-- END switch_not_privmsg -->

{POST_PREVIEW_BOX}
{ERROR_BOX}

<!-- BEGIN left_part -->
<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td id="left_part" width="200" valign="top" style="display: none">
<table cellpadding="3" cellspacing="1" width="100%" class="forumline" border="0">
<tr>
<th class="thHead">{L_LEFT_PART}</th>
</tr>
<tr>
<td height="25" class="row1">
<span class="gensmall"><b>{L_POST_A}</b></span><hr />
<table cellspacing="0" cellpadding="2" border="0" width="100%">
<tr>
<td width="10" align="right"><div id="message_form_flag" class="gensmall" style="font-weight: bold;">&raquo;</div></td>
<td nowrap="nowrap" onMouseOver="this.style.cursor='pointer'; this.style.fontWeight='bold';" onMouseOut="this.style.cursor='pointer'; this.style.fontWeight='normal';" onClick="dom_menu.set('message_form'); return false;"><div id="message_form_opt" style="font-weight: bold;"><a href="javascript:dom_menu.set('message_form');" class="gensmall">{L_MESSAGE_BODY}</a></div></td>
</tr>
<!-- BEGINGLOBAL topic_type_form -->
<tr>
<td width="10" align="right"><div id="topic_type_form_flag" class="gensmall">&raquo;</div></td>
<td nowrap="nowrap" onMouseOver="this.style.cursor='pointer'; this.style.fontWeight='bold';" onMouseOut="this.style.cursor='pointer'; this.style.fontWeight='normal';" onClick="dom_menu.set('topic_type_form'); return false;"><div id="topic_type_form_opt"><a href="javascript:dom_menu.set('topic_type_form');" class="gensmall">{L_TOPIC_TYPE_FORM}</a></div></td>
</tr>
<!-- ENDGLOBAL topic_type_form -->
<!-- BEGINGLOBAL poll_form -->
<tr>
<td width="10" align="right"><div id="poll_form_flag" class="gensmall">&raquo;</div></td>
<td nowrap="nowrap" onMouseOver="this.style.cursor='pointer'; this.style.fontWeight='bold';" onMouseOut="this.style.cursor='pointer'; this.style.fontWeight='normal';" onClick="dom_menu.set('poll_form'); return false;"><div id="poll_form_opt"><a href="javascript:dom_menu.set('poll_form');" class="gensmall">{L_POLL_FORM}</a></div></td>
</tr>
<!-- ENDGLOBAL poll_form -->
<!-- BEGINGLOBAL calendar_form -->
<tr>
<td width="10" align="right"><div id="calendar_form_flag" class="gensmall">&raquo;</div></td>
<td nowrap="nowrap" onMouseOver="this.style.cursor='pointer'; this.style.fontWeight='bold';" onMouseOut="this.style.cursor='pointer'; this.style.fontWeight='normal';" onClick="dom_menu.set('calendar_form'); return false;"><div id="calendar_form_opt"><a href="javascript:dom_menu.set('calendar_form');" class="gensmall">{L_CALENDAR_FORM}</a></div></td>
</tr>
<!-- ENDGLOBAL calendar_form -->
<!-- BEGINGLOBAL attachment_form -->
<tr>
<td width="10" align="right"><div id="attach_form_flag" class="gensmall">&raquo;</div></td>
<td nowrap="nowrap" onMouseOver="this.style.cursor='pointer'; this.style.fontWeight='bold';" onMouseOut="this.style.cursor='pointer'; this.style.fontWeight='normal';" onClick="dom_menu.set('attach_form'); return false;"><div id="attach_form_opt"><a href="javascript:dom_menu.set('attach_form');" class="gensmall">{L_ADD_ATTACH_TITLE}</a></div></td>
</tr>
<!-- ENDGLOBAL attachment_form -->
</table><input type="hidden" name="pid" id="pid" value="{PID}" />
</td>
</tr>
<tr>
<td class="spaceRow"><img src="{I_SPACER}" border="0" alt="" /></td>
</tr>
</table>
</td><td width="2"><img src="{I_SPACER}" border="0" width="2" alt="" /></td><td>
<!-- END left_part -->

<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
<colgroup>
<col width="250">
<col>
</colgroup>
<thead id="message_form_title">
<tr>
<th class="thHead" colspan="2" height="25"><b>{L_POST_A}</b></th>
</tr>
</thead>
<tfoot>
<tr>
<td class="catBottom" colspan="2" align="center" height="28">{S_HIDDEN_FORM_FIELDS}
<input type="image" src="{I_PREVIEW}" accesskey="v" tabindex="5" name="preview" value="{L_PREVIEW}" />&nbsp;
<input type="image" src="{I_SUBMIT}" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" />&nbsp;
<input type="image" src="{I_CANCEL}" accesskey="x" tabindex="7" name="cancel" value="{L_CANCEL}" />
</td>
</tr>
</tfoot>
<!-- ENDGLOBAL switch_standalone -->
<!-- BEGIN switch_standalone --><tbody id="message_form"><!-- END switch_standalone -->
<!-- BEGIN switch_username_select -->
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="{USERNAME}" /></span></td>
</tr>
<!-- END switch_username_select -->
<!-- BEGIN switch_confirm -->
<!-- INCLUDE visual_confirm_box.tpl -->
<!-- END switch_confirm -->
<!-- BEGIN switch_privmsg -->
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" name="username" maxlength="25" size="25" tabindex="1" value="{USERNAME}" />&nbsp;<input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></span></td>
</tr>
<!-- END switch_privmsg -->
<!-- BEGIN switch_subject -->
<tr>
<td class="row1" width="22%"><span class="gen"><b>{L_SUBJECT}</b></span></td>
<td class="row2" width="78%"> <span class="gen">
<input type="text" name="subject" size="45" maxlength="{SUBJECT_LENGTH}" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" />
</span> </td>
</tr>
<!-- END switch_subject -->
<!-- BEGIN switch_sub_title -->
<tr>
<td class="row1"><span class="gen"><b>{L_SUB_TITLE}</b></span></td>
<td class="row2"><span class="gen">
<input type="text" name="sub_title" size="45" maxlength="{SUB_TITLE_LENGTH}" style="width:450px" tabindex="2" class="post" value="{SUB_TITLE}" />
</span></td>
</tr>
<!-- END switch_sub_title -->
<!-- BEGIN switch_explain -->
<tr>
<td class="row3" colspan="2"><span class="gensmall">{L_EXPLAIN}</span></td>
</tr>
<!-- END switch_explain -->
{ICON_BOX}
{SUB_TYPE_FORM}
<tr>
<td class="row1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td><span class="gen"><b>{L_MESSAGE_BODY}</b></span> </td>
</tr>
<tr>
<td valign="middle" align="center"><br />
<table width="100" border="0" cellspacing="0" cellpadding="5">
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}"><span class="gensmall"><b>{L_EMOTICONS}</b></span></td>
</tr>
<!-- BEGIN smilies_row -->
<tr align="center" valign="middle">
<!-- BEGIN smilies_col -->
<td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
<!-- END smilies_col -->
</tr>
<!-- END smilies_row -->
<!-- BEGIN switch_smilies_extra -->
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}"><span class="topictitle"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="topictitle">{L_MORE_SMILIES}</a></span></td>
</tr>
<!-- END switch_smilies_extra -->
</table>
</td>
</tr>
</table>
</td>
<td class="row2" valign="top">
<table width="450" border="0" cellspacing="0" cellpadding="2">
<tr align="center" valign="middle">
<td><span class="genmed">
<input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>
</tr>
<tr>
<td colspan="9">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="genmed"> &nbsp;{L_FONT_COLOR}:
<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
<option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option>
<option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option>
<option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option>
<option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
<option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option>
<option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
<option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option>
<option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
<option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
<option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option>
<option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
<option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
<option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
<option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option>
<option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option>
</select> &nbsp;{L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
<option value="7">{L_FONT_TINY}</option>
<option value="9">{L_FONT_SMALL}</option>
<option value="12" selected>{L_FONT_NORMAL}</option>
<option value="18">{L_FONT_LARGE}</option>
<option value="24">{L_FONT_HUGE}</option>
</select>
</span></td>
<td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="9"><span class="gensmall">
<input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" />
</span></td>
</tr>
<tr>
<td colspan="9">
<textarea name="message" rows="15" cols="35" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea><br /><span class="genmed"><a href="javascript:void(0);" onclick="window.open('http://www.postimage.org/index.php?mode ... &forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;">{L_ADD_IMAGE}</a></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1" valign="top"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
<td class="row2">
<table cellspacing="0" cellpadding="1" border="0">
<!-- BEGIN switch_html_checkbox -->
<tr>
<td>
<input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
</td>
<td><span class="gen">{L_DISABLE_HTML}</span></td>
</tr>
<!-- END switch_html_checkbox -->
<!-- BEGIN switch_bbcode_checkbox -->
<tr>
<td>
<input type="checkbox" name="disable_bbcode" {S_BBCODE_CHECKED} />
</td>
<td><span class="gen">{L_DISABLE_BBCODE}</span></td>
</tr>
<!-- END switch_bbcode_checkbox -->
<!-- BEGIN switch_smilies_checkbox -->
<tr>
<td>
<input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} />
</td>
<td><span class="gen">{L_DISABLE_SMILIES}</span></td>
</tr>
<!-- END switch_smilies_checkbox -->
<!-- BEGIN switch_signature_checkbox -->
<tr>
<td>
<input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} />
</td>
<td><span class="gen">{L_ATTACH_SIGNATURE}</span></td>
</tr>
<!-- END switch_signature_checkbox -->
<!-- BEGIN switch_notify_checkbox -->
<tr>
<td>
<input type="checkbox" name="notify" {S_NOTIFY_CHECKED} />
</td>
<td><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
</tr>
<!-- END switch_notify_checkbox -->
<!-- BEGIN switch_delete_checkbox -->
<tr>
<td>
<input type="checkbox" name="delete" />
</td>
<td><span class="gen">{L_DELETE_POST}</span></td>
</tr>
<!-- END switch_delete_checkbox -->
</table>
</td>
</tr>
<!-- BEGIN switch_standalone --></tbody><!-- END switch_standalone -->
<!-- BEGINGLOBAL switch_standalone -->
<!-- BEGIN topic_type_form --><tbody id="topic_type_form">{TOPIC_TYPE_FORM}</tbody><!-- END topic_type_form -->
<!-- BEGIN poll_form --><tbody id="poll_form">{POLLBOX}</tbody><!-- END poll_form -->
<!-- BEGIN calendar_form --><tbody id="calendar_form">{CALENDAR_FORM}</tbody><!-- END calendar_form -->
<!-- BEGIN attachment_form --><tbody id="attach_form">{ATTACHBOX}</tbody><!-- END attachment_form -->
</table>
<!-- BEGIN left_part -->
</td></tr></table>
<!-- END left_part -->

{NAVIGATION_BOX}
</form>

<br class="nav" />

{TOPIC_REVIEW_BOX}

<!-- BEGIN left_part -->
<script language="JavaScript" type="text/javascript">
<!--//
// instantiate (except for IE)
var used_browser = navigator.userAgent.toLowerCase();
if ( (used_browser.indexOf("msie") == -1) || (used_browser.indexOf("opera") != -1) )
{
dom_menu = new _dom_menu([
'message_form'
<!-- BEGINGLOBAL topic_type_form -->, 'topic_type_form'<!-- ENDGLOBAL topic_type_form -->
<!-- BEGINGLOBAL poll_form -->, 'poll_form'<!-- ENDGLOBAL poll_form -->
<!-- BEGINGLOBAL calendar_form -->, 'calendar_form'<!-- ENDGLOBAL calendar_form -->
<!-- BEGINGLOBAL attachment_form -->, 'attach_form'<!-- ENDGLOBAL attachment_form -->
]);
}
//-->
</script>
<!-- END left_part -->
<!-- ENDGLOBAL switch_standalone -->


now please tell me where should I put :
#
#-----[ REPLACE WITH ]------------------------------------------
#
// Here you can change 5 to the minimum amount
// of characters in a post you want.
if (document.post.message.value.length < 30) {
formErrors = "{L_MESSAGE_TOO_SHORT}";

the other files are edited and ready ...
thank you
User avatar
RMcGirr83
Former Team Member
Posts: 21902
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Post by RMcGirr83 »

That is a Categories Hierarchy template you are using. Not sure but I think Pierre moved all javascript into a seperate file.

I would ask over at his board
realwebmaster
Registered User
Posts: 51
Joined: Mon Sep 25, 2006 1:54 pm

Post by realwebmaster »

I get this error when i try to install with easymod. Help pls :(

Error Detail

Warning

FIND FAILED: In file [templates/MorpheusX/posting_body.tpl] could not find:

if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}

MOD script line #92 :: FAQ :: Report



Error Detail

Warning

FIND FAILED: In file [templates/MorpheusX/posting_body.tpl] could not find:

if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}

MOD script line #92 :: FAQ :: Report



Error Detail

Warning

FIND FAILED: In file [templates/MorpheusX/posting_body.tpl] could not find:

if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}

MOD script line #92 :: FAQ :: Report



Error Detail

Warning

FIND FAILED: In file [templates/MorpheusX/posting_body.tpl] could not find:

if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}

MOD script line #92 :: FAQ :: Report



Error Detail

Warning

FIND FAILED: In file [templates/MorpheusX/posting_body.tpl] could not find:

if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}

MOD script line #92 :: FAQ :: Report



Error Detail

Warning

FIND FAILED: In file [templates/MorpheusX/posting_body.tpl] could not find:

if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}

MOD script line #92 :: FAQ :: Report



Error Detail

Warning

FIND FAILED: In file [templates/MorpheusX/posting_body.tpl] could not find:

if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}

MOD script line #92 :: FAQ :: Report
User avatar
Roks
Registered User
Posts: 119
Joined: Thu Sep 14, 2006 1:15 am

Post by Roks »

Thanks for the MOD.
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Post by Peter77sx »

To include or exclude forums would be nice... ACP, that is what I am looking for. :arrow:
Seria
Registered User
Posts: 137
Joined: Thu Dec 14, 2006 8:14 am
Location: out havin’ fun

Post by Seria »

thanks for this mod! I installed it on 2.0.21 and it works perfectly. ^_^

I do have one idea that would be really cool. when a user tries to post a small message and that error box comes up, I would really like it to be the forums error_body.tpl file instead.
Because those error boxes are ugly, and besides, as far as I know, having the error go through the error_body.tpl would force the user to have to go back into the post and re-type it. Either discouraging them from posting stupid posts or posting worth-while posts to the forum.
¿What do you call it when a blond dies her hair brunette?
Artificial intelligence ^_~ ...yes, im blond :P

I will offer as much help I can on mods that I have installed, just PM me. (i don't use easymod, so I can't help with that.)
Mods installed so far:48 {all manually and on 2.0.22}
Seria
Registered User
Posts: 137
Joined: Thu Dec 14, 2006 8:14 am
Location: out havin’ fun

Post by Seria »

nevermind. *^_^*
Last edited by Seria on Sun Jan 28, 2007 6:55 pm, edited 1 time in total.
¿What do you call it when a blond dies her hair brunette?
Artificial intelligence ^_~ ...yes, im blond :P

I will offer as much help I can on mods that I have installed, just PM me. (i don't use easymod, so I can't help with that.)
Mods installed so far:48 {all manually and on 2.0.22}
Seria
Registered User
Posts: 137
Joined: Thu Dec 14, 2006 8:14 am
Location: out havin’ fun

Post by Seria »

Update: This mod is functional on 2.0.22
I installed it on 2.0.21 then upgraded.
(I upgraded manually.)

happy forum-ing ^_^
¿What do you call it when a blond dies her hair brunette?
Artificial intelligence ^_~ ...yes, im blond :P

I will offer as much help I can on mods that I have installed, just PM me. (i don't use easymod, so I can't help with that.)
Mods installed so far:48 {all manually and on 2.0.22}
Post Reply

Return to “[2.0.x] MOD Database Cleanup”