PDA

View Full Version : Mini Mods - Keyboard Shortcut for vBulletin 4


mrpaint
04-03-2010, 10:00 PM
Keyboard Shortcut 1.0
Enable various keyboard shortcuts for vBulletin.

Sometime it really hurts me to read through a long thread (100+ pages) with the mouse so I think this would be helpful to someone :D

[FEATURE]

Shortcuts are easily changed and updated via highly interactive AdminCP Settings page.
Available shortcuts:
Display Help
Go Root
Go Up (from thread to forum, from forum to parent forum, from picture to album)
Numeric Auto-assign (1..9 to quick access threads in forum, pictures in album)
New Private Message (with settings to predefine recipient, open in new window)
Previous/Next page (pages in thread, comment pages in picture)
Previous/Next item (threads, pictures)

[DEMO]
http://daohoangson.com/vb40
http://daohoangson.com/vb38
*Yeah, the same product works with both versions of vBulletin*
Authentication: demo:demo
Test accounts: test1:123456; test2:123456; test3:123456

[INSTALL]
Upload files (2 scripts) in `upload` to forums root
Import .xml file
Go to edit settings or leave them with default values
Done

[SCREENSHOT]
https://vborg.vbsupport.ru/external/2010/04/73.jpg https://vborg.vbsupport.ru/external/2010/04/74.jpg
View more (and bigger) screenshots, click here

Enjoy this small modification. Bring to you from a Vietnamese coder. Cheers

saadessa
04-04-2010, 09:53 PM
installed thank you

chriske
04-04-2010, 10:44 PM
Very interesting!

Tagged & Thanks!

Bouncer222
04-04-2010, 11:34 PM
I went on ur site and logged into a demo account, but im confused, what does this mod do???

AliMadkour
04-05-2010, 12:14 AM
Great mod!
Tagged for future use
thanks :)

Skyrider
04-05-2010, 01:38 AM
I went on ur site and logged into a demo account, but im confused, what does this mod do???
Press and hold H and you'll see.. It's a keyboard shortcut combination combined with the forums.. pressing 1 will go to the first section or first post, 2 to the second, etc.

sulasno
04-05-2010, 03:15 AM
tagged and thanks

mrpaint
04-05-2010, 08:17 PM
Oh yeah, sorry for confusing you guys. If you go to the demo forums, hold H to see the shortcuts list. I will post some screenshot really soon

mrpaint
04-05-2010, 08:38 PM
I have several screenshots from different browsers in different pages with various shortcuts available. Please note that the same shortcut key can be available in many pages but with each page, it can perform a little bit different. You can see the shortcut U in the screenshots: in work to go up to forum from thread, go to parent forum from forum or go to album from picture, etc

Skyrider
04-06-2010, 05:57 PM
Getting error when I added this plugin:

$help_shortcut = $vbulletin->options['kbs_help']; $is_vb4 = ($vbulletin->options['templateversion'] >= '4.0'); if ($help_shortcut) { $shortcuts = ''; foreach ($GLOBALS['kbs_functions'] as $group => $group_shortcuts) { foreach ($group_shortcuts as $shortcut => $info) { $sessionurl = $vbulletin->session->vars['sessionurl']; if ($sessionurl) { if (strpos($info['link'],$sessionurl) === false) { if (strpos($info['link'],'?') === false) { $info['link'] .= '?' . $sessionurl; } else { $info['link'] = str_replace('?','?' . $sessionurl,$info['link']); } } } if ($is_vb4) { $templater = vB_Template::create('kbs_shortcutbit'); $templater->register('shortcut',$shortcut); $templater->register('info',$info); $shortcuts .= $templater->render(); } else { eval('$shortcuts .= "' . fetch_template('kbs_shortcutbit') . '";'); } } } if ($is_vb4) { $headercode = vB_Template::create('kbs_headercode')->render(); $templater = vB_Template::create('kbs_footercode'); $templater->register('help_shortcut',$help_shortcut); $templater->register('shortcuts',$shortcuts); $footercode = $templater->render(); } else { eval('$headercode = "' . fetch_template('kbs_headercode') . '";'); eval('$footercode = "' . fetch_template('kbs_footercode') . '";'); } $output = str_replace( array('','') ,array($headercode . '',$footercode . '') ,$output ); }

mrpaint
04-06-2010, 06:15 PM
Getting error when I added this plugin:
I didn't see the error message in your quoted part?
Any screenshot?

Skyrider
04-06-2010, 06:38 PM
I didn't see the error message in your quoted part?
Any screenshot?
Sure,

See attachment.

Forgot to mention that I see this on the front page of the forums. Below attachment is only the top part of the forums.

mrpaint
04-06-2010, 06:47 PM
Sure,

See attachment.

Forgot to mention that I see this on the front page of the forums. Below attachment is only the top part of the forums.
It's really weird since the code is supposed to be evaluated not to be sent to output. Would you mind sending me forum URL with administrator accounts via PM or email (daohoangson at gmail dot com) so I can come by and check it out?

Skyrider
04-06-2010, 07:07 PM
I've seen the error code before though, related to CSS file storage options. Had a similar error/issue at the top of the forums when I had a image resize plugin installed.

mrpaint
04-06-2010, 07:50 PM
I've seen the error code before though, related to CSS file storage options. Had a similar error/issue at the top of the forums when I had a image resize plugin installed.
Switched the demo board to use file system CSS but the error didn't appear. Any other suggestion? :D

Skyrider
04-06-2010, 08:02 PM
Switched the demo board to use file system CSS but the error didn't appear. Any other suggestion? :D
Yea, that's the thing.. For some odd reasons, the error appeared for both plugins (including this one) once I played with the CSS storage a few times with a few plugins. Maybe a side effect of the SuperCharged plugin I used in the past that is causing the errors now.

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

friendlymela
10-16-2015, 06:57 AM
It will work on 4.2.2???