Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
"To the top" link in every reply Details »»
"To the top" link in every reply
Version: 1.00, by StarBuG StarBuG is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 01-14-2007 Last Update: Never Installs: 37
Template Edits
Additional Files  
No support by the author.

Hi

Desc: This is a simple modification. It adds an image link next to every quick reply (or quote) button in every thread and reply that brings you back to top.
Time to install: About 1Min
Templates to edit: 1
Versions: All vB Versions

In postbit template search for:

Code:
<if condition="$show['moderated']">
                <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
            </if>
after that add

Code:
<a href="#top" onclick="self.scrollTo(0, 0); return false;"><img src="$stylevar[imgdir_button]/top.gif" alt="$vbphrase[top]" border="0" /></a>
Now download the image I attached and upload it to /forum/images/buttons

I made you an image for the standard vBulletin Buttons but you can change it or add a different image.

Hope you like it.... and if you do don?t forget to click INSTALL

DEMO: http://www.elternfragen.net/showthread.php?t=107
Just view any thread you like to see the top button

StarBuG

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-01-2007, 04:45 PM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by richTV View Post
if i adjusted it so that it looks like:

Code:
<a href="#top" onclick="self.scrollTo(0, 10); return false;"><img src="$stylevar[imgdir_button]/top.gif" alt="Top of Page" border="0" /></a>
does this mean that if the thread was up to 10 pages long, it would take me to the beginning of the thread? or if was 30 pages long it would take me to page 20 of the thread?

i'm not a coder so i wanted to make sure i understood what u mean.

TIA
after installing and 'trying it out' :wink: regardless of what page you are on it takes you to the top of the page you are viewing, not to any other page...
Reply With Quote
  #13  
Old 02-01-2007, 05:49 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ups, missed the german phrase

the self.scrollTo(0, 10) is a pixel specification not a page specification
Reply With Quote
  #14  
Old 02-03-2007, 03:50 AM
ElNino's Avatar
ElNino ElNino is offline
 
Join Date: Oct 2004
Location: Karlsruhe/Germany
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for that little hack.

For those which use the old forum style, edit template postbit_legacy.
find:
PHP Code:
<!-- / controls --> 
add before:
PHP Code:
<a href="#top" onclick="self.scrollTo(0, 10); return false;"><img src="$stylevar[imgdir_button]/top.gif" alt="Top of Page" border="0" /></a
Reply With Quote
  #15  
Old 02-04-2007, 09:05 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you StarBuG

Just what I always wanted

Install
Reply With Quote
  #16  
Old 02-05-2007, 12:23 AM
DasCool DasCool is offline
 
Join Date: Jan 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All right this is not working for me, i have the pic uploaded to button and the code where it is. Nothing is shwoing up though. Thanks
Reply With Quote
  #17  
Old 02-05-2007, 03:54 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then you have made something wrong.

Check the placement of the code in your template.

This is a simple link with an image, there is nothing in this code that can be wrong except your placement of the code.

StarBuG
Reply With Quote
  #18  
Old 02-05-2007, 06:49 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

working in both postbit and postbit_legacy.
Reply With Quote
  #19  
Old 02-07-2007, 08:02 PM
vspro's Avatar
vspro vspro is offline
 
Join Date: Nov 2006
Location: Viet Studio Pro
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

me too .this is not working for me, i have the pic uploaded to button and the code where it is. Nothing is shwoing up though. Thanks
anyone show me how to fix
Reply With Quote
  #20  
Old 02-08-2007, 04:31 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want you can copy your postbit template into a txt file and attach it to your post, I will then have a look
Reply With Quote
  #21  
Old 02-09-2007, 09:40 PM
2meplie 2meplie is offline
 
Join Date: Nov 2006
Location: Quebec city, Qc, Canada
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed it and it didn't work. I had to install it in both postbid and postbid_legacy for it to work. I have custom styles so maybe this is why I had to do that.
Reply With Quote
Reply

Thread Tools

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 11:56 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.09975 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete