Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-09-2015, 04:42 PM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can someone help me with 'Quick Reply' project problem?

Hey everyone, I've got an idea to make a simpler, bare-bones quick reply feature. Not that the other one is hard, but my idea is to make it really basic looking, kind of like how you reply to a Facebook post. Basically just an empty field with the words "write a comment" inside, with a 'Post Quick Reply' and 'Go Advanced' buttons. No other buttons/features.

I've managed to get it 'cosmetically' looking the way I want for the most part, but now it doesn't work. I must have removed something by accident. When you type in the field and hit reply, it gives an "Invalid Action Specified" message. It does the same when you click the "Go Advanced" button.

Any idea what it wrong? Here are my SHOWTHREAD and showthread_quickreply templates:

SHOWTHREAD:
Code:
<!-- scripts for quick reply and quick edit -->
	$vBeditTemplate[clientscript]
	<if condition="$show['quickedit']">
		<script type="text/javascript" src="clientscript/vbulletin_quick_edit.js?v=$vboptions[simpleversion]"></script>
		<script type="text/javascript">
		<!--
		vB_AJAX_QuickEdit_Init('posts');
		//-->
		</script>
	</if>
<!-- / scripts for quick reply and quick edit -->

<if condition="$show['quickreply']">
<!-- quick reply -->

	<script type="text/javascript" src="clientscript/vbulletin_quick_reply.js?v=$vboptions[simpleversion]"></script>
	<form action="newreply.php?do=postreply&amp;t=$threadid" method="post" name="vbform" onsubmit="return qr_prepare_submit(this, $vboptions[postminchars]);" id="qrform">
	<table border="0" width="100%" align="center">
	


	<tbody id="qr_error_tbody" style="display:none">
	<tr>
		<td class="thead">$vbphrase[errors_occured_when_submitted]</td>
	</tr>
	<tr>
		<td class="alt1" id="qr_error_td"></td>
	</tr>
	<tr>
		<td class="tfoot" align="center"><span class="smallfont"><a href="#" onclick="return qr_hide_errors()">$vbphrase[okay]</a></span></td>
	</tr>
	</tbody>
	<tbody id="collapseobj_quickreply" style="$vbcollapse[collapseobj_quickreply]">
	<tr>
		<td align="center">
			
				<div align="$stylevar[left]" style="max-width:$stylevar[formwidth]; width:auto !important; width:$stylevar[formwidth]">

					<div id="$editorid" class="vBulletin_editor">
					$messagearea</div>










				</div>
			</div>

			<div style= "margin-top:$stylevar[cellpadding]px">
				<input type="hidden" name="fromquickreply" value="1" />
				<input type="hidden" name="s" value="$session[sessionhash]" />
				<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
				<input type="hidden" name="do" value="postreply" />
				<input type="hidden" name="t" value="$threadid" id="qr_threadid" />
				<input type="hidden" name="p" value="$qrpostid" id="qr_postid" />
				<input type="hidden" name="specifiedpost" value="0" id="qr_specifiedpost" />
				<input type="hidden" name="parseurl" value="1" />
				<input type="hidden" name="loggedinuser" value="$bbuserinfo[userid]" />
				<input type="submit" class="button" value="$vbphrase[post_quick_reply]" accesskey="s" title="(Alt + S)" name="sbutton" tabindex="2" id="qr_submit" onclick="clickedelm = this.value" />
				<input type="submit" class="button" value="$vbphrase[go_advanced]" accesskey="x" title="(Alt + X)" name="preview" tabindex="3" id="qr_preview" onclick="clickedelm = this.value" />
			</div>

			<div align="center" id="qr_posting_msg" style="display:none; margin-top:6px">
				<img style="vertical-align: middle;" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[posting_quick_reply_please_wait]" />&nbsp;<strong>$vbphrase[posting_quick_reply_please_wait]</strong>
			</div>
		</td>



	</tr>
	</tbody>
	</table>
	</form>

	<if condition="!is_browser('ie') AND $show['wysiwyg']">
		<!-- Mozilla work around for focusing on QR in WYSIWYG mode -->
		<div id="qr_scroll"></div>
	</if>

	<script type="text/javascript">
	<!--
		// initialize quick reply
		qr_init();
	//-->
	</script>
<!-- / quick reply -->
showthread_quickreply:

Code:
	<div class="controlbar" style="padding-$stylevar[right]:8px">
<fieldset style="border:0px; padding:0px; margin:0px">
	<if condition="$show['qr_require_click']">
	<textarea id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height: 40px" tabindex="1" dir="$stylevar[textdirection]" disabled="disabled">$vbphrase[click_quick_reply_icon]</textarea>
	<else />
	<textarea id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height: 40px" tabindex="1" dir="$stylevar[textdirection]"></textarea>
	</if>
	</fieldset>
	<!--width:$stylevar[messagewidth]-->

</div>
If anyone could help me out, I'd really appreciate it! Thanks guys!
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05990 seconds
  • Memory Usage 2,546KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (4)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete