vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - To The Top Button (https://vborg.vbsupport.ru/showthread.php?t=147445)

Bernd Glasstett 05-16-2007 10:00 PM

To The Top Button
 
This is a rather small product and it was something which I used to add to our forums everytime an update occured. Now with a news template hook on the right place, which was in 3.6.6 released this edit is finally a thing from the past and I made a product out of it. I used the product, as one phrase needs to be added. It's small, but I think that's ok :) I personally don't know if anyone also had this idea. However the code was all developed by myself :)

What it does:
It adds a graphic to every postbit to the right of quick-reply. It's an arrow which points to the top and upon a click brings you to the top of each page. This is very handy if you are down into a loooong page and want quick access to the navbar i.e. It works both with postbit and postbit_legacy.

What to do:
0 template edits
1 file to be uploaded (an image)
1 xml-file to be imported
1 phrase added
1 template added

Please click install, if you use this product.

sross 05-17-2007 11:42 AM

didn't work for me, the image doesn't show. most likely because i have a custom postbit legacy template? Any idea what i need to manually add to my template to get the button to show? thanks!

deezelpope 05-17-2007 11:46 AM

<i>Didn't work for me either...even did an overwrite with the xml...</i>

Acido 05-17-2007 12:09 PM

didn't work for me too :(

hcmagix 05-17-2007 12:25 PM

Alternate solution is.

edit template postbit/postbit_legacy

find
Quote:

$post[iplogged]
add above
Quote:

<a href="#top"><img src="$stylevar[imgdir_button]/top.gif" alt="Top" border="0" /></a>
upload your arrow picture like (top.gif) to /images/buttons

see results

PS. you can also use another place for the arrow picture in the template

Bernd Glasstett 05-17-2007 01:00 PM

The template MUST have $template_hook[postbit_controls] in it, which hasn't been added until version 3.6.6 and if you have custom postbits, you need to revert first or add this template hook.

@hcmagix: Of course it can also be done like this, but it's more nifty without template edits ;)

Tungsten 05-17-2007 02:39 PM

Heh... I've been doing this on my forum for a while now too after seeing it on an IPB forum once. I too thought about using the postbit template hook for it. Nice to see someone else took the initiative and did it! :)

Do you have the PSD file for the graphic you used for the button? I'd like to recolor it and use that instead of the one I use now.

Bernd Glasstett 05-17-2007 05:56 PM

Download the first version of the graphics pack and select the Arrow Buttons.psd. Download it here:
http://members.vbulletin.com/membersupport.php

Get the first one, as it is the one with layered Photoshop .psd-files.

I am not sure, if I may post the .psd-file here :)

Tungsten 05-17-2007 07:00 PM

Excellent, I didn't realize that graphic was in the PSD pack.

Muellmann 05-17-2007 08:59 PM

Very handy thx.


All times are GMT. The time now is 04:16 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.01508 seconds
  • Memory Usage 1,728KB
  • 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_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