Help With Quick Reply Mod

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Locked
anapashu
Registered User
Posts: 1
Joined: Sat Jun 07, 2008 8:16 am

Help With Quick Reply Mod

Post by anapashu » Tue Jul 08, 2008 5:15 pm

In one of my templates the quick reply mod is not working properly. I can't seem to figure out what the problem is (I don't remember which QuickReply I installed, and I lost the download file when reformatting PC) So now Im stuck with not knowing how to fix it!

The problem is when a person types a post in the Quick Reply and they hit submit, it doesn't submit, it just takes them to the post reply page.. losing what they posted! Here's my viewtopic_body.tpl for that theme

Code: Select all

<table cellspacing="1" class="viewtopic">
	<tr class="toplines"> 
		<th>{L_AUTHOR}</th>
		<th>{L_MESSAGE}</th>
	</tr>
	<tr>
		<td colspan="2"><h2><a href="{U_INDEX}"><</a>&nbsp;&nbsp;<a href="{U_VIEW_FORUM}">{FORUM_NAME}</a>&nbsp;&nbsp;~&nbsp;&nbsp;{TOPIC_TITLE}</h2><div align="right">{PAGINATION}</div></td>

	</tr>
	{POLL_DISPLAY} 
	<!-- BEGIN postrow -->
	<tr>
		<td class="row3 one"><a id="{postrow.U_POST_ID}"></a>{postrow.POSTER_NAME}</td>
		<td class="row3 two">
			<table cellspacing="0">
				<tr>
					<td><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" style="width: 12px; height: 9px; border: 0;" alt="" /></a>{L_POSTED}: {postrow.POST_DATE}</td>
					<td class="txtright">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr> 
		<td class="{postrow.ROW_CLASS} three">
			<span class="block">{postrow.POSTER_RANK}</span>
			<span class="avatar">{postrow.POSTER_AVATAR}</span>
			<span class="block">{postrow.RANK_IMAGE}</span>
			<span class="block">{postrow.POSTER_JOINED}</span>
			<span class="block">{postrow.POSTER_POSTS}</span>
			<span class="block">{postrow.POSTER_FROM}</span>
		</td>
		<td class="{postrow.ROW_CLASS} four">
			<table cellspacing="0">
				<tr>
					<td class="txttop">{postrow.MESSAGE}</td>
				</tr>
				<tr>
					<td class="txtbottom"><span class="edited">{postrow.EDITED_MESSAGE}</span>{postrow.SIGNATURE}</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr> 
		<td class="{postrow.ROW_CLASS} five blacklink"><a href="#top">{L_BACK_TO_TOP}</a></td>
		<td class="{postrow.ROW_CLASS} six">
			{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}
		</td>
	</tr>
	<!-- END postrow -->
<tr> 
		<td class="row3 pad4" colspan="2" align="center">
<b>Quick Reply</b>
		</td>
	</tr>

	<tr> 
		<td class="row3 pad4 txtright" colspan="2">

<!-- BEGIN switch_quick_reply -->
<form action="{S_POSTING}" method="post" name="post" onsubmit="return checkForm(this)" id="quickreply">
<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;
	}
}
//--></script>

<textarea name="message" rows="7" cols="35" wrap="virtual" style="width:99%" class="post"></textarea>

<p>
		<input type="hidden" name="attach_sig" value="{S_ATTACH_SIG}" />
		<input type="hidden" name="notify" value="{S_NOTIFY}" />
		<input type="hidden" name="mode" value="reply" />
		<input type="hidden" name="sid" value="{S_SID}" />
		<input type="hidden" name="t" value="{S_TOPIC_ID}" />

<span class="gensmall"><a href="{U_QUICK_SMILIES}" onclick="window.open('{U_QUICK_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies">{L_QUICK_SMILIES}</a></span>

		<input type="submit" name="preview" class="button" value="{L_PREVIEW}" />&nbsp;<input type="submit" accesskey="s" name="post" class="button" value="{L_SUBMIT}" />

</form>
<!-- END switch_quick_reply -->

		</td>
	</tr>




	<tr> 
		<td class="row3 pad4 txtright" colspan="2">
			<form method="post" action="{S_POST_DAYS_ACTION}">
				<p>{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER} <input type="submit" value="{L_GO}" class="button" name="submit" /></p>
			</form>
		</td>
	</tr>
</table>

<div class="timezone left">{S_WATCH_TOPIC}</div>
<div class="timezone right">{S_TIMEZONE}</div>
<div class="spacing"></div>

<table cellspacing="0">
	<tr class="lines_3">
		<th>
		<div class="left">
			<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
			<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a>
		</div>
		<div class="right">
			{PAGE_NUMBER}<br />
			{PAGINATION}
		</div>
		<div class="clear"></div>
		<div class="left">
			<span class="nav"><a href="{U_INDEX}">{L_INDEX}</a>&nbsp;&nbsp;~&nbsp;&nbsp;<a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span>
		</div>
		</th>
	</tr>
</table>

<div class="spacing"></div>

<div class="postbuttons"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" /></a><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="" /></a></div>

<div class="spacing"></div>

<div class="right">{JUMPBOX}</div>
<div class="clear"></div>

<div class="spacing"></div>

<table cellspacing="0">
	<tr> 
		<td class="txttop">
			{S_TOPIC_ADMIN}
		</td>
		<td class="txtright">
			{S_AUTH_LIST}
		</td>
	</tr>
</table>
It works in all the other templates I have, just not for this one, and I don't really know where the root of the problem lies.. :(

User avatar
MHobbit
Former Team Member
Posts: 4761
Joined: Thu Mar 18, 2004 5:32 pm
Location: There and Back Again

Re: Help With Quick Reply Mod

Post by MHobbit » Thu Jul 10, 2008 3:51 pm

Hello,

The MOD Requests forum is not a place for creating threads to facilitate support for modifications. The phpBB Modifications Team does not have a dedicated modifications support team as such, so to help facilitate receiving of support, we require you to posts all requests in the thread dedicated to that modification. That means if the modification you require support from is in the MODDB, please post your support request in the modification's release thread in the MOD Database Releases forum. For modifications still in development, post your support request as a reply to the development thread of the modification in the MODs in Development forum. This will allow the author of the modification to quickly find your support request or problems with their modification and to help you out or to fix the problem with the modification.

If you found the modification at a site other than phpbb.com, please note that we don't have a place here where you can receive support for that MOD. You will have to contact the author, either at their site or personally, for further support or information. The modification (when downloaded) will contain the author's contact information.

Locked.

Thank you,
The phpBB Modifications Team
Former phpBB MOD Team member
No private support is offered.
"There’s too many things to get done, and I’m running out of days..."

Locked

Return to “[2.0.x] MOD Requests”

Who is online

Users browsing this forum: No registered users and 11 guests