vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Goto Top in Postbit (https://vborg.vbsupport.ru/showthread.php?t=239896)

Biker_GA 04-06-2010 02:17 AM

Goto Top in Postbit
 
I've been using this for years, and even have it working in 4.x. However, every upgrade results in the system complaining about how it can't change the postbit template because of this change. So I have to revert it, and then stick the code back in. This is what I'm using:

Code:

<a href="#top" onclick="self.scrollTo(0, 0); return false;">Top</a>
And this is where I've embedded it in postbit_legacy:

Code:

<vb:if condition="$post['postid'] AND $post['threadid']">
                        <a href="#top" onclick="self.scrollTo(0, 0); return false;">Top&nbsp;&nbsp;</a>
                        <a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="postcounter">#{vb:raw post.postcount}</a>
                </vb:if>

Is there a better way to do this?

Biker_GA 04-08-2010 10:26 AM

Nobody, huh?

vicelover 04-08-2010 10:48 AM

Hi, I'm not good at coding and so I can not give your advice .

But I use this mod now. It works well.

https://vborg.vbsupport.ru/showthread.php?t=235530


All times are GMT. The time now is 07:19 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.01204 seconds
  • Memory Usage 1,709KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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