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)
-   -   "To the top" link in every reply (https://vborg.vbsupport.ru/showthread.php?t=136576)

Eq4bits 02-01-2007 04:45 PM

Quote:

Originally Posted by richTV (Post 1165136)
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...

StarBuG 02-01-2007 05:49 PM

Ups, missed the german phrase ;)

the self.scrollTo(0, 10) is a pixel specification not a page specification ;)

ElNino 02-03-2007 03:50 AM

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


Nathan2006 02-04-2007 09:05 PM

Thank you StarBuG

Just what I always wanted :D

Install

DasCool 02-05-2007 12:23 AM

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

StarBuG 02-05-2007 03:54 PM

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

Smoothie 02-05-2007 06:49 PM

working in both postbit and postbit_legacy.

vspro 02-07-2007 08:02 PM

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

StarBuG 02-08-2007 04:31 AM

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 ;)

2meplie 02-09-2007 09:40 PM

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.


All times are GMT. The time now is 11:28 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.01135 seconds
  • Memory Usage 1,739KB
  • 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_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
  • (2)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