vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Add a second reply button when viewing a post (https://vborg.vbsupport.ru/showthread.php?t=222721)

gle041 09-08-2009 10:39 AM

Add a second reply button when viewing a post
 
When viewing a post, the reply to the post button is located at the bottom of the post. What would I have to do to duplicate these buttons and place them at the TOP of the posts as well?

Thanks.

Lynne 09-08-2009 02:13 PM

I'm not sure what the result would be if you copied them. Have you tried just copying the buttons in a test style or on a test site?

gle041 09-08-2009 02:42 PM

Apparently some of the posts get extremely long because of many pictures, so they wanted the button at the top of the post as well. What template and which part would I find it in? I searched an was unable to locate.

Lynne 09-08-2009 02:50 PM

You can always find the template to edit by doing this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.

The template you are looking for is most likely the postbit or postbit_legacy template. You want to look for these lines (these are from the postbit template):
HTML Code:

        <div style="margin-top: 10px" align="$stylevar[right]">
            <!-- controls -->
A whole bunch of buttons
            $template_hook[postbit_controls]
            <!-- / controls -->
        </div>


James Birkett 09-08-2009 03:17 PM

Why not just use a jump to top?


All times are GMT. The time now is 12:41 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.01833 seconds
  • Memory Usage 1,722KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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