vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Keyboard Navigator (CTRL+Arrows shortcuts) (https://vborg.vbsupport.ru/showthread.php?t=207550)

Vitaly 03-05-2009 10:00 PM

Keyboard Navigator (CTRL+Arrows shortcuts)
 
1 Attachment(s)
vb 4.x version here

This hack adds some keyboard shortcuts for accelerated navigation. Very convenient, when you browse forum without mouse (notebook with touchpad and so on).

Current shortcuts:
  • Ctrl + Left - previous page (current page - 1)
  • Ctrl + Right - next page (current page + 1)
  • Ctrl + Up - 1 level up.
  • (!) Ctrl + Down - Go to next unread thread in current forum (only for registered forum members)
Demo: http://forum.rcdesign.ru/f22/ (without CTRL+DOWN for guests)

(!) "Next Unread" is taken from end (the most old unread thread). Reason is simple - that makes less returns, since top threads are updated very often.

PS. As you can see from screenshot, only Ctrl + Left/Right have visual helpers. If someone have good idea how to show, that Ctrl+ Up/Down are working too - feel free to share.

This mod is developped here: http://github.com/rcdesign/vb-keyboard_navigator . Patches are welcome.

History

0.6
- Redirects for moved threads caused error for CTRL+Down

0.5
- added lock when cursor focus is in edit area
- removed CTRL+HOME shortcut (uncomment in template, if really need it)

0.4
- added Ctrl+Down

0.2, 0.3
- Small JS fixes
- Nice helpers in pagebar (see screenshot)

0.1
- First Public Release

jonah1892 03-06-2009 08:32 PM

first post :D

interesting mod, ill be trying it on my localhost before i put it on my live site

DieselMinded 03-06-2009 09:34 PM

anyone installed this yet?

GhoHan 03-06-2009 09:37 PM

Good Idea sir
Thank you very2 much
i will try this ..

Vitaly 03-06-2009 10:13 PM

Ups... it was broken in IE, sorry :) . Please, reupload with new JS file (first post updated).

PS. I'm not strong in javascript. So, your experienced advices are always welcome :)

Vitaly 03-07-2009 02:53 PM

Undated to v0.2

1. Simplifyed JS
2. Nice texts in pagebar ( "<- Ctrl" and "Ctrl ->", see new screenshot ).

Thinking about "what to do with Ctrl + Down". Next unread thread in current forum? Is it convenient use-case?

jambo_1969 03-07-2009 03:48 PM

Installed and Uninstalled.

Ctrl up the only one reporting an action.

Vitaly 03-07-2009 04:06 PM

Jambo, refresh page wiith CTRL+F5. Probably, your browser cached old JS file.

You can check here: http://forum.rcdesign.ru - all buttons are ok.

jambo_1969 03-07-2009 04:14 PM

Tar muchly - reinstalled :D

xuanhuy238 03-08-2009 03:51 AM

i don't use shortcut of previous and next pages


All times are GMT. The time now is 03:17 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.01008 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
  • (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