Click anywhere to close this dialog

Farewell

Great is the art of beginning, but greater is the art of ending
Henry Wadsworth Longfellow

I announce that I cease all development and activity in the programming universe indefinitely. My career has reached the turning point I was not expecting for at least another year, leaving me highly off guard and without laid-out plans for this hobby's continuity. I have begun a 5-year residency program in Neurosurgery which is clearly not compatible, time-wise, with programming.

I gave in all my passion for developing, and you gave me back your loyalty and trust, even when I did not deserve that much. Now it is the time for payback. I release all my present and past work as Open Source software, in the hope some talented developer will continue maintaining and expanding my vision of a modern, sleek forum software. The intrinsic flexibility of MyBB is the true hidden gem of an otherwise outdated codebase; I do hope the project can continue and be updated complying to the latest coding standards.

I hereby thank Euan, kawaii, andrewjs18, Ben, Matt, Omar G., effone, Eric J., Devilshakerz, Wildcard, JordanMussi and all the other team members I have had the opportunity to work with when I was a MyBB team member. I thank Tomm M, my mentor, who inspired me to pick up coding with his piece-of-art plugins. And finally, I thank all of you MyBBoost subscribers who have helped me getting through my toughest university years economically.

Yours sincerely, Filippo

QuickReferences 1.2

7 Aug 2016 Edited
#1
QuickReferences is a simple plugin which lets you reference to other threads quickly using their identifiers. Thanks to At.js, a dropdown list will be generated everytime your users type an hashtag (#) followed by the threads name they want to search for. The dropdown is attached to textareas and MyBB's default WYSIWYG editor (SCEditor) both in WYSIWYG and Source modes when you post a new thread, new reply, edit a post, perform a quick reply and perform a quick edit (basically, everywhere it is most useful).

CKEditor-based plugins (including Rin Editor) are supported.

Starting from 1.2, Unicode characters are supported.

[Image: WiE0XgP.gif]

Technical implementation


QuickReferences exploits AJAX to query the database for a list of threads containing your search words. It's packed with a stupidly simple caching system which prevents sending too many queries, saving resources. Results are limited to 5 threads per search query and when a query string returns less than 5 threads, it stops querying the database and gets threads from the cache.

On the backend side, hashtags followed by threads identifiers are matched using a regular expression and replaced by a placeholder when singular posts are parsed. In the end, a single query of all collected thread identifiers is performed and existing threads ultimately replace valid placeholders. Non existing threads are not parsed and their corresponding placeholders are restored by the original matched string.

Customization


You can customize links generated by QuickReferences by using the CSS class .quick_reference.

Requirements


QuickReferences requires MyBB 1.8.0+ and PHP 5.4+.

You can follow the plugin's development here: QuickReferences development.

Installation instructions


The installation is as simple as uploading the files maintaining the same folder structure they are compiled to and clicking the button Install & activate within your board's plugin list.

QuickReferences does not add any settings.

QuickReferences adds a CSS file named at.css to every theme of your board. You can customize the dropdown's appearance by editing the stylesheet's CSS rules.

Upgrading instructions from older versions to newer ones


Simply upload the new files, replacing the old ones. You don't need to uninstall the plugin.

Reporting issues


If you encounter an issue, feel free to open a new thread in this forum with detailed instructions on how to reproduce your issue. Suggestions and feature requests are appreciated as well.
Filename Size Downloads
19.31 KB 305
phpkiller, honger, Glaumy And 2 others like this post
sicut 14 Mar 2017
#31
Hey there,
absolutely fantastic idea this plugin!
This and the mention user function should be default features in myBB imho.
I still get to know users that don't understand that "Reply" button, but everyone immediately knew how to use @/# :) / :(

Anyway, I have feature request for this little gem.
Since the thread search and pop up are limited to 5 items, I find myself not finding the thread I was looking for more often than not. I modified the plugin files and went with 10 items. But that was sometimes still not enough and I think its not the right solution anyway.

Would it be possible to add a small plugin ACP setting where we can
a) choose certain forums that should be searched
and/or
b) choose certain forums that should be prioritized for the search (like a search order)?

Thank you and keep up your great work!
Shade 14 Mar 2017
#32
Thank you for the idea. Seems logical to me.
zyra 1 May 2017
#33
Quick reference stopped working with Rin editor, are you aware of some interference between the 2 plugins (this one and rin?)
Shade 5 May 2017
#34
Rin Editor has introduced an automention feature which exploits the same library of QuickReferences, at.js. They most probably conflict with each other. The solution would be deleting one of the two files and making sure the file is included before their usage in the two plugins.

Unfortunately, I don't support third party plugins. I do support integration with third party projects (such as CKEditor, which is the one Rin Editor uses), not MyBB plugins.
albano 17 Sep 2017
#35
Hi there,

You have saved my life with this cool plugin. MyBB 1.8.12 forum users loved it too. I have one question:

Is there any way to make the referenced link permanent? For instance, when my users click on "reply" or "quote," the quote references the literal number (Issue with Flyover). I prefer to see the BBcode instead, [/url=https://blah]Thread title[/url]. If this question has been posted before, please take me there as for I searched for an answer in this forum and couldn't find it.

Albano
Shade 17 Sep 2017
#36
Hi, thank you for using my plugins. The current implementation is better (IMHO) because thread names can change over time but identifiers do not, so you always see the most up to date name and url. However it's something I may add as an option in the future.
Syx likes this post
albano 12 Nov 2017
#37
Hi. Can you, please, show me a way to force the URL to open in new window?
Shade 12 Nov 2017
#38
Hi, open inc/plugins/quickreferences.php, line 285:

$threads[$thread['tid']] = "<a class='quick_reference' href='" get_thread_link($thread['tid']) . "'>" $thread['subject'] . "</a>"
Replace with:

$threads[$thread['tid']] = "<a class='quick_reference' target='_blank' href='" get_thread_link($thread['tid']) . "'>" $thread['subject'] . "</a>"
albano likes this post
Syx 23 Nov 2017
#39
One of the best plugins ever. Thank you so much.
Sama34 31 Jul 2020
#40
I understand this isn't a priority right now but maybe you can fix compatibility with the following plugin in the future:
https://community.mybb.com/thread-222263.html

Basically, quick preview isn't parsing the tags.