Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
  #1  
Old 05-03-2015, 03:29 PM
dj83 dj83 is offline
 
Join Date: Sep 2013
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vbulletin articles keep comment box at top

Hello,

I am using vb 4.2.2 and i'm just wondering if there is a way to keep the comment box on top of all of the comments instead of it moving down? If it's possible can someone help me please?
Reply With Quote
  #2  
Old 05-03-2015, 08:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit template vbcms_comments_page and move this code:

HTML Code:
	<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>
	<script type="text/javascript" src="clientscript/vbulletin_quick_edit.js?v={vb:raw vboptions.simpleversion}"></script>
	<script type="text/javascript" src="clientscript/vbulletin_post_loader.js?v={vb:raw vboptions.simpleversion}"></script>
	<div id="node_comments_hide"></div>
	<!-- EDITOR IS BREAKING THE PAGE -->
	<vb:if condition="$show_comment_editor">
		<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin_cms_comments.js?v={vb:raw vboptions.simpleversion}"></script>
		<div id="node_edits" ><a name="new_comment"></a>
			<div class="cms_node_edits_title blockhead">
				<img src="{vb:stylevar imgdir_misc}/comment.png" alt="{vb:rawphrase comments}" border="0" />
				{vb:rawphrase post_comment}
			</div>
			<div class="wysiwyg_block blockbody formcontrols">
			<div class="hidden" id="qc_error_div">
                            <h3 class="blocksubhead">{vb:rawphrase errors_occured_when_submitted}</h3>
                            <div id="qc_error_list" class="blockrow">
				&nbsp;
                            </div>
                            <div class="blockrow"><input type="button" class="button" value="{vb:rawphrase okay}" id="qc_hide_errors" onclick="hide_errors()"/></div>
                        </div>
				<form id="form_widget_comments" name="form_widget_comments" action="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?do=postreply&amp;t={vb:raw threadid}&amp;s={vb:raw bbuserinfo.securitytoken}" method="post" >
					<input type="hidden" name="do" value="postreply" />
					<input type="hidden" name="nodeid" id="nodeid" value="{vb:raw nodeid}" />
					<input type="hidden" name="return_node" id="return_node" value="{vb:raw nodeid}" />
					<input type="hidden" name="current_page" id="current_page" value="{vb:raw pageno}" />
					<input type="hidden" name="per_page" id="per_page" value="{vb:raw per_page}" />
					<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
					<input type="hidden" name="this_url" value="{vb:raw this_url}" />
					<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
					<input type="hidden" name="parseurl" value="1" />
					<input type="hidden" name="fromquickreply" value="1" />
					<div class="cms_editor_area">
						{vb:raw usernamecode}
						{vb:raw human_verify}
						{vb:raw messagearea}
						<div class="blockfoot actionbuttons">
							<div class="group">
								<vb:if condition="$show['fb_publishcheckbox']">
									{vb:raw fbpublishcheckbox}
								</vb:if>
								<input class="button" type="button" name="sbutton" onclick="clicked_val=this.value;sendForm('title', '{vb:raw editor_name}', 'username', (document.getElementById('imageregt')?'imageregt':'recaptcha_response_field'), 'hash', refreshPage); return false;" value="{vb:rawphrase add_comment_button}" tabindex="1" />
								<input class="button" type="submit" name="preview" id="qr_preview" title="(Alt + X)" accesskey="x" value="{vb:rawphrase go_advanced}" tabindex="1" />
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
	</vb:if>
To right above this code:
HTML Code:
<div id="comments" class="cms_comments_page">
	<a name="comments_start"></a>
	{vb:raw node_comments}

</div>
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:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10398 seconds
  • Memory Usage 2,178KB
  • 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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete