Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
YBMF-Back to Top Hack ( Finger Saver ) Details »»
YBMF-Back to Top Hack ( Finger Saver )
Version: 1.00, by TimberFloorAu TimberFloorAu is offline
Developer Last Online: Jan 2013 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.8.0 Rating:
Released: 01-08-2009 Last Update: Never Installs: 36
Template Edits
Re-useable Code Translations  
No support by the author.

This little SIMPLE stupid ridiculous crazy WHY DIDNT I THINK OF IT BEFORE hack ... will make you so popular on your forum. It will save MILLIONS of miles of unnecessary Mouse Wheel spinning !

Requested by many members.

Just been reading a question asked about "Back to Top" for forum posts, saves the long scrolling !

So I have created some code for you, enjoy.

1. admincp > styles & Templates > style manager >

search for postbit_legacy or postbit

then in search box for this template, look for <!-- controls -->

Right after this add:

Code:
<a href="#top" onclick="scroll(0,0); return false;">
  <img src="expats/images/misc/top.gif" alt="" width="70" height="22" border="0" 
style="margin-right:0.4em;"/></a>


Where expats is our style ( substitute for your own )

so if your style is called DAVE then the link would be DAVE/images/misc/top.gif

Then ftp this image to your forum/style folder.

in my case this would be forum/expats/images/misc/

Image Included.

Enjoy

Show Your Support

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

Comments
  #22  
Old 01-14-2009, 01:20 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chani View Post
I agree.

Cheers Mate, Im just about to release a new template hack, going down a storm with our members !

:up:
Reply With Quote
  #23  
Old 02-19-2009, 03:16 AM
scottny scottny is offline
 
Join Date: Nov 2008
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I have a question. I got it installed on my system but the pic is not showing up. I do have custom styles up. I did put the names of the styles in. Is there something I am missing to get it to have the same pic as the others or does it not do that and I totally misunderstood? It does work, just a blank photo in a box.

Thank you.
Reply With Quote
  #24  
Old 02-19-2009, 08:10 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

have u got a link 2 ur site plz
Reply With Quote
  #25  
Old 03-19-2009, 02:48 AM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this installed right now and it works fine, I was wondering how to change this to work as a Bottom button?? I thought it would've been a change of #top to #foo but I guessed wrong?? Thanks for help and the useful Top hack.
Reply With Quote
  #26  
Old 03-19-2009, 02:55 AM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by scottny View Post
Ok I have a question. I got it installed on my system but the pic is not showing up. I do have custom styles up. I did put the names of the styles in. Is there something I am missing to get it to have the same pic as the others or does it not do that and I totally misunderstood? It does work, just a blank photo in a box.

Thank you.

Try changing the code from:

<img src="STYLENAME/images/misc/top.gif"

to

<img src="images/STYLENAME/misc/top.gif"

This could be your problem, it was for me.
Reply With Quote
  #27  
Old 03-19-2009, 11:39 AM
blackwolf062 blackwolf062 is offline
 
Join Date: Mar 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks good work
Reply With Quote
  #28  
Old 03-19-2009, 12:03 PM
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
Location: In a cyber world...
Posts: 999
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The correct way of coding the image path in vBulletin should be like this...
Code:
<a href="#top" onclick="scroll(0,0); return false;">
<img src="$stylevar[imgdir_misc]/top.gif" alt="" width="70" height="22" border="0" style="margin-right:0.4em;"/></a>
Stylevars should be used, not relative urls.
Reply With Quote
  #29  
Old 03-19-2009, 09:38 PM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by down.low View Post
I have this installed right now and it works fine, I was wondering how to change this to work as a Bottom button?? I thought it would've been a change of #top to #foo but I guessed wrong?? Thanks for help and the useful Top hack.
Could someone help me if they have a chance?
Reply With Quote
  #30  
Old 03-20-2009, 12:03 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Essentially , it uses the anchor text.

change #top to #bottom

add an anchor in your footer. called #bottom.

So basic code:

Code:
<a href="#Bottom">Bottom</a>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<a name="Bottom">Footer Anchor Point</a>
<a href="#Bottom">Bottom</a> is your link

<a name="Bottom">Footer Anchor Point</a> is your anchor in your footer
Reply With Quote
  #31  
Old 03-20-2009, 01:06 AM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All I get out of putting:
Quote:
Code:
<a href="#Bottom">Bottom</a>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<a name="Bottom">Footer Anchor Point</a>
Into my footer is a link at the bottom of the page that says "Bottom" and a statement saying "anchor",




Do I need to post this after "<!-- controls -->" for a functional "bottom" button:
Quote:
<a href="#bottom" onclick="scroll(0,0); return false;">
<img src="expats/images/misc/bottom.gif" alt="" width="70" height="22" border="0"
style="margin-right:0.4em;"/></a>



And then this one for a "top" button:
Quote:
<a href="#top" onclick="scroll(0,0); return false;">
<img src="expats/images/misc/top.gif" alt="" width="70" height="22" border="0"
style="margin-right:0.4em;"/></a>




After doing this all I get is a "top" that takes me up, & a "bottom" that takes me up. I'm guessing I'm messing up with the anchor for the bottom?? Thanks in advance for any help.
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:51 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.07341 seconds
  • Memory Usage 2,327KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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