vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Return to Top in postbit ( & legacy) (https://vborg.vbsupport.ru/showthread.php?t=139240)

thpoul 02-11-2007 10:00 PM

Return to Top in postbit ( & legacy)
 
This little mod will allow you to add a button besides Edit at every single post you make.

This way you won't have to scroll every time you read a thread.

Dedicated to the lazy fellows around the community.


How to install:


In postbit template find:

Code:

<!-- edit note -->
                        <div class="smallfont">                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                                <em>
                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>
       
                <div style="margin-top: 10px" align="$stylevar[right]">

Below add:

Code:

<!-- goup -->
<a href="#"><img src="/images/buttons/goup.gif" border="0"/></a><!-- / goup -->


In postbit legacy find:

Code:

<if condition="$show['moderated']">
        <td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
        <else />
        <td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
        </if>

Below add:

Code:

<!-- goup -->
<a href="#"><img src="/images/buttons/goup.gif" border="0"/></a><!-- / goup -->



Bellow you can find a sceenshot and the image you will need to paste at your "forum/images/buttons/" folder!



If you use this mod please click INSTALL

thpoul 02-12-2007 08:40 PM

***reserved***

lexx27 02-12-2007 08:51 PM

Great Hack!

tank14 02-14-2007 03:15 AM

Did you mean to check the "Not Supported" Thingy?

thpoul 02-21-2007 11:19 AM

lol....thanks ;) fixed

Detomah 02-28-2007 12:55 PM

Such a simple little mod which I hadn't thought of, but which I know my lazy users will love...

Anything that saves their delicate little fingers from having to move on the scroll button of their mouse, hehe.

Nice one. :up:

[high]* Detomah happily installs.[/high]

Robru 11-03-2007 12:31 PM

Very good hack, thanks for it :)

Dingo14 02-20-2008 06:22 AM

image wont show any ideas

indie2industry 02-20-2008 04:08 PM

Quote:

Originally Posted by Dingo14 (Post 1447115)
image wont show any ideas

If you have a custom skin, you'll have to put the image in that image directory.

ams3521 02-21-2008 09:33 PM

i cant get this working for me although i should have done it right. Ive a custom skin and my forum images are in skin_images instead of images. Ive added the code to the Postbit temple like so-

PHP Code:

        <div style="margin-top: 10px" align="$stylevar[right]">
<!-- 
goup -->
<
a href="#"><img src="/skin_images/buttons/goup.gif" border="0"/></a><!-- / goup -->
            <!-- 
controls --> 

and in Postbit legacy template like so-

PHP Code:

    <if condition="$show['moderated']">
    <
td class="alt2" id="td_post_$post[postid]style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
    <else />
    <
td class="alt1" id="td_post_$post[postid]style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
    </if>
    <!-- 
goup -->
<
a href="#"><img src="/skin_images/buttons/goup.gif" border="0"/></a><!-- / goup -->
        <if 
condition="$show['messageicon'] OR $post['title']">
            <!-- 
icon and title --> 

Am i doing something wrong?

It will be a great hack when i get it in. Just what ive been after. Thanks


All times are GMT. The time now is 11:41 AM.

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.01173 seconds
  • Memory Usage 1,747KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete