vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - imgur like keyboard functionality - arrow keys = previous / next thread (https://vborg.vbsupport.ru/showthread.php?t=314097)

Dave 09-01-2014 10:00 PM

imgur like keyboard functionality - arrow keys = previous / next thread
 
1 Attachment(s)
I'm not sure if something like this has been released already, but here it is:

This little modification will make it possible to use the arrow left and right key on your keyboard to go to the next or previous thread in the current forum. Note that it will only work when you are viewing a thread already.

Installation:
1) Open the SHOWTHREAD template of your style.
2) Paste the contents of the attached file above the {vb:raw footer} variable.

That's it, now you can use the left and right arrow keys on your keyboard to go to the next/previous thread of the current forum.

Mark as installed = support.

RichieBoy67 09-02-2014 08:12 PM

Cool but how will people even know to use this?

Dave 09-02-2014 08:18 PM

Quote:

Originally Posted by RichieBoy67 (Post 2513544)
Cool but how will people even know to use this?

The administrator will have to announce this although this is more of a "hidden" feature.
Currently fixing a bug when a hashtag is present in the URL.

Firyou 09-03-2014 05:55 PM

Sounds like a neat trick. Would it be possible to do this on the current thread's pages instead?

scottkoz20 11-05-2018 10:42 PM

hey Dave - sorry to dust this one off but when I add this in, the following is added to the URL and it stays on the current thread

Code:

&goto=nextnewest

OR

&goto=nextoldest


add to this, if I hit the keyboard multiple times, it just adds another oldest or newest code to the URL

Code:

&goto=nextnewest&goto=nextoldest&goto=nextoldest&goto=nextoldest&goto=nextoldest&goto=nextoldest
tried this on Chrome and Firefox. If the code is depreciated, let me know


All times are GMT. The time now is 07:53 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.01115 seconds
  • Memory Usage 1,719KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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