Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #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
  #2  
Old 04-19-2015, 11:06 PM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?
Reply With Quote
  #3  
Old 04-19-2015, 11:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you know you can go to AdminCP > Settings > Options > Message Posting Interface Options > Enable Clickable Message Formatting Controls > Quick Reply and set that to just Disable Controls and it won't have any editor there - just a blank box to post in?
Reply With Quote
  #4  
Old 04-19-2015, 11:22 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whats up with the large spaces in the code
Reply With Quote
  #5  
Old 12-17-2015, 04:53 AM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Did you know you can go to AdminCP > Settings > Options > Message Posting Interface Options > Enable Clickable Message Formatting Controls > Quick Reply and set that to just Disable Controls and it won't have any editor there - just a blank box to post in?
Hmm, did not realize that, thanks Lynne!

However, that still leaves the whole 'quick reply' box, and some other unwanted text and stuff. I was able to remove that stuff in my 'project', so I'd still have to do it to that. And that's the part I think is screwing it up making it not work. So either way, I have to figure out where in the code is messing it up. Any ideas?

Sorry for the delay, I had no idea anyone ever replied to this. lmao

As always, any help is very appreciated!
Reply With Quote
  #6  
Old 01-08-2016, 06:21 PM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok actually I took your advice and disabled the enhanced options in the quick reply box, and it works somewhat. I just have this question now..

If I wanted to change the 'background box' that the QR field sits inside of (like if I wanted to make a background image for it instead), how could I do that? Which file would I have to edit? Attached is a pic of what I want to change.

Any help is appreciated, thanks!
Attached Images
File Type: jpg qr_box.jpg (16.0 KB, 0 views)
Reply With Quote
  #7  
Old 01-10-2016, 02:14 AM
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
Location: www.webmastersun.com
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shibby2 View Post
Ok actually I took your advice and disabled the enhanced options in the quick reply box, and it works somewhat. I just have this question now..

If I wanted to change the 'background box' that the QR field sits inside of (like if I wanted to make a background image for it instead), how could I do that? Which file would I have to edit? Attached is a pic of what I want to change.

Any help is appreciated, thanks!
I don't really understand your question or what you mean but if you want to have a background for your reply box then adding this to your css

Code:
span.cke_skin_kama{
background: url(URL_of_your_image) no-repeat top left;
}
Add !important if you don't see it change.

Hope it helps!
Reply With Quote
2 благодарности(ей) от:
Lynne, MarkFL
  #8  
Old 01-10-2016, 02:22 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webmastersun View Post
I don't really understand your question or what you mean but if you want to have a background for your reply box then adding this to your css

Code:
span.cke_skin_kama{
background: url(URL_of_your_image) no-repeat top left;
}
Add !important if you don't see it change.

Hope it helps!
We've (the OP and I) been working together and are getting everything (this and several other changes) whipped into shape.

Thank you for your help! :up:
Reply With Quote
2 благодарности(ей) от:
Lynne, webmastersun
  #9  
Old 01-11-2016, 02:24 PM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep Mark has solved the issue! Sorry, guess I should have updated. Thank you to everyone who has offered help!
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:13 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.08457 seconds
  • Memory Usage 2,279KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (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)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_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
  • 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