vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   vbulletin articles keep comment box at top (https://vborg.vbsupport.ru/showthread.php?t=318539)

dj83 05-03-2015 03:29 PM

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?

Lynne 05-03-2015 08:48 PM

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>



All times are GMT. The time now is 03:57 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.00930 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete